Module: sip-router
Branch: 3.1
Commit: 5fe41fc280a0cd5680c754867f495d4f193f94c0
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5fe41fc280a0cd5680c754867f495d4f193f94c0

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Fri Jan  7 23:25:10 2011 +0100

uac_redirect: use the flag for parsing contact header

- header type was used instead
(cherry picked from commit 4fc4ceb5495486ff1313c631d34a3bc04b792895)

---

 modules_k/uac_redirect/rd_funcs.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules_k/uac_redirect/rd_funcs.c 
b/modules_k/uac_redirect/rd_funcs.c
index ef92fcb..2f85ed1 100644
--- a/modules_k/uac_redirect/rd_funcs.c
+++ b/modules_k/uac_redirect/rd_funcs.c
@@ -211,7 +211,7 @@ static int shmcontact2dset(struct sip_msg *req, struct 
sip_msg *sh_rpl,
                        memcpy( &dup_rpl, sh_rpl, sizeof(struct sip_msg) );
                        dup = 2;
                        /* ok -> force the parsing of contact header */
-                       if ( parse_headers( &dup_rpl, HDR_CONTACT_T, 0)<0 ) {
+                       if ( parse_headers( &dup_rpl, HDR_CONTACT_F, 0)<0 ) {
                                LM_ERR("dup_rpl parse failed\n");
                                ret = -1;
                                goto restore;
@@ -224,7 +224,7 @@ static int shmcontact2dset(struct sip_msg *req, struct 
sip_msg *sh_rpl,
                } else {
                        dup = 3;
                        /* force the parsing of contact header */
-                       if ( parse_headers( sh_rpl, HDR_CONTACT_T, 0)<0 ) {
+                       if ( parse_headers( sh_rpl, HDR_CONTACT_F, 0)<0 ) {
                                LM_ERR("sh_rpl parse failed\n");
                                ret = -1;
                                goto restore;
@@ -272,8 +272,10 @@ static int shmcontact2dset(struct sip_msg *req, struct 
sip_msg *sh_rpl,
 
        /* add the sortet contacts as branches in dset and log this! */
        for ( i=0 ; i<n ; i++ ) {
-               LM_DBG("adding contact <%.*s>\n", scontacts[i]->uri.len, 
scontacts[i]->uri.s);
-               if (km_append_branch( 0, &scontacts[i]->uri, 0, 0, sqvalues[i], 
bflags, 0)<0) {
+               LM_DBG("adding contact <%.*s>\n", scontacts[i]->uri.len,
+                               scontacts[i]->uri.s);
+               if (km_append_branch( 0, &scontacts[i]->uri, 0, 0, sqvalues[i],
+                                       bflags, 0)<0) {
                        LM_ERR("failed to add contact to dset\n");
                } else {
                        added++;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to