get a console log w/ siptrace of that scenario and put it on pastebin. the gang here will take a look.<div>-MC<br><br><div class="gmail_quote">On Thu, Jul 14, 2011 at 10:39 AM, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">And another problem found. If the remote party answers immediately all<br>
is ok. But if remote waits more then 8-10 seconds before answer - the<br>
call is dropped when answered. Can&#39;t understand where to look for a problem.<br>
&gt; Hello!<br>
&gt;<br>
&gt;       I found a problem. originate_session must not to be local.<br>
&gt;&gt; Hello!<br>
&gt;&gt;<br>
&gt;&gt;        I&#39;m trying to migrate DISA from Javascript to LUA. This peace of<br>
&gt;&gt; code works fine in Javascript:<br>
&gt;&gt;<br>
&gt;&gt; ostr = &quot;{ignore_early_media=true&quot; +<br>
&gt;&gt;               &quot;,origination_caller_id_number=&quot; +<br>
&gt;&gt; session.getVariable(&quot;caller_id_number&quot;) +<br>
&gt;&gt;                        &quot;}sofia/ipbx/50004#&quot; + digits + &quot;@<a href="http://192.168.1.1:5060" target="_blank">192.168.1.1:5060</a>&quot;;<br>
&gt;&gt; osession = new Session( ostr );<br>
&gt;&gt; bridge(session, osession);<br>
&gt;&gt; osession.hangup();<br>
&gt;&gt;<br>
&gt;&gt; With LUA not:<br>
&gt;&gt;            originate_string =<br>
&gt;&gt;                &quot;{ignore_early_media=true&quot; ..<br>
&gt;&gt;                &quot;,origination_caller_id_number=&quot; ..<br>
&gt;&gt; session:getVariable(&quot;caller_id_number&quot;) ..<br>
&gt;&gt;                &quot;}&quot; ..<br>
&gt;&gt;                &quot;sofia/ipbx/50004#&quot; ..<br>
&gt;&gt;                digits .. &quot;@<a href="http://192.168.1.1:5060" target="_blank">192.168.1.1:5060</a>&quot;;<br>
&gt;&gt;            originate_session = freeswitch.Session( originate_string );<br>
&gt;&gt;                freeswitch.bridge(session, originate_session);<br>
&gt;&gt;                originate_session:hangup();<br>
&gt;&gt;<br>
&gt;&gt; The call is droped when remote answers. There is an error in log:<br>
&gt;&gt; bridge: session not ready. I tried to use<br>
&gt;&gt;        if( originate_session:ready() ) then<br>
&gt;&gt;                freeswitch.bridge(session, originate_session);<br>
&gt;&gt;                originate_session:hangup();<br>
&gt;&gt;       end<br>
&gt;&gt;<br>
&gt;&gt; with no luck :(. Please, help me. What am I doing wrong?<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Regards,<br>
Boris<br>
<br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
</blockquote></div><br></div>