[Freeswitch-users] Javascript: inconsistent session.ready() result when originating a call

Anthony Minessale anthony.minessale at gmail.com
Mon Jun 28 07:09:03 PDT 2010


try latest GIT and see if it is any better.


On Mon, Jun 28, 2010 at 8:56 AM, stephen at stephenjc <stephen at stephenjc.com
> wrote:

> are the logs any different?
>
>
> Thanks,
> Stephen C
> -All of my email addresses go to the same place
> -Save Paper, think before you print
>
>
>
> On Mon, Jun 28, 2010 at 9:51 AM, Marc Kellem <mkellem at vontoo.com> wrote:
>
>> Stephen - I wrapped everything in a try/catch block like you suggested.
>> The script does not throw an exception.
>>
>> On Sat, Jun 26, 2010 at 7:20 AM, Stephen Cattaneo <stephen at mymessage.us>wrote:
>>
>>> I would do the following:
>>>
>>> try
>>> {
>>> new_session = new Session( "sofia/internal/1000%192.168.1.10" );
>>>
>>>
>>>  console_log( "info", "Call connected.\n" );
>>>  // play audio....
>>> }
>>> catch (e)
>>>
>>> {
>>>  // the causecode is 0 when this fails on a successful call attempt
>>>  console_log("err", "Call not connected. Cause: " + new_session.cause +
>>> "[" + new_session.causecode + "]\n" );
>>>
>>> }
>>>
>>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100628/efd9e0a6/attachment.html 


More information about the FreeSWITCH-users mailing list