Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Kill, close or reset a channel that remains with "show channels count"


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mszlazak at aol.com
Guest





PostPosted: Sat Apr 11, 2009 2:37 am    Post subject: [Freeswitch-users] Kill, close or reset a channel that remai Reply with quote

Initially, "show" "channels count" gives "0 total."

I then spawn a session from javascript thus:

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})'");

Next, I'd like to automatically spawn another session when my channels show "0 total" with apiExecute("show", "channels count");
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.
This seems to "mess-up" making the next call.

Thanks. Mark.

Check all of your email inboxes from anywhere on the web. Try the new Email Toolbar now!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services