mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; rfc3842
 | |
| ; put empty "Content=>" at the end to have CRLF after last body line
 | |
| 
 | |
| [clear-mwi]
 | |
| Event=>message-summary
 | |
| Content-type=>application/simple-message-summary
 | |
| Content=>Messages-Waiting: no
 | |
| Content=>Message-Account: sip:asterisk@127.0.0.1
 | |
| Content=>Voice-Message: 0/0 (0/0)
 | |
| Content=>
 | |
| 
 | |
| ; Aastra
 | |
| 
 | |
| [aastra-check-cfg]
 | |
| Event=>check-sync
 | |
| 
 | |
| [aastra-xml]
 | |
| Event=>aastra-xml
 | |
| 
 | |
| ; Digium
 | |
| 
 | |
| [digium-check-cfg]
 | |
| Event=>check-sync
 | |
| 
 | |
| ; Linksys
 | |
| 
 | |
| [linksys-cold-restart]
 | |
| Event=>reboot_now
 | |
| 
 | |
| [linksys-warm-restart]
 | |
| Event=>restart_now
 | |
| 
 | |
| ; Polycom
 | |
| 
 | |
| [polycom-check-cfg]
 | |
| Event=>check-sync
 | |
| 
 | |
| ; Sipura
 | |
| 
 | |
| [sipura-check-cfg]
 | |
| Event=>resync
 | |
| 
 | |
| [sipura-get-report]
 | |
| Event=>report
 | |
| 
 | |
| ; snom
 | |
| 
 | |
| [snom-check-cfg]
 | |
| Event=>check-sync\;reboot=false
 | |
| 
 | |
| [snom-reboot]
 | |
| Event=>check-sync\;reboot=true
 | |
| 
 | |
| ; Cisco
 | |
| 
 | |
| [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 |