Summary: | ASTERISK-26277: Add dialplan function PJSIP_SEND_SESSION_REFRESH that sends a session refresh to update formats on a channel after session establishment | ||
Reporter: | Matt Jordan (mjordan) | Labels: | |
Date Opened: | 2016-08-08 12:00:08 | Date Closed: | 2016-08-11 11:17:31 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_pjsip |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | At a couple of AstriDevCons and - as discussed on the [community forums|https://community.asterisk.org/t/setting-different-codec-for-confbridge/67627/8] - there are times where you may want to change the format on a channel after the session has been established. A couple of use cases for this:
# You may want to switch to a low bandwidth codec due to network congestion issues # You may want to try and force everyone to a wideband codec, if you know everyone can support it While {{chan_sip}} makes this a bit difficult, doing it in PJSIP is rather straight forward. The patch referenced in the Gerrit reviews associated with this issue adds a new dialplan function, {{PJSIP_SEND_SESSION_REFRESH}}, that sends a re-{{INVITE}} or {{UPDATE}}. Combined with {{PJSIP_MEDIA_OFFER}}, this allows you to change the formats on the fly. | ||
Comments: |