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 <a href="http://voip-info.org">voip-info.org</a> i think that will suite
your needs.<br>
<br>
I have something like this:<br>
<br>
[macro-catch_dial_response]<br>
exten => s,1,GotoIf($[${ARG1} = NOANSWER] ? 11 : 2)<br>
exten => s,2,GotoIf($[${ARG1} = CHANUNAVAIL] ? 22 : 3)<br>
exten => s,3,GotoIf($[${ARG1} = BUSY] ? 33 : 4)<br>
exten => s,4,Macro(generic-handler)<br>
exten => s,11,Macro(noanswer_handler)<br>
exten => s,22,Macro(unavail_handler)<br>
exten => s,33,Macro(busy_handler)<br>
<br>
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.<br>
<br>
Best Regards.<br><br><div><span class="gmail_quote">On 9/6/05, <b class="gmail_sendername">Sherwood McGowan</b> <<a href="mailto:madprofzero@yahoo.com">madprofzero@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span><font face="Arial" size="2">Hey all,
</font></span></div>
<div><span><font face="Arial" size="2">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?</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Thanks</font></span></div><span class="sg">
<div><span><font face="Arial" size="2">Sherwood
McGowan</font></span></div>
</span><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --
<br><br>Asterisk-Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>"Su nombre es GNU/Linux, no solamente Linux, mas info en <a href="http://www.gnu.org">http://www.gnu.org
</a>"