AGI Script


I have in custom_extensions:

exten => 12345,1,Dial(DAHDI/g0/cellphone)
exten => h,1,DeadAGI(recall.php)

If i dial 12345 , asterisk make call to cellphone, if call is drop then run recall.php

in recall.php :

<?php echo "EXEC Dial DAHDI/g0/cellphone"; ?>

to make a recall to my cellphone.

but this not work.

please help

please help with this?

May I start by asking WHY?
I assume “cellphone” is just fill.
This risks loop of death!
Is your file executable?
What does the asterisk log show.

Yes file is executable. i need make a call to cellphone, if call is drop then run a “callback”

That seems reasonable, but as James says you risk “crowding” a cell phone that is apparently unavailable, maybe the deadagi function could spit out a callfile that would be self terminating after a countdown/timeout/call spacing set of conditions to cover a dead battery or whatever,

please correct me , and help me how can configure this?