<br><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 8:09 AM, ovvenkat <span dir="ltr"><<a href="mailto:ovvenkatesan@gmail.com">ovvenkatesan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi. <br><br>I am doing outbound call using below lua script <br><br><br><pre style="font-family: arial,helvetica,sans-serif;"><font style="background-color: rgb(255, 204, 153);" size="2">obSession = freeswitch.Session("sofia/</font><font style="background-color: rgb(255, 204, 153);" size="2">gateway/voipms/14165555555");<br>
<br><br><br>if obSession:ready() then<br>obSession:execute("sched_</font><font style="background-color: rgb(255, 204, 153);" size="2">hangup","+60 alloted_timeout");<br>freeswitch.bridge(session,</font><font style="background-color: rgb(255, 204, 153);" size="2">obSession);<br>
<br>else<br><br> local obCause = obSession:hangupCause()<br><br> freeswitch.consoleLog("info", "obSession:hangupCause() = " .. obCause )<br><br> if ( obCause == "USER_BUSY" ) then <br>
<br> elseif ( obCause == "NO_ANSWER" ) then<br> -- Call them back in an hour<br> elseif ( obCause == "ORIGINATOR_CANCEL" ) then <br><br> -- May need to check for network congestion or problems<br>
else<br> -- Log these issues<br> end<br>end</font></pre><br>After call established (phone is ringing not answered) , immediately its get getting disconnected after that. <br>Since, I could not able to use patebin ( Its asking user name and password again and again , no success )<br>
</div></blockquote><div>Haha, you fail! The username and password are displayed in the dialog. :)<br>Also, I like the name of your variable ("obsession") :P<br><br>Where is this Lua script actually getting called from? I don't see any reference to it in the call trace you supplied.<br>
-MC<br></div></div><br>