diff options
author | Aaron An <anjb@ti-net.com.cn> | 2016-08-30 11:26:03 +0800 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-09-09 05:36:19 -0500 |
commit | 2a50c2910144e1b4095d171b1386fd5ebb0c5b5a (patch) | |
tree | bcc7712ca9397f1ae82f5e30905f21b247acde74 /include/asterisk | |
parent | d3c4b901d476a41b3f7df063aeba3852df4e26b7 (diff) |
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
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/res_pjsip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index 4cede4391..8a5ad29c5 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -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; }; /*! |