Sherwood McGowan
2005-Sep-06 14:15 UTC
[Asterisk-Users] Routing depending on sip response code?
Hey all, I'm trying to create redial on busy for my users, but haven't the foggiest on how to make asterisk route depending on the status code returned over SIP (483, Busy Here?). . . anyone know how to do this? Thanks Sherwood McGowan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050906/e1d49fc1/attachment.htm
Moises Silva
2005-Sep-06 17:37 UTC
[Asterisk-Users] Routing depending on sip response code?
Not sure if you can catch the busy from SIP, but sure you can catch the BUSY status of asterisk. Please read the docs about $DIALSTATUS variable in voip-info.org <http://voip-info.org> i think that will suite your needs. I have something like this: [macro-catch_dial_response] exten => s,1,GotoIf($[${ARG1} = NOANSWER] ? 11 : 2) exten => s,2,GotoIf($[${ARG1} = CHANUNAVAIL] ? 22 : 3) exten => s,3,GotoIf($[${ARG1} = BUSY] ? 33 : 4) exten => s,4,Macro(generic-handler) exten => s,11,Macro(noanswer_handler) exten => s,22,Macro(unavail_handler) exten => s,33,Macro(busy_handler) where the argument is the $DIALSTATUS variable, i could have use it directly, but i think is better this way. So i have different macros to each thing i need to do. Best Regards. On 9/6/05, Sherwood McGowan <madprofzero@yahoo.com> wrote:> > Hey all, > I'm trying to create redial on busy for my users, but haven't the foggiest > on how to make asterisk route depending on the status code returned over SIP > (483, Busy Here?). . . anyone know how to do this? > Thanks > Sherwood McGowan > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050906/2b3eee92/attachment.htm