Change the priority of the second dial() to 4.
Regards,
On Jan 16, 2008 11:42 AM, Abdul <abdul_zu at yahoo.com> wrote:
> Good Day All,
>
> Is it possible to put backup route in asterisk dial plan? fro the example
> if the first carrier disconnect the call with Congestion or Circuit busy
> then asterisk can dial another carrier?
>
> I did the following but it is not working as i need to dial the second one
> only on congestions or circuit busy.
>
> [wellsip]
> exten => _x.,1,AGI(routing.pl)
> exten => _x.,2,Set(TIMEOUT(absolute)=${TMO})
> exten => _x.,3,Dial(SIP/${CNUM}@${CAIP})
> exten => _x.,3,Dial(SIP/${CNUM}@${CAIP2})
> exten => h,1,DeadAGI(stop.pl)
>
>
>
>
> *--------
> Regard,*
>
> ------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
>
now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Guilherme Loch G?es
Visite nossa loja virtual: http://www.shopvoip.com.br
Not?cias e F?rum sobre VoIP com software livre:
http://www.asteriskexperts.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080116/2cb5a56c/attachment.htm