Skip to content

Add uuid_kill, sched_hangup and sched_del commands - #23

Closed
henrikbjorn wants to merge 1 commit into
sendeventfrom
sched-commands
Closed

henrikbjorn wants to merge 1 commit into
sendeventfrom
sched-commands

Conversation

@henrikbjorn

Copy link
Copy Markdown
Member

Three mod_commands API commands get named methods, next to uuid_park and uuid_bridge:

api.uuid_kill uuid, "NO_ROUTE_DESTINATION"
api.sched_hangup "+3600", uuid, "ALLOTTED_TIMEOUT"
api.sched_del uuid   # FreeSWITCH replies "+OK Deleted: <count>"
  • uuid_kill(uuid, cause = nil) hangs up a call.
  • sched_hangup(time, uuid, cause = nil) schedules a hangup. time is seconds from now with a leading +, or an epoch time.
  • sched_del(id) deletes a scheduled task by its id, or every task in a group. A call's scheduled tasks (sched_hangup, sched_transfer, …) are grouped by its uuid.

Baritone claims a parked call with sched_del (cancelling the dialplan's sched_transfer fallback) and caps it with sched_hangup.

Stacked on #22.

uuid_kill(uuid, cause = nil), sched_hangup(time, uuid, cause = nil) and
sched_del(id), next to uuid_park and uuid_bridge. sched_del takes a
task id or a group; a call's scheduled tasks are grouped by its uuid.
@henrikbjorn

Copy link
Copy Markdown
Member Author

Folded into #25, which collects these changes in one PR.

@henrikbjorn henrikbjorn closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant