I would say that you want to bridge the inbound leg to the outbound leg and use the answer confirmation variables. I recommend you pastebin a simple java app that answers the call and attempts to bridge it and also pastebin the console log. The community will take a look and see if we can help you figure out what is happening.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Wed, Jun 8, 2011 at 3:14 PM, Hector Geraldino <span dir="ltr"><<a href="mailto:Hector.Geraldino@ip-soft.net">Hector.Geraldino@ip-soft.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi all,</p><p class="MsoNormal"> </p><p class="MsoNormal">I’ve been playing with FS around weeks, with some level of success. Right now I’m stuck trying to dial an extension, or to bridge a call to an external extension. Briefly, the scenario is the following:</p>
<p class="MsoNormal"> </p><p><span>-<span style="font:7.0pt "Times New Roman""> </span></span>Cisco CCM forwarding SIP calls to FS</p><p><span>-<span style="font:7.0pt "Times New Roman""> </span></span>FS in outbound mode, forwarding calls to a Java application using freeswitch-esl jar</p>
<p class="MsoNormal"> </p><p class="MsoNormal">The java application answers the call, says a dialogue using TTS and receives input using DTFM or speech commands; all this is working pretty well. Now I’m trying to put this call in hold, originate a call to another extension and, depending on the result (call answered, not answered, destination user presses an specific number generating an expected DTMF), I need to bridge both calls and finish the session.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">I try several ways to get this done with no luck yet: using api originate to make the call with different arguments ({ignore_early_media, etc). I even tried to skip this step and just do the bridge between the inbound call and the external extension, but this didn’t work either. I can’t see any errors thrown by FS, and the result of the command is +OK, but nothing happens, the external phone never rings. The FS log only says:</p>
<p class="MsoNormal"> </p><p class="MsoNormal" style="text-indent:.5in">[DEBUG] switch_core_session.c:954 Send signal sofia/external/<a href="mailto:5655@192.168.8.1" target="_blank">5655@192.168.8.1</a> [BREAK] <= this ext/IP address is from the inbound caller, not the one I’m trying to connect to.</p>
<p class="MsoNormal" style="text-indent:.5in"> </p><p class="MsoNormal">My first impression was that I might have something wrong with the originate/bridge parameters. I changed the dialplan XML file to just do the bridge, and it worked like a charm.</p>
<p class="MsoNormal"> </p><p class="MsoNormal"><include></p><p class="MsoNormal"><extension name="test"></p><p class="MsoNormal"> <condition field="destination_number" expression="6114|5121"></p>
<p class="MsoNormal"><!-- <action application="socket" data="localhost:8044 async full"/> --></p><p class="MsoNormal"> <action application="bridge" data="sofia/external/<a href="mailto:5562@192.168.2.14" target="_blank">5562@192.168.2.14</a>" /> </p>
<p class="MsoNormal"> </condition></p><p class="MsoNormal"></extension></p><p class="MsoNormal"></include></p><p class="MsoNormal"> </p><p class="MsoNormal">I don’t know what path to follow here. I was unable to find relevant examples on google that guides me to solve this little issue. Any advices?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks all,</p><p class="MsoNormal">Hector</p></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>