[Asterisk-Users] get dialstatus variable when returning No such context/extension

Geoff Karl geoff.karl at gmail.com
Mon Sep 12 22:18:29 MST 2005


I have a list of VSPs that I use.  Some are not able to terminate to
different locations.  It appears they are returning this error
message:

Sep 13 00:01:43 WARNING[22093]: chan_iax2.c:6835 socket_read: Call
rejected by x.x.x.x: No such context/extension

I would like to find out what the dialstatus is on this so I can try a
different VSP that is able to terminate the call.

Right now I have this and it doesn't show the DIALSTATUS.

exten => _9X.,1,SetCallerID(6175551212)
exten => _9X.,2,NoOp(${EXTEN:1})
exten => _9X.,3,Dial(IAX2/VSP1/${EXTEN:1}|15|j)
exten => _9X.,4,NoOp(${DIALSTATUS})
exten => _9X.,104,Dial(IAX2/VSP2/${EXTEN:1}|15|j)
exten => _9X.,205,Dial(IAX2/VSP3/${EXTEN:1}|15|)


This works if the hosts are down, now I want to enhance it to try the
different providers if the aren't able to place the calls.  If I can
figure out the DIALSTATUS then I can create a macro to handle the
logic.

thanks,

Geoff



More information about the asterisk-users mailing list