mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
res_pjsip: Allow + at the beginning of a phone number when user_eq_phone is enabled.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2150,6 +2150,10 @@ void ast_sip_add_usereqphone(const struct ast_sip_endpoint *endpoint, pj_pool_t
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pj_strbuf(&sip_uri->user)[0] == '+') {
|
||||||
|
i = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Test URI user against allowed characters in AST_DIGIT_ANY */
|
/* Test URI user against allowed characters in AST_DIGIT_ANY */
|
||||||
for (; i < pj_strlen(&sip_uri->user); i++) {
|
for (; i < pj_strlen(&sip_uri->user); i++) {
|
||||||
if (!strchr(AST_DIGIT_ANYNUM, pj_strbuf(&sip_uri->user)[i])) {
|
if (!strchr(AST_DIGIT_ANYNUM, pj_strbuf(&sip_uri->user)[i])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user