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:
Aaron An
2016-08-30 11:26:03 +08:00
committed by Joshua Colp
parent d3c4b901d4
commit 2a50c29101
8 changed files with 63 additions and 4 deletions

View File

@@ -764,6 +764,10 @@
; "0" or not enabled)
;contact_user= ; On outgoing requests, force the user portion of the Contact
; header to this value (default: "")
;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.
; default is no.
;==========================AUTH SECTION OPTIONS=========================
;[auth]