<p>Try harder..</p>
<div class="gmail_quote">On Jul 15, 2011 4:43 AM, "Boris Kovalenko" <<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>> wrote:<br type="attribution">> Hello!<br>> <br>> I tried, no success.<br>
> <br>>> after you create it<br>>><br>>> session:setAutoHangup(0)<br>>><br>>> or it will hangup when the script exits<br>>><br>>> On Thu, Jul 14, 2011 at 1:11 PM, Boris Kovalenko<<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>> wrote:<br>
>>> Hello!<br>>>><br>>>> Here it is <a href="http://pastebin.freeswitch.org/16809">http://pastebin.freeswitch.org/16809</a><br>>>> Hope somebody help<br>>>><br>>>> get a console log w/ siptrace of that scenario and put it on pastebin. the<br>
>>> gang here will take a look.<br>>>> -MC<br>>>><br>>>> On Thu, Jul 14, 2011 at 10:39 AM, Boris Kovalenko<<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>> wrote:<br>>>>> 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<br>>>>> 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 +<br>>>>>>> "@<a href="http://192.168.1.1:5060">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">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>>>>> Regards,<br>>>>> Boris<br>>>>><br>
>>>><br>>>>><br>>>>> _______________________________________________<br>>>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>>>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>><br>>>><br>>>> _______________________________________________<br>>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>>><br>>>><br>>>> --<br>>>> Regards,<br>>>> Boris<br>>>><br>>>><br>>>> _______________________________________________<br>>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>>> <a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>>>><br>>>><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">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</div>