<div dir="ltr">Simple yet complicated issue I've been working on for about 48 hours. I could really use some assistance....<div><br></div><div>1. I'm bridging calls via httapi and that is working fine.</div><div><br></div><div><div><execute action="$action" application="bridge" data="sofia/gateway/voipms/2145551212"></execute></div></div><div><br></div><div><br></div><div>2. I want to be notified at my URL via CURL when, A: The call starts ringing and B: The call is answered. I'm using this code for that: </div><div><br></div><div><div><!-- Get a CURL post once call starts ringing (media begins) --></div><div><!-- <execute application=\"export\" data=\"nolocal:execute_on_media=curl <a href="http://myurl.com/test3.php">http://myurl.com/test3.php</a> post event=RingRing&amp;\${uuid}&amp;state=\${state}&direction=\${direction}\"></execute> --></div><div><br></div><div><!-- Get a CURL post once leg B answers --></div><div><execute application=\"export\" data=\"nolocal:execute_on_answer=curl <a href="http://myurl.com/test3.php">http://myurl.com/test3.php</a> post event=RingRing_Answer&amp;\${uuid}&amp;state=\${state}&direction=\${direction}\"></execute></div><div><br></div><div><br></div><div>The problem comes because it's a bridge, as far as FreeSWITCH is concerned once it's connected to the gateway and the gateway answers, the "execute_on_answer" should be triggered, but i need it to execute when the party actually answers the phone, not when the gateway "answers".</div><div><br></div><div><br></div><div>There must be a simple way around this, open to suggestions, thanks!</div><div><br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)"><span><a value="+12146991224"></a></span></span></div></div></div></div></div></div>
</div></div>