]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_session : fixed wrong From Header number On Re-invite
authorYasin CANER <yasin.caner@netgsm.com.tr>
Wed, 26 Apr 2017 14:22:41 +0000 (17:22 +0300)
committerJoshua Colp <jcolp@digium.com>
Mon, 22 May 2017 09:03:56 +0000 (04:03 -0500)
ASTERISK-26964 #close

Change-Id: I55a9caa7dc90e6c4c219cb09b5c2ec08af84a302

res/res_pjsip_session.c

index 67ea9a9754f6d29f6b784809884a83346fa5dbc8..400eb6a8499af61e6c83d5ba82289f2ab12bd5db 100644 (file)
@@ -946,11 +946,6 @@ int ast_sip_session_refresh(struct ast_sip_session *session,
                }
        }
 
-       /*
-        * We MUST call set_from_header() before pjsip_inv_(reinvite|update).  If we don't, the
-        * From in the reINVITE/UPDATE will be wrong but the rest of the messages will be OK.
-        */
-       set_from_header(session);
 
        if (method == AST_SIP_SESSION_REFRESH_METHOD_INVITE) {
                if (pjsip_inv_reinvite(inv_session, NULL, new_sdp, &tdata)) {