res_pjsip: Apply the 'user_eq_phone' setting to the To header as well.
authorJoshua Colp <jcolp@digium.com>
Tue, 4 Nov 2014 22:51:32 +0000 (22:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 4 Nov 2014 22:51:32 +0000 (22:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427259 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip.c

index 5aa9426..65466bf 100644 (file)
@@ -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++;