[asterisk-dev] PJSIP: allow/disallow or codecs?

Scott Griepentrog sgriepentrog at digium.com
Thu Mar 6 14:22:12 CST 2014


First, a smidgen of background:

The two sorcery options for pjsip.conf "allow" and "disallow" both accept a
list of codecs and set the same table of codecs in behind the scenes.  The
difference being of course that the disallow field inverts the meaning.

There is some potential confusion here as to why there is two lists of the
exact same codecs (see
https://issues.asterisk.org/jira/browse/ASTERISK-23092).  I have a
suggested patch (see https://reviewboard.asterisk.org/r/3193/) to make the
disallow option disappear in a fashion.  You can still use the disallow
option in pjsip.conf, but when viewing the settings with pjsip show
endpoint # only the allow list would appear.  This is accomplished by
marking the disallow field as an alias.

An option to move away from SIP's convention of allow/disallow and have
PJSIP use codecs=ulaw,etc has been suggested (and is coded in the review).
 The question then is:

1) Do we want to discontinue or alias both allow & disallow and move to
codecs?

2) If yes, then which version should that be done in?  12?  13?

Note that even if codecs is chosen, allow and disallow continue to work so
no existing pjsip.conf is broken.

-- 
[image: Digium logo]
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140306/a914e00b/attachment.html>


More information about the asterisk-dev mailing list