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"><<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>></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't understand where to look for a problem.<br>
> Hello!<br>
><br>
> I found a problem. originate_session must not to be local.<br>
>> Hello!<br>
>><br>
>> I'm trying to migrate DISA from Javascript to LUA. This peace of<br>
>> code works fine in Javascript:<br>
>><br>
>> ostr = "{ignore_early_media=true" +<br>
>> ",origination_caller_id_number=" +<br>
>> session.getVariable("caller_id_number") +<br>
>> "}sofia/ipbx/50004#" + digits + "@<a href="http://192.168.1.1:5060" target="_blank">192.168.1.1:5060</a>";<br>
>> osession = new Session( ostr );<br>
>> bridge(session, osession);<br>
>> osession.hangup();<br>
>><br>
>> With LUA not:<br>
>> originate_string =<br>
>> "{ignore_early_media=true" ..<br>
>> ",origination_caller_id_number=" ..<br>
>> session:getVariable("caller_id_number") ..<br>
>> "}" ..<br>
>> "sofia/ipbx/50004#" ..<br>
>> digits .. "@<a href="http://192.168.1.1:5060" target="_blank">192.168.1.1:5060</a>";<br>
>> originate_session = freeswitch.Session( originate_string );<br>
>> freeswitch.bridge(session, originate_session);<br>
>> originate_session:hangup();<br>
>><br>
>> The call is droped when remote answers. There is an error in log:<br>
>> bridge: session not ready. I tried to use<br>
>> if( originate_session:ready() ) then<br>
>> freeswitch.bridge(session, originate_session);<br>
>> originate_session:hangup();<br>
>> end<br>
>><br>
>> with no luck :(. Please, help me. What am I doing wrong?<br>
>><br>
><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>