Skip to content

Commit

Permalink
sipmsg_validate(): Allow "(" and ")" in SIP URI usernames
Browse files Browse the repository at this point in the history
According to RFC 3261:
    mark        =  "-" / "_" / "." / "!" / "~" / "*" / "'"
                   / "(" / ")"

... so both parantheses are legal within URI usernames.

(cherry picked from commit c82d074)
  • Loading branch information
liviuchircu committed Jan 5, 2021
1 parent 06dd25c commit b68c604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sipmsgops/sipmsgops.c
Expand Up @@ -1410,8 +1410,8 @@ static char _is_username_char[128] = {
0 /* 37 % */,
1 /* 38 & */,
1 /* 39 ' */,
0 /* 40 ( */,
0 /* 41 ) */,
1 /* 40 ( */,
1 /* 41 ) */,
1 /* 42 * */,
1 /* 43 + */,
1 /* 44 , */,
Expand Down

0 comments on commit b68c604

Please sign in to comment.