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

Marc Kellem mkellem at vontoo.com
Mon Jun 28 06:51:13 PDT 2010


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" );
>
> }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100628/12fdc0b7/attachment.html 


More information about the FreeSWITCH-users mailing list