What is the socket app syntax that you are using? Do you have &quot;async full&quot; turned on?<div>-MC<br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 1:22 PM, Hector Geraldino <span dir="ltr">&lt;<a href="mailto:Hector.Geraldino@ip-soft.net">Hector.Geraldino@ip-soft.net</a>&gt;</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"><span style="font-size:11.0pt;color:#1F497D">Hi Michael,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks for replying back. I’ve pasted a sample application on pastebin, the URL is: </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;color:#1F497D"><a href="http://pastebin.com/MYusWe3V" target="_blank">http://pastebin.com/MYusWe3V</a></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">What I’m trying to do (and have partially accomplished) is:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> -Answer the call</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> - Play a message</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> - wait for a command (dtmf or voice, this is out of the sample app for the sake of keeping it short &amp; simple)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> - originate a new call, wait for it to be answered and depending on an event (dtmf)…</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> - …do the bridge or dial another extension.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">The extension number is external (managed by a Cisco CCM). If I try to do the bridge from the XML dialplan it works perfect. When I try to do it from an outbound socket java application, anything happens, and almost no information is logged on FS log that I can use to decide what might be happening.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks again for your help. I truly appreciate it.</span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hector</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Thursday, June 09, 2011 12:47 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] originating a call from an outbound socket app</span></p></div><div><div></div><div class="h5"><p class="MsoNormal">
 </p><p class="MsoNormal">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.</p>
<div><p class="MsoNormal"> </p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">-MC</p><div><p class="MsoNormal">On Wed, Jun 8, 2011 at 3:14 PM, Hector Geraldino &lt;<a href="mailto:Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>&gt; wrote:</p>
<div><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 style="font-size:7.0pt">          </span>Cisco CCM forwarding SIP calls to FS</p><p>-<span style="font-size:7.0pt">          </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] &lt;= 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">&lt;include&gt;</p><p class="MsoNormal">&lt;extension name=&quot;test&quot;&gt;</p><p class="MsoNormal">        &lt;condition field=&quot;destination_number&quot; expression=&quot;6114|5121&quot;&gt;</p>
<p class="MsoNormal">&lt;!--    &lt;action application=&quot;socket&quot; data=&quot;localhost:8044 async full&quot;/&gt;  --&gt;</p><p class="MsoNormal">          &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/<a href="mailto:5562@192.168.2.14" target="_blank">5562@192.168.2.14</a>&quot; /&gt;  </p>
<p class="MsoNormal">        &lt;/condition&gt;</p><p class="MsoNormal">&lt;/extension&gt;</p><p class="MsoNormal">&lt;/include&gt;</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><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></p>
</div><p class="MsoNormal"> </p></div></div></div></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>