Can't cancel sched_api

Hello all,

Why would I not be able to cancel a sched_api?

i.e.:

at one point I’m doing:

<action application="sched_broadcast" data="+${pstn_answer_timeout} hangup::NO_USER_RESPONSE both"/>

then from the cli:


freeswitch@domain.com> show channels
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context
5ff9077b-5132-4358-802a-1fc8ed444541,inbound,2022-12-05 17:03:52,1670259832,sofia/legacy/1631...@domain.com,CS_EXCHANGE_MEDIA,1631...,1631...,10.243.17.181,+1705...,uuid_bridge,50fbbaee-0e73-4745-8d80-8b023ff1396d,XML,fsDialer,opus,8000,0,opus,8000,0,srtp:dtls:AES_CM_128_HMAC_SHA1_80,domain.com,,,fsDialer,ACTIVE,,,,50fbbaee-0e73-4745-8d80-8b023ff1396d,,,1631...,1631...,10.243.17.181,+1705...,XML,fsDialer

freeswitch@domain.com> uuid_broadcast 5ff9077b-5132-4358-802a-1fc8ed444541 sched_cancel ${api_task}
+OK Message sent

freeswitch@domain.com> uuid_broadcast 5ff9077b-5132-4358-802a-1fc8ed444541 sched_cancel 147
+OK Message sent

freeswitch@domain.com> show tasks
task_id,task_desc,task_group,task_runtime,task_sql_manager,hostname
3,limit_hash_cleanup,mod_hash,1670260628,0,domain.com
147,switch_ivr_schedule_broadcast,5ff9077b-5132-4358-802a-1fc8ed444541,1670259893,0,domain.com

2 total.


sched_cancel is an APP

API equivalent for that is sched_del.

For example
show tasks

sched_del 10