...
|
...
|
@@ -30,6 +30,7 @@
|
30
|
30
|
* 2001-??-?? created by andrei
|
31
|
31
|
* ????-??-?? lots of changes by a lot of people
|
32
|
32
|
* 2003-02-11 added inline msg_send (andrei)
|
|
33
|
+ * 2003-04-07 changed all ports to host byte order (andrei)
|
33
|
34
|
*/
|
34
|
35
|
|
35
|
36
|
|
...
|
...
|
@@ -60,8 +61,8 @@ int update_sock_struct_from_via( union sockaddr_union* to,
|
60
|
61
|
/* use src_ip, port=src_port if rport, via port if via port, 5060 otherwise */
|
61
|
62
|
#define update_sock_struct_from_ip( to, msg ) \
|
62
|
63
|
init_su((to), &(msg)->rcv.src_ip, \
|
63
|
|
- ((msg)->via1->rport)?htons((msg)->rcv.src_port): \
|
64
|
|
- ((msg)->via1->port)?htons((msg)->via1->port): htons(SIP_PORT) )
|
|
64
|
+ ((msg)->via1->rport)?(msg)->rcv.src_port: \
|
|
65
|
+ ((msg)->via1->port)?(msg)->via1->port: SIP_PORT )
|
65
|
66
|
|
66
|
67
|
int forward_reply( struct sip_msg* msg);
|
67
|
68
|
|