mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "res_pjsip: Prevent "user=phone" being added multiple times to header" into 13
This commit is contained in:
@@ -3073,6 +3073,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;
|
||||
|
Reference in New Issue
Block a user