[asterisk-bugs] [JIRA] (ASTERISK-26591) res_pjsip: Can't exclude codecs with multiple formats

George Joseph (JIRA) noreply at issues.asterisk.org
Tue Sep 15 09:10:43 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252029#comment-252029 ] 

George Joseph commented on ASTERISK-26591:
------------------------------------------

I think I mixed up the ordering in my original description.  Reading (and processing) left-to-right, I would expect {{!speex32,all}} to result in all codecs.  Same for {{!ulaw,all}}.  What _doesn't_ work are...
 * {{all,!speex32}} : results in all
 * {{all,!speex}} : results in one of the speexes being excluded but couldn't tell which one, probably the unnumbered one.

Even more confusing is the fact that unlike speex and slin, the 8khz version of silk is silk8 instead of just silk.    Well, actually, the fact that slin and speex _don't_ append the 8 to the 8khz versions is confusing.



> res_pjsip:  Can't exclude codecs with multiple formats
> ------------------------------------------------------
>
>                 Key: ASTERISK-26591
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26591
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.12.2, 14.1.2, GIT
>            Reporter: George Joseph
>            Assignee: George Joseph
>            Severity: Minor
>
> Codecs that have multiple formats like speex, silk, siren, etc can't be negated in an endpoint/allow.
> {{allow=!speex32,all}} passes validation but doesn't exclude speex32.
> On the other hand, {{allow=!all,speex32}} DOES include only speex32.
> Also, oddly enough, when you do a pjsip show endpoint for the negation example, the display for allow shows the codecs with multiple formats with just the base codec name (speex|speex|speex) but when you add a specific codec it shows speex32.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list