mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
res/res_pjsip: Add preferred_codec_only config to pjsip endpoint.
This patch add config to pjsip by endpoint. ;preferred_codec_only=yes ; Respond to a SIP invite with the single most preferred codec ; rather than advertising all joint codec capabilities. This ; limits the other side's codec choice to exactly what we prefer. ASTERISK-26317 #close Reported by: AaronAn Tested by: AaronAn Change-Id: Iad04dc55055403bbf5ec050997aee2dadc4f0762
This commit is contained in:
@@ -757,6 +757,8 @@ struct ast_sip_endpoint {
|
||||
unsigned int faxdetect_timeout;
|
||||
/*! Override the user on the outgoing Contact header with this value. */
|
||||
char *contact_user;
|
||||
/*! Whether to response SDP offer with single most preferred codec. */
|
||||
unsigned int preferred_codec_only;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user