From: Joshua Colp Date: Tue, 4 Nov 2014 22:51:32 +0000 (+0000) Subject: res_pjsip: Apply the 'user_eq_phone' setting to the To header as well. X-Git-Tag: 14.0.0-beta1~1490 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c77a71ad2fd330c20e8f5055044ede1c9ab495b0;p=thirdparty%2Fasterisk.git res_pjsip: Apply the 'user_eq_phone' setting to the To header as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427259 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 5aa9426d97..65466bfa44 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2220,6 +2220,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); /* We have to temporarily bump up the sess_count here so the dialog is not prematurely destroyed */ dlg->sess_count++;