Dial SIP extension exited non-zero and goes to “h” extension as soon as SIP extension anwers.
I’m trying to figure what is this mean ?
Spawn extension (default, 9112, 2) exited non-zero on ‘Local/9112@default-d238,2’
Why is it going to “h” extension after answering ?.
Your help is greatly appreciated.
Here is my extensions.conf
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp
[default]
exten => h,1,DeadAGI(call_log.agi,${EXTEN}) ; DeadAGI is new
exten => h,2,DeadAGI(VD_hangup.agi,PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
Since you are using the h extension you know that asterisk goes there when ever the call is hung up on. I asume that there is a problem with your agi script so asterisk “bails” and ends the call there by going to the h extension. Try putting something else instead of the AGI (like ringing and then a 5 second wait) and see what happens.
Thanks for your reply.
When I manually dial 9112, it works great.
But if I use a script/cron job to do the same thing, it bails out as shown above.
Any clue ?
I appreciate your comments.
Like I said above there is probably an issue with the way you wrote it and something is wrong with it hence why its bailing out. You have to look at it step by step and see why it is happening.