res_pjsip_notify: add dialplan application

Add dialplan application PJSIPNOTIFY to send either pre-configured
NOTIFY messages from pjsip_notify.conf or with headers defined in
dialplan.

Also adds the ability to send pre-configured NOTIFY commands to a
channel via the CLI.

Resolves: #799

UserNote: A new dialplan application PJSIPNotify is now available
which can send SIP NOTIFY requests from the dialplan.

The pjsip send notify CLI command has also been enhanced to allow
sending NOTIFY messages to a specific channel. Syntax:

pjsip send notify <option> channel <channel>

(cherry picked from commit e7ca7aa881)
This commit is contained in:
Mike Bradeen
2024-07-09 16:11:36 -06:00
committed by Asterisk Development Team
parent f14b687453
commit 6e8a5a2332
5 changed files with 281 additions and 24 deletions

View File

@@ -55,3 +55,17 @@ Event=>check-sync\;reboot=true
[cisco-check-cfg]
Event=>check-sync
; custom examples to use for PJSIPNotify application
; tell an endpoint to check messages
[custom-notify-1]
Event=>custom
Content-type=>application/voicemail
Content=>check-messages
Content=>
; tell an endpoint to force a remote hangup via custom header
[custom-notify-2]
Event=>custom
X-Data=>force-hangup