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 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 <[EMAIL PROTECTED]> 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 --

Asterisk-Users mailing list
[email protected]
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 "
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to