[asterisk-bugs] [JIRA] (ASTERISK-27387) Regression: pjsip 13.18.0 - from_user - "+" character isn't allowed any more

Walter Doekes (JIRA) noreply at issues.asterisk.org
Wed Nov 1 10:43:28 CDT 2017


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

Walter Doekes commented on ASTERISK-27387:
------------------------------------------

Looks like someone missed the user-unreserved?

https://gerrit.asterisk.org/#/c/5974/4/res/res_pjsip/pjsip_configuration.c
adds
{noformat}
char *valid_uri_marks = "-_.!~*`()";
{noformat}
But ABNF here http://www.tech-invite.com/fo-abnf/tinv-fo-abnf-sipuriui.html#idx says:
{noformat}
user   = 1*( unreserved   /   escaped   /   user-unreserved ) 
{noformat}
Where unreserved is indeed:
{noformat}
alnum / "-"   /   "_"   /   "."   /   "!"   /   "~"   /   "*"   /   "'"   /   "("   /   ")" 
{noformat}
and user-unreserved is:
{noformat}
"&"   /   "="   /   "+"   /   "$"   /   ","   /   ";"   /   "?"   /   "/" 
{noformat}
(And, also allowed are valid escapes.)

(Caused by: ASTERISK-27036 )

> Regression: pjsip 13.18.0 - from_user - "+" character isn't allowed any more
> ----------------------------------------------------------------------------
>
>                 Key: ASTERISK-27387
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27387
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.18.0
>         Environment: CentOS 6 64bit
>            Reporter: Michael Maier
>            Assignee: Benjamin Keith Ford
>
> Since Asterisk 13.18.0, I can't provide the "+" character any more with from_user (pjsip). Starting Asterisk with the old, working config creates this error log:
> res_pjsip/pjsip_configuration.c: Error configuring endpoint 'endpointname' - 'from_user' field contains invalid character '+' and trunk is ignored.
> I tested without "+" (+498...). It turned out, that it is needed 
> for authentication in the SIP trunk for outgoing calls. Without "+", I'm just getting 403 forbidden from provider instead of 407 Proxy authentication required.
> Allowing "+" character in https://gerrit.asterisk.org/#/c/5974/ makes it working again.



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



More information about the asterisk-bugs mailing list