<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 6, 2014 at 1:22 PM, Scott Griepentrog <span dir="ltr"><<a href="mailto:sgriepentrog@digium.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=sgriepentrog@digium.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">sgriepentrog@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(102,0,0)">First, a smidgen of background:</div><div style="color:rgb(102,0,0)"><br>
</div><div style="color:rgb(102,0,0)">
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.</div>

<div style="color:rgb(102,0,0)"><br></div><div style="color:rgb(102,0,0)">There is some potential confusion here as to why there is two lists of the exact same codecs (see <a href="https://issues.asterisk.org/jira/browse/ASTERISK-23092" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-23092</a>).  I have a suggested patch (see <a href="https://reviewboard.asterisk.org/r/3193/" target="_blank">https://reviewboard.asterisk.org/r/3193/</a>) 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.</div>

<div style="color:rgb(102,0,0)"><br></div><div style="color:rgb(102,0,0)">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:</div>

<div style="color:rgb(102,0,0)"><br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(102,0,0)">1) Do we want to discontinue or alias both allow & disallow and move to codecs?</div>
</div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(102,0,0)"><br></div><div style="color:rgb(102,0,0)">2) If yes, then which version should that be done in?  12?  13?</div>
</div></blockquote><div><br></div><div>My vote...Move to codecs and alias allow/disallow in 12,  discontinue allow/disallow in 13.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div style="color:rgb(102,0,0)"><br></div><div style="color:rgb(102,0,0)">
Note that even if codecs is chosen, allow and disallow continue to work so no existing pjsip.conf is broken.</div><span class="HOEnZb"><font color="#888888"><div style="color:rgb(102,0,0)"><br></div></font></span></div></blockquote>
</div><br></div></div>