<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello!<br>
    <br>
    &nbsp;&nbsp;&nbsp; Here it is <a class="moz-txt-link-freetext" href="http://pastebin.freeswitch.org/16809">http://pastebin.freeswitch.org/16809</a><br>
    &nbsp;&nbsp;&nbsp; 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">&lt;<a moz-do-not-send="true"
              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't understand where to
            look for a problem.<br>
            &gt; Hello!<br>
            &gt;<br>
            &gt; &nbsp; &nbsp; &nbsp; I found a problem. originate_session must not to
            be local.<br>
            &gt;&gt; Hello!<br>
            &gt;&gt;<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;I'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 = "{ignore_early_media=true" +<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ",origination_caller_id_number=" +<br>
            &gt;&gt; session.getVariable("caller_id_number") +<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"}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>
            &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;originate_string =<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"{ignore_early_media=true" ..<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;",origination_caller_id_number=" ..<br>
            &gt;&gt; session:getVariable("caller_id_number") ..<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"}" ..<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"sofia/ipbx/50004#" ..<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;digits .. "@<a
              moz-do-not-send="true" href="http://192.168.1.1:5060"
              target="_blank">192.168.1.1:5060</a>";<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;originate_session = freeswitch.Session(
            originate_string );<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;freeswitch.bridge(session,
            originate_session);<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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; &nbsp; &nbsp; &nbsp; &nbsp;if( originate_session:ready() ) then<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;freeswitch.bridge(session,
            originate_session);<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;originate_session:hangup();<br>
            &gt;&gt; &nbsp; &nbsp; &nbsp; 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 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
&nbsp;
</pre>
  </body>
</html>