PJSIPNotify(content[,to])
Full arguments reference
to- Arbitrary URI to which to send the NOTIFY. If none is specified, send inside the SIP dialog for the current channel.contentrequired - Either an option pre-configured in pjsip_notify.conf or a list of headers and body content to send in the NOTIFY.
Sends a NOTIFY to a specified URI, or if none provided, within the current SIP dialog for the current channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on.. The content can either be set to either an entry configured in pjsip_notify.conf or specified as a list of key value pairs.
Warning
To send a NOTIFY to a specified URI, a default_outbound_endpoint must be configured. This endpointIn PJSIP configuration, the SIP entity Asterisk communicates with: a phone, trunk, or other user agent. Defined by an endpoint section in pjsip.conf. determines the message contact.
same = n,PJSIPNotify(,&Event=Test&X-Data=Fun)
same = n,PJSIPNotify(,force-answer)
same = n,PJSIPNotify(<sip:bob@127.0.0.1:5260>,&Event=Test&X-Data=Fun)
same = n,PJSIPNotify(<sip:bob@127.0.0.1:5260>,&Event=Custom&Content-type=application/voicemail&Content=check-messages&Content=)
to- Arbitrary URI to which to send the NOTIFY. If none is specified, send inside the SIP dialog for the current channel.contentrequired - Either an option pre-configured in pjsip_notify.conf or a list of headers and body content to send in the NOTIFY.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.