summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-08-09 14:24:36 +0000
committerBenny Prijono <bennylp@teluu.com>2010-08-09 14:24:36 +0000
commit52c88ba30cd5da601d77bdba0bd3e6d3179b72e4 (patch)
tree7894d833026d580a7eeefffa75dd9cc06cc04864
parent91d3f1cdae97c7198ca4581dad280acf8c3646b1 (diff)
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
-rw-r--r--pjsip/src/pjsip/sip_util.c2
1 files changed, 1 insertions, 1 deletions
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;
}