]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3813 --resolve this should be ok
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jan 2012 18:47:37 +0000 (12:47 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jan 2012 18:47:37 +0000 (12:47 -0600)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c

index f534abd189e25bd0a21cf8f4528fd291f206ea2f..5c84424678e7c3ef55313e20e1b86740e4077653 100644 (file)
@@ -1 +1 @@
-Sun Dec 18 11:07:07 EST 2011
+Mon Jan 16 12:47:24 CST 2012
index e9d4f500b85d806ad95f4f4c2a5872e38013e0c5..200ca5cb845ef7e65aceb1b3f91b5c6199510192 100644 (file)
@@ -359,7 +359,7 @@ void tport_capt_msg(tport_t const *self, msg_t *msg, size_t n,
    assert(self); assert(msg);
 
    su = msg_addr(msg);
-   su_self = self->tp_addr;
+   su_self = self->tp_pri->pri_primary->tp_addr;
 
    mr = self->tp_master;
 
@@ -402,8 +402,8 @@ void tport_capt_msg(tport_t const *self, msg_t *msg, size_t n,
    }
 #endif     
 
-   hep_header.hp_dport = dst ? su->su_port : htons(atoi(self->tp_port));   
-   hep_header.hp_sport = dst ? htons(atoi(self->tp_port)) : su->su_port;
+   hep_header.hp_dport = dst ? su->su_port : su_self->su_port;
+   hep_header.hp_sport = dst ? su_self->su_port : su->su_port;
 
       
    /* Copy hepheader */