Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] sched_del API Syntax


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





PostPosted: Thu Apr 23, 2009 7:07 am    Post subject: [Freeswitch-users] sched_del API Syntax Reply with quote

There's a reference in the wiki to the sched_del API command, but it doesn't give an example, and the console doesn't give a syntax either. Does anyone know it? I'm interested to know how it relates to the group_name (task-group) set in the sched_api command. If I want to delete a specific sched_api command, how would I do it with sched_del?

Thanks.
--matt
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Apr 23, 2009 12:57 pm    Post subject: [Freeswitch-users] sched_del API Syntax Reply with quote

On Thu, Apr 23, 2009 at 4:53 AM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
There's a reference in the wiki to the sched_del API command, but it doesn't give an example, and the console doesn't give a syntax either. Does anyone know it? I'm interested to know how it relates to the group_name (task-group) set in the sched_api command. If I want to delete a specific sched_api command, how would I do it with sched_del?



specify a group_name or task group when doing the sched_api command:

sched_api +1800 my_group version API CALL [sched_api(+1800 my_group version)] output:+OK Added: 4
Then use that same group_name to delete the scheduled API:

sched_del my_groupAPI CALL [sched_del(my_group)] output: +OK Deleted: 1
I'll get the sched_del API documented ASAP. Thanks for the heads up.
-MC
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Apr 23, 2009 10:49 pm    Post subject: [Freeswitch-users] sched_del API Syntax Reply with quote

Oh that's simple enough. I did my part and added this to the Wiki

Also note that in the below example you can do "sched_del 4" and delete a specific task by specifying the integer returned with the original sched_api command--incase you want to delete a specific scheduled task from a group. Thanks.


--matt

On Fri, Apr 24, 2009 at 12:43 AM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:
On Thu, Apr 23, 2009 at 4:53 AM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
There's a reference in the wiki to the sched_del API command, but it doesn't give an example, and the console doesn't give a syntax either. Does anyone know it? I'm interested to know how it relates to the group_name (task-group) set in the sched_api command. If I want to delete a specific sched_api command, how would I do it with sched_del?




specify a group_name or task group when doing the sched_api command:

sched_api +1800 my_group version API CALL [sched_api(+1800 my_group version)] output:+OK Added: 4
Then use that same group_name to delete the scheduled API:

sched_del my_groupAPI CALL [sched_del(my_group)] output: +OK Deleted: 1
I'll get the sched_del API documented ASAP. Thanks for the heads up.
-MC



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

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