Merge "res_pjsip: Prevent "user=phone" being added multiple times to header"
This commit is contained in:
commit
292cda4ee7
1 changed files with 5 additions and 0 deletions
|
@ -3095,6 +3095,11 @@ void ast_sip_add_usereqphone(const struct ast_sip_endpoint *endpoint, pj_pool_t
|
|||
return;
|
||||
}
|
||||
|
||||
if (pjsip_param_find(&sip_uri->other_param, &STR_USER)) {
|
||||
/* Don't add it if it's already there */
|
||||
return;
|
||||
}
|
||||
|
||||
param = PJ_POOL_ALLOC_T(pool, pjsip_param);
|
||||
param->name = STR_USER;
|
||||
param->value = STR_PHONE;
|
||||
|
|
Loading…
Reference in a new issue