search for: ast_digit_anynum

Displaying 1 result from an estimated 1 matches for "ast_digit_anynum".

2017 Jun 09
2
pjsip user_eq_phone adds user=phone to anonymous user bug?
...= int i = 0; //..... if (pj_strbuf(&sip_uri->user)[0] == '+') { i = 1; } /* Test URI user against allowed characters in AST_DIGIT_ANY */ for (; i < pj_strlen(&sip_uri->user); i++) { if (!strchr(AST_DIGIT_ANYNUM, pj_strbuf(&sip_uri->user)[i])) { break; } } if (i < pj_strlen(&sip_uri->user)) { return; } //add user=phone if we get to the code below ===========================================================...