<font face="Arial, Helvetica, sans-serif">Initially, "show" "channels count" gives "0 total."<br>
<br>
I then spawn a session from javascript thus:<br>
<br>
apiExecute("originate", "{id_name='" + call['Caller Name'] + "',id_number=" + call["Caller Number"] + "}sofia/gateway/spa3102PSTN/" + "1" + call["Caller Number"] + "@10.0.0.5:5061 '&javascript(reminder.js \'${id_name}\' ${id_number})'");<br>
<br>
Next, I'd like to automatically spawn another session when my channels show "0 total" with apiExecute("show", "channels count"); <br>
I've set up a (loop with a msleep) to check when apiExecute("show", "channels count") becomes zero but it never does after the first call and stays at 1.<br>
This seems to "mess-up" making the next call.<br>
<br>
Thanks. Mark. <br>
<br>
</font><div id='MAILCIAMB047-5c6249e045943de' class='aol_ad_footer'><br/><font style="color:black;font:normal 10pt arial,san-serif;"> <hr style="margin-top:10px"/>Check all of your email inboxes from anywhere on the web. <a href="http://toolbar.aol.com/mail/download.html?ncid=txtlnkusdown00000027">Try the new Email Toolbar now</a>!</font> </div>