Stephen - I wrapped everything in a try/catch block like you suggested. The script does not throw an exception. <div><div><br><div class="gmail_quote">On Sat, Jun 26, 2010 at 7:20 AM, Stephen Cattaneo <span dir="ltr"><<a href="mailto:stephen@mymessage.us">stephen@mymessage.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I would do the following:<br><br>try<br>{<br><font face="'courier new', monospace">new_session = new Session(
"sofia/internal/1000%192.168.1.10" );<div class="im"><br><br>
console_log( "info", "Call connected.\n" );<br> // play audio....<br>}<br></div>catch (e)<div class="im"><br>{<br> // the causecode is 0 when this fails on a successful call
attempt<br> console_log("err", "Call not connected. Cause: " +
new_session.cause + "[" + new_session.causecode + "]\n" );</div></font><br>}<br><br></blockquote></div></div></div>