Re: Siproxd uses random port to send SIP messages
Thomas Ries <[email protected]> Thu, 12 Feb 2004 23:21:47 +0100 (CET)
| Newsgroups | gmane.network.siproxd |
|---|---|
| Message-ID | <[email protected]> |
Hi Christof, I included your suggested change. However, it seems that sipgate.de does not properly implement symmetric SIP signalling... Symmetric SIP signalling is requested by a 'rport' parameter in the topmost 'via' header - which siproxd does *NOT* include. Details: http://www.jdrosen.net/papers/draft-ietf-sip-symmetric-response-01.html Anyhow, I hope now siproxd is more tolerant in this respect ;-) Regards, /Thomas On 8 Feb, Christof Meerwald wrote: > Hi, > > I am unable to connect to sipgate.de via siproxd and I have tracked it down > to a problem in siproxd: when siproxd forwards a SIP message it uses a > random local port to send the UDP packet. sipgate.de seems to use this > address to send replies to, but siproxd doesn't listen on this port and so > the reply is lost. > > Here is a tcpdump: > > 14:21:57.348815 62.241.36.165.3769 > 217.10.79.9.5060: udp 553 (DF) > 14:21:57.358810 217.10.79.9.5060 > 62.241.36.165.3769: udp 689 (DF) [tos 0x10] > 14:22:01.275851 62.241.36.165.3769 > 217.10.79.9.5060: udp 553 (DF) > 14:22:01.285601 217.10.79.9.5060 > 62.241.36.165.3769: udp 689 (DF) [tos 0x10] > 14:22:05.320897 62.241.36.165.3769 > 217.10.79.9.5060: udp 553 (DF) > 14:22:05.331116 217.10.79.9.5060 > 62.241.36.165.3769: udp 690 (DF) [tos 0x10] > 14:22:09.306329 62.241.36.165.3769 > 217.10.79.9.5060: udp 553 (DF) > 14:22:09.317900 217.10.79.9.5060 > 62.241.36.165.3769: udp 690 (DF) [tos 0x10] > > As you can see, replies are sent to port 3769 on my machine, but siproxd > doesn't expect replies to be sent to this port (it only listens on port 5060 > for replies). > > > Fixing the problem is simple (use the same socket for sending and receiving > SIP messages): > > - remove the line "int sip_socket=0;" in src/siproxd.c > - rename the "listen_socket" in src/sock.c to "sip_socket" > > > bye, Christof > > -- > http://cmeerw.org JID: [email protected] > mailto cmeerw at web.de > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Siproxd-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/siproxd-users -- GnuPG: pub 1024D/87BCDC94 2000-03-19 Thomas Ries <[email protected]> - Fingerprint = 13D1 19F5 77D0 4CEC 8D3F A24E 09FC C18A 87BC DC94 - Key via pgp.openpkg.org / http://www.ries.ch.vu/87BCDC94.pub VoIP: sip:17476691342-rne+wJe3e/u3Jhga2bR/9VaTQe2KTcn/@public.gmane.org | sip:[email protected]
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQBAK/x7CfzBioe83JQRAkEoAKCipleqy2lTUgbwjLElD3pMoExrmACeLWSn MZFDgUj+ao5AnPC8cIbOFZk= =stMJ -----END PGP SIGNATURE-----