[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-users
Subject:    [Freeswitch-users] problem while doing outbound call from lua
From:       ovvenkatesan () gmail ! com (ovvenkat)
Date:       2010-07-30 5:21:58
Message-ID: AANLkTi=NmQ7QjepJwA28iNi9d3OQ5PTc=d2c9Nh=_Ug1 () mail ! gmail ! com
[Download RAW message or body]

On Thu, Jul 29, 2010 at 1:38 AM, Michael Collins <msc at freeswitch.org> wrote:

> 
> 
> On Wed, Jul 28, 2010 at 8:09 AM, ovvenkat <ovvenkatesan at gmail.com> wrote:
> 
> > Hi.
> > 
> > I am doing outbound call using below lua script
> > 
> > 
> > obSession = freeswitch.Session("sofia/gateway/voipms/14165555555");
> > 
> > 
> > 
> > 
> > if obSession:ready() then
> > obSession:execute("sched_hangup","+60 alloted_timeout");
> > freeswitch.bridge(session,obSession);
> > 
> > 
> > else
> > 
> > local obCause = obSession:hangupCause()
> > 
> > freeswitch.consoleLog("info", "obSession:hangupCause() = " .. obCause )
> > 
> > if ( obCause == "USER_BUSY" ) then
> > 
> > 
> > elseif ( obCause == "NO_ANSWER" ) then
> > -- Call them back in an hour
> > elseif ( obCause == "ORIGINATOR_CANCEL" ) then
> > 
> > -- May need to check for network congestion or problems
> > 
> > 
> > else
> > -- Log these issues
> > end
> > end
> > 
> > 
> > After call established (phone is ringing not answered) , immediately its
> > get getting disconnected after that.
> > Since, I could not able to use patebin ( Its asking user name and password
> > again and again , no success )
> > 
> Haha, you fail! The username and password are displayed in the dialog. :)
> Also, I like the name of your variable ("obsession") :P
> 
> Where is this Lua script actually getting called from? I don't see any
> reference to it in the call trace you supplied.
> -MC
> 
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 



Hi Mic,

Sorry for my mistake. Created fresh logs and here is the link of the
pastebin.

http://pastebin.freeswitch.org/13547

Regards,
Venkat.


Any one plz help me to solve my problem plz :)


Regards,
Venkat.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100730/914b6fd3/attachment.html \



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic