]> 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:47 +0000 (04:03 -0500)
ASTERISK-26964 #close

Change-Id: I55a9caa7dc90e6c4c219cb09b5c2ec08af84a302

res/res_pjsip_session.c

index e775a45a869c7d2a90975d49a2f51e19e1ff94db..9628c728a9415c1a67be5dd5cb111cb1c5c5331b 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)) {