[Asterisk-Users] Teliax is DOWN
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Fri Jun 3 07:13:34 MST 2005
On Friday 03 June 2005 01:36, Chris Coulthurst wrote:
> Any suggestions? Dialplan examples?
Yeah; don't post this kind of message to this list unless you've verified it's
a problem. There are NUMEROUS places online to check routing to a host.
Personally I use dnstools.com.
Perhaps this isn't what you did, but it comes across as "I tried it, it didn't
work so I immedately posted to a 10000+ user mailing list, MANY of who DO NOT
use teliax, to see if anyone else was seeing it."
I won't go into the lack of thought, courtesy and effort that went into your
email if that is truly the case.
As far as dialplan failover (yes I'm getting back on topic :-)
I use qualify statements for iax and sip; if a peer is unreachable then
asterisk doesn't even attempt to place a call through them and your Dial()
command will fail with (IIRC) CHANUNAVAIL. You can check for this dialstatus
and failover any way you like.
My personal dial macro looks a little like this (snipped here and there) -- I
just include = nufone in the context(s) i want to allow to call through
nufone, and then if dialstatus came back CHANUNAVAIL I deal with it by
calling out the PRI. Simple, easy failover.
Regards,
Andrew
[macro-nufone-dial]
(just some stuff to check account codes and set it if not set)
...
exten => s,n,GotoIf($[${LEN(${ARG1})} = 10]?s,add1)
exten => s,n,Dial(IAX2/user at nufone-1/${ARG1},,g)
exten => s,n,Goto(dial-${DIALSTATUS},1)
exten => s,n(add1),Dial(IAX2/benshaw at nufone-1/1${ARG1},,g)
exten => s,n,Goto(dial-${DIALSTATUS},1)
exten => dial-CANCEL,1,Hangup
exten => dial-ANSWER,1,Hangup
exten => dial-NOANSWER,1,Hangup
exten => dial-BUSY,1,Busy
exten => dial-CONGESTION,1,Congestion
exten => dial-CHANUNAVAIL,1,Macro(pri-dial,${ARG1},${ARG2})
; handle NXX-NXX-XXXX, 1-NXX-NXX-XXXX and 011...
[nufone]
exten => _NXXNXXXXXX,1,Macro(nufone-dial,${EXTEN})
exten => _011.,1,Macro(nufone-dial,${EXTEN})
exten => _1011.,1,Macro(nufone-dial,${EXTEN:1})
More information about the asterisk-users
mailing list