PJSIP_SEND_SESSION_REFRESH()
Synopsis
W/O: Initiate a session refresh via an UPDATE or re-INVITE on an established media session
Description
This function will cause the PJSIP stack to immediately refresh the media session for the channel. This will be done using either a re-INVITE (default) or an UPDATE request.
This is most useful when combined with the PJSIP_MEDIA_OFFER dialplan function, as it allows the formats in use on a channel to be re-negotiated after call setup.
Example: Re-negotiate format to g722
Syntax
PJSIP_SEND_SESSION_REFRESH([update_type])
Arguments
update_type
- The type of update to send. Default isinvite
.invite
- Send the session refresh as a re-INVITE.update
- Send the session refresh as an UPDATE.
See Also
Import Version
This documentation was imported from Asterisk Version 18