Brent Torrenga
2006-Apr-10 09:54 UTC
[Asterisk-Users] RE: still no solution for me, if one provider
>Our user places a call, the gateway responds with no sound at all, or >hangs up, or gives busy tone. > >How can we get to the next provider? > >I have now: >exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-a) >;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-b) >;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-c) >exten => _9011Z.,104,NoOp(${DIALSTATUS}) > >by hand I move the remark sign around!!! > >How are you handling such situations? > >bye > >Ronald WiplingerI first try to dial provider-a, as you have, then do a gotoif on ${DIALSTATUS}, where if ${DIALSTATUS} is BUSY, then goto a priority that does Busy(), and if it is anything else (like CONGESTION, indicating that the provider is down or whatever), then just move on to the next priority and dial provider-b. Repeat the steps until you have no more providers - for me, the last step is to dial a Zap channel. Remember, if Dial() doesn't bridge the call, the dialplan will just keep processing. Sincerely, Brent A. Torrenga brent.torrenga@torrenga.com Torrenga Engineering, Inc. 907 Ridge Road Munster, Indiana 46321-1771 219.836.8918x325 Voice 219.836.1138 Facsimile www.torrenga.com
Ronald Wiplinger
2006-Apr-10 10:22 UTC
[Asterisk-Users] RE: still no solution for me, if one provider
Brent Torrenga wrote:>> Our user places a call, the gateway responds with no sound at all, or >> hangs up, or gives busy tone. >> >> How can we get to the next provider? >> >> I have now: >> exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-a) >> ;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-b) >> ;exten => _9011Z.,103,Dial(SIP/011${EXTEN:4}@provider-c) >> exten => _9011Z.,104,NoOp(${DIALSTATUS}) >> >> by hand I move the remark sign around!!! >> >> How are you handling such situations? >> >> bye >> >> Ronald Wiplinger >> > > I first try to dial provider-a, as you have, then do a gotoif on > ${DIALSTATUS}, where if ${DIALSTATUS} is BUSY, then goto a priority that > does Busy(), and if it is anything else (like CONGESTION, indicating that > the provider is down or whatever), then just move on to the next priority > and dial provider-b. Repeat the steps until you have no more providers - for > me, the last step is to dial a Zap channel. Remember, if Dial() doesn't > bridge the call, the dialplan will just keep processing. >Brent, you mean, I could just remove the remark signs and number it 103, 104, 105, .... since it does not matter why it failed (busy, congestions) (maybe for statistic purpose to add a log entry for the move to the next provider). bye Ronald -------------- next part -------------- A non-text attachment was scrubbed... Name: ronald.vcf Type: text/x-vcard Size: 319 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060410/43b971ae/ronald.vcf