<div dir="ltr">You don't actually do it in your Dial command, You do it after your dial command.<div><br></div><div>Your Dial will return a DIALSTATUS variable, Check it and then process your busy.</div><div><br></div><div>Here's some sample code I just banged out real quick for you. Untested but it should do the job.</div><div><br></div><div>[sub-dialout]</div><div>exten => s,1,NoOP()</div><div>exten =>s,n,,Set(ARRAY(Trunk,Number,RingTo,DialOptn)=${ARG1},${ARG2},${ARG3},${ARG4})</div><div><div>exten => s,n(Dial),Dial(${Trunk}/${Number},${RingTo},${DialOptn})</div><div>exten => s,n,NoOp(DIALSTATUS is ${DIALSTATUS} HANGUPCAUSE is ${HANGUPCAUSE})</div><div>exten => s,n,Goto(${DIALSTATUS})</div><div>exten => s,n(NOANSWER),NoOP()<br></div><div>exten => s,n,Return${DIALSTATUS})</div><div>exten => s,n(BUSY),NoOP()<br></div><div><div>exten => s,n,Playtones(busy)</div><div>exten => s,n,Busy(8)</div><div>exten => s,n,Return(${DIALSTATUS})</div></div><div>exten => s,n(CHANUNAVAIL),NoOP()<br></div><div><div><div>exten => s,n,Playtones(congestion)</div><div>exten => s,n,Congestion(8)</div><div>exten => s,n,Return(${DIALSTATUS})</div></div></div><div>exten => s,n(CONGESTION),NoOP()<br></div><div><div><div>exten => s,n,Playtones(congestion)</div><div>exten => s,n,Congestion(8)</div><div>exten => s,n,Return(${DIALSTATUS})</div></div></div><div><br></div><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 7:04 PM, symack <span dir="ltr"><<a href="mailto:symack@gmail.com" target="_blank">symack@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello There,<div><br></div><div>I would like to play a busy tone (ie BEEP BEEP BEEP) when the underline</div><div>carrier sends back 486 Busy Here. Looking at Dial parameters (<a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial</a>), it mentioned something about the r</div><div>parameter as not being very professional or something like that...</div><div>Then there was:</div><div><br></div><div><div>U(x): Executes, via gosub, routine x on the called channel. This is similar to</div><div>M above, but a gosub rather than a macro. The subroutine can set</div><div>${GOSUB_RESULT}__ to the following:</div><div><br></div><div>ABORT: Hang up both legs</div><div>CONGESTION: Signal congestion to the caller</div><div>BUSY: Signal busy to the caller</div><div>CONTINUE: Hangup the called party but continue execution at the next priority in the dialplan for the caller</div><div>GOTO: Transfer the execution to context^exten^pri</div><div><br></div><div>I could not grasp how to include this in my Dial command. Your help is</div><div>greatly appreciated.</div><div><br></div><div>Nick from Toronto.</div></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>