]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_scheduler.c: Add type ONESHOT and enhance cli show command
authorGeorge Joseph <gjoseph@digium.com>
Mon, 2 Nov 2020 19:53:58 +0000 (12:53 -0700)
committerKevin Harwell <kharwell@digium.com>
Mon, 9 Nov 2020 22:38:37 +0000 (16:38 -0600)
commit5a4640d2080bc10a16e1831c0c9bd9ba7edd1174
tree023ddd74b48889ee83452c4a351ac09fdf9b03f3
parentcc7eb72f6544e021f9d3dd36f542118130c503b6
pjsip_scheduler.c: Add type ONESHOT and enhance cli show command

* Added a ONESHOT type that never reschedules.

* Added "like" capability to "pjsip show scheduled_tasks" so you can do
  the following:

  CLI> pjsip show scheduled_tasks like outreg
  PJSIP Scheduled Tasks:

  Task Name                                     Interval  Times Run ...
  ============================================= ========= ========= ...
  pjsip/outreg/testtrunk-reg-0-00000074            50.000   oneshot ...
  pjsip/outreg/voipms-reg-0-00000073              110.000   oneshot ...

* Fixed incorrect display of "Next Start".

* Compacted the displays of times in the CLI.

* Added two new functions (ast_sip_sched_task_get_times2,
  ast_sip_sched_task_get_times_by_name2) that retrieve the interval,
  next start time, and next run time in addition to the times already
  returned by ast_sip_sched_task_get_times().

Change-Id: Ie718ca9fd30490b8a167bedf6b0b06d619dc52f3
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_scheduler.c