<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello!<br>
<br>
Here it is <a class="moz-txt-link-freetext" href="http://pastebin.freeswitch.org/16809">http://pastebin.freeswitch.org/16809</a><br>
Hope somebody help<br>
<blockquote
cite="mid:CAKzWOxV_mtSxRR0XULjY6QC92wXnnrHL9eq-ZyPMeBoKX9eVrw@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true" 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 moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Boris
</pre>
</body>
</html>