Hello everyone,
Please if you have advice about my problem. I’m able to get all dialstatuses BUSY,NOANSWER etc…But I can not get CANCEL dialstatus. If caller hangup first,my PHP just stop …
Hello everyone,
Please if you have advice about my problem. I’m able to get all dialstatuses BUSY,NOANSWER etc…But I can not get CANCEL dialstatus. If caller hangup first,my PHP just stop …
P.S. I’m using DeadAGI, to get status after caller hangup, but it won’t to run php again…
Thx,
Anya
You have to handle or ignore SIGHUP.
This is the wrong forum for support questions.
Sorry, should I move topic in another forum?
Can you please more specific explain me how to handle or ignore SIGHUP in my php script , I’m new with this…
Thanks on time and advice
Anya
I don’t have sysadmin privileges, so I can’t move your thread.
I also make minimal use of AGI. I do, however remember that:
Rather than using AGI, you should see if you can do what you want to do using the h extension, and normal dialplan code.
I got dialstatus just putting
exten => h,1,NoOp(${DIALSTATUS})
Why is better to complicate with signal handler?
It isn’t. You were the one who introduced AGI. The signal handler is needed in the AGI.
As I said, a lot of people seem to use AGI when straight Asterisk dialplan can do the same job.