mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Add user=phone on From and PAID for usereqphone=yes
Adding user=phone to local-side uri's when user_eq_phone=yes is set for an endpoint. Previously this would only add the header to the To and R-URI. ASTERISK-30178 Change-Id: Id3bfb5d225d762e7d2668c023fe09e4541ae8600
This commit is contained in:
committed by
Friendly Automation
parent
bd2fb077ac
commit
0f61cc69ad
@@ -905,6 +905,7 @@ pjsip_dialog *ast_sip_create_dialog_uac(const struct ast_sip_endpoint *endpoint,
|
||||
/* Add the user=phone parameter if applicable */
|
||||
ast_sip_add_usereqphone(endpoint, dlg->pool, dlg->target);
|
||||
ast_sip_add_usereqphone(endpoint, dlg->pool, dlg->remote.info->uri);
|
||||
ast_sip_add_usereqphone(endpoint, dlg->pool, dlg->local.info->uri);
|
||||
|
||||
if (!ast_strlen_zero(outbound_proxy)) {
|
||||
pjsip_route_hdr route_set, *route;
|
||||
|
Reference in New Issue
Block a user