Andrew, Thanks for this - I have also been looking for a way to "fail over" calls to a second SIP path, but;
In the event that the first attempt DOES NOT RESPOND (is down) there has to be a timeout value to go to the next priority, correct? Otherwise the channels just sits silent waiting for a response. I think your macro assumes that you got a response from nufone, but what if they were dead in the water? Have I missed something? Is there a way to modify the relevant SIP timer so if the INVITE is not ack'd in a specific period of time then the next priority is executed? Damon > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Andrew Kohlsmith > Sent: Friday, January 27, 2006 1:12 PM > To: [email protected] > Subject: Re: [Asterisk-Users] Fail over to Pri on VoIP connection failure > > On Thursday 26 January 2006 10:52, Cavanna, Richard wrote: > > I am trying to tweak my dial plan and I am running into a problem. > > Sometimes my VoIP out bound calls do not complete on overseas calls(busy > > or just a hang-up). Is there a way in the dial plan to automatically > > dial out of my PRI when something like this happens. Either by time > > limit by a failure event? > > ; call $ARG1 through nufone, failing over to the PRI. > [macro-nufone-dial] > exten => s,1,Dial(SIP/[EMAIL PROTECTED],,go) > exten => s,n,NoOp(NUFONE: HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is > ${DIALSTATUS}) > 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}) > > It really is as simple as that. :-) > > -A. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
