<br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 11:43 AM, Alberto Escudero <span dir="ltr"><<a href="mailto:aep.lists@it46.se">aep.lists@it46.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The problem i am facing is the following:<br>
<br>
Extension 4600 is a Javascript IVR that starts by session.aswer()<br>
<br>
I want to originate a call to leg 1 and then connected to the IVR when the<br>
leg 1 has answered.<br>
<br>
If I run<br>
<div class="im"><br>
originate sofia/<a href="http://192.168.46.15/1001" target="_blank">192.168.46.15/1001</a> 4600<br>
</div>call is transfer to extension 4600 *IVR* after 1001 answers the call<br>
<br>
If I run<br>
<div class="im">originate sofia/internal/<a href="mailto:1001@192.168.46.15">1001@192.168.46.15</a> 4600<br>
</div>the IVR starts BEFORE user 1001 has answered?<br>
<br>
What is the best way to:<br>
<br>
Initiate a call to leg 1 and connect it to leg 2 (the Javascript IVR)<br>
after leg 1 has answered the call?<br></blockquote><div><br>You can try ignoring early media to force the A-leg to answer before anything else happens. Try this and let us know if it does what you want:<br>originate {ignore_early_media=true} sofia/internal/<a href="mailto:1001@192.168.46.15">1001@192.168.46.15</a> 4600<br>
<br>You can probably look at the SIP traces of the two options you've tried (without ignoring early media) to confirm that you're getting media prior to answer when doing "originate sofia/internal/<a href="mailto:1001@192.168.46.15">1001@192.168.46.15</a> 4600" - probably in one case you get a 180 and in the other a 183. Check it out and let us know. :)<br>
-MC<br></div></div><br>