[asterisk-bugs] [JIRA] (ASTERISK-29261) res_pjsip: user=phone validation fail for isup numbers containing *#

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Fri Jan 22 07:08:59 CST 2021


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

Joshua C. Colp commented on ASTERISK-29261:
-------------------------------------------

It appears as though the behavior was copied from chan_sip, as it also uses AST_DIGIT_ANYNUM.

> res_pjsip: user=phone validation fail for isup numbers containing *#
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-29261
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29261
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 18.0.0, 18.1.0, 18.1.1
>            Reporter: Mark Petersen
>            Severity: Minor
>
> if From number contain * or # asterisk will not add user=phone
> Currently only number that uses AST_DIGIT_ANYNUM can have "user=phone" but the validation should use AST_DIGIT_ANY
> this is a problem when you want to send call to ISUP
> as they will disregard the From header and either replace From with anonymous or with p-asserted-identity
> https://tools.ietf.org/html/rfc3966#section-5.1.3
> for some reason when this section was first added (17 Oct 2014) the comment in the code use the correct AST_DIGIT_ANY but the actual code uses AST_DIGIT_ANYNUM :-/



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



More information about the asterisk-bugs mailing list