Read all the options of the Dial() function. There are options you can mess with to play something while the call is ringing (music on hold feature if I recall). Check out all the Dial options.<br><br><div><span class="gmail_quote">
On 10/29/07, <b class="gmail_sendername">Douglas Garstang</b> <<a href="mailto:dougmig33@yahoo.com">dougmig33@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><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>I'm confused about something.<br>It's the way Asterisk handles the A leg (ie the first party dialed) on an originate command via the Manager Interface.
<br><br>Lets say our originate commands looks like this:<br><br>ACTION: Originate<br>Async: yes<br>Timeout: 60000<br>Exten: callback<br>Channel: SIP/5551212@provider<br>Variable: destination=SIP/8675309@provider<br>Callerid: 5551212
<br>Context: default<br>ActionID: 849120<br>Priority: 1<br><br>Asterisk first goes and dials the Channel parameter, SIP/5551212@provider. This is where it gets confusing. You have no control over what happens here. The actions don't even appear on the Asterisk console debug. It isn't until this party has picked up, and control jumps to the 'callback' extension, that Asterisk shows you what it is doing.
<br><br>So, I
went and changed the Channel parmeter to Channel: Local/5551212@LegA, and made a LegA context:<br><br>[LegA]<br>exten => _X.,1,Dial(SIP/${EXTEN}@provider)<br>exten => _X.,n,Playback(tt-monkeys)<br><br>I wanted to have control over the call both before and after it is placed. I wanted to be able to play a prompt to the caller before the call is placed to the destination number. However, since we've dialled the A party already, we have no control over the dial plan anymore after they have answered, and I can't play prompts.
<br><br>What can I do here?<br><br>Doug.<br><span class="ad"><br><br><br><br><br></span></div></div><span class="ad"><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around
<br><a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.yahoo.com</a> </span></div><br>_______________________________________________<br>--Bandwidth and Colocation Provided by
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<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></blockquote></div>
<br>