diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-09-07 00:54:36 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-09-07 00:54:36 +0000 |
commit | f03bccdb4dcc1893acd2139f5a420c80ebdbecea (patch) | |
tree | f063176117468e13fcb3c769e9aae086a8663084 /configs | |
parent | f090651138a50f0d1f974f1223c48e2ccfd50850 (diff) |
Implement the '!' negation element to negate codecs directly in the allow keyword.
This permits the list of codecs to be specified in one configuration line,
instead of two or more, generally with the aim of either allowing all codecs
with the exception of a few or disallowing most but permitting a few.
Review: https://reviewboard.asterisk.org/r/1411/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@334574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r-- | configs/sip.conf.sample | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample index fb487dba6..7c04a4a0f 100644 --- a/configs/sip.conf.sample +++ b/configs/sip.conf.sample @@ -1216,10 +1216,14 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls allow=gsm allow=g723 allow=ulaw + ; Or, more simply: + ;allow=!all,ilbc,g729,gsm,g723,ulaw [ulaw-phone](!) ; and another one for ulaw-only disallow=all allow=ulaw + ; Again, more simply: + ;allow=!all,ulaw ; and finally instantiate a few phones ; |