From 52c88ba30cd5da601d77bdba0bd3e6d3179b72e4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 9 Aug 2010 14:24:36 +0000 Subject: Misc (re #1068): do not add To tag to the SIP response if the request already has one (thanks Rafael Maia for the suggestion) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3260 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip/sip_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsip/sip_util.c b/pjsip/src/pjsip/sip_util.c index 3b1bc102..2b0933a3 100644 --- a/pjsip/src/pjsip/sip_util.c +++ b/pjsip/src/pjsip/sip_util.c @@ -574,7 +574,7 @@ PJ_DEF(pj_status_t) pjsip_endpt_create_response( pjsip_endpoint *endpt, * to do this is to derive the tag from Via branch parameter (or to * use it directly). */ - if (st_code > 100 && top_via) { + if (to_hdr->tag.slen==0 && st_code > 100 && top_via) { to_hdr->tag = top_via->branch_param; } -- cgit v1.2.3