search for: pj_strbuf

Displaying 2 results from an estimated 2 matches for "pj_strbuf".

Did you mean: pidstrbuf
2017 Jun 09
2
pjsip user_eq_phone adds user=phone to anonymous user bug?
...user=phone is present on an anonymous username. Looking at the code,res/res_pjsip.c function ast_sip_add_usereqphone is the only place I see that might add user=phone: ================================================================================= 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])) {...
2017 Jun 18
2
asterisk 13.16. - sigseg during negotiation
...size_t chars_to_copy = MIN(size - 1, pj_strlen(src)); (gdb) list 4142 return std.fail; 4143 } 4144 4145 void ast_copy_pj_str(char *dest, const pj_str_t *src, size_t size) 4146 { 4147 size_t chars_to_copy = MIN(size - 1, pj_strlen(src)); 4148 memcpy(dest, pj_strbuf(src), chars_to_copy); 4149 dest[chars_to_copy] = '\0'; 4150 } 4151 (gdb) frame 1 #1 0x00007fb9f0b02334 in negotiate_incoming_sdp_stream (session=0x7fba3c031200, session_media=<value optimized out>, sdp=<value optimized out>, stream=<value optimized out>)...