<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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><br><br><br><br><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>