Files
tegra-linux-noble/include/linux
Kevin Cernekee 7266507d89 netfilter: nf_ct_sip: support Cisco 7941/7945 IP phones
Most SIP devices use a source port of 5060/udp on SIP requests, so the
response automatically comes back to port 5060:

    phone_ip:5060 -> proxy_ip:5060   REGISTER
    proxy_ip:5060 -> phone_ip:5060   100 Trying

The newer Cisco IP phones, however, use a randomly chosen high source
port for the SIP request but expect the response on port 5060:

    phone_ip:49173 -> proxy_ip:5060  REGISTER
    proxy_ip:5060 -> phone_ip:5060   100 Trying

Standard Linux NAT, with or without nf_nat_sip, will send the reply back
to port 49173, not 5060:

    phone_ip:49173 -> proxy_ip:5060  REGISTER
    proxy_ip:5060 -> phone_ip:49173  100 Trying

But the phone is not listening on 49173, so it will never see the reply.

This patch modifies nf_*_sip to work around this quirk by extracting
the SIP response port from the Via: header, iff the source IP in the
packet header matches the source IP in the SIP request.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2013-01-17 21:12:44 +01:00
..
2013-01-02 17:36:10 -08:00
2013-01-02 17:36:10 -08:00
2012-12-07 17:02:47 +00:00
2013-01-02 17:36:10 -08:00
2012-11-30 12:37:36 +01:00
2012-12-02 00:05:12 +00:00
2012-12-20 13:57:36 -05:00
2012-12-21 20:23:41 +00:00
2012-11-28 11:54:40 +01:00
2012-11-28 21:49:02 -05:00
2012-11-28 21:49:02 -05:00
2012-12-14 13:05:26 +10:30
2013-01-13 21:04:37 -05:00
2013-01-10 10:57:01 -08:00
2012-12-12 17:38:33 -08:00
2012-12-14 13:06:40 +10:30
2012-12-25 18:45:06 -05:00
2013-01-08 17:56:09 -08:00
2012-12-11 17:22:27 -08:00
2013-01-03 15:57:14 -08:00
2012-12-18 15:02:13 -08:00
2012-12-18 15:02:14 -08:00