{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/737","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/737/comments","events_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/737/events","html_url":"https://github.com/OpenSIPS/opensips/issues/737","id":123854429,"number":737,"title":"Opensips 1.8.3, wrong IP and Port combination while sending the response.","user":{"login":"suryaveerc","id":9779846,"avatar_url":"https://avatars.githubusercontent.com/u/9779846?v=3","gravatar_id":"","url":"https://api.github.com/users/suryaveerc","html_url":"https://github.com/suryaveerc","followers_url":"https://api.github.com/users/suryaveerc/followers","following_url":"https://api.github.com/users/suryaveerc/following{/other_user}","gists_url":"https://api.github.com/users/suryaveerc/gists{/gist_id}","starred_url":"https://api.github.com/users/suryaveerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suryaveerc/subscriptions","organizations_url":"https://api.github.com/users/suryaveerc/orgs","repos_url":"https://api.github.com/users/suryaveerc/repos","events_url":"https://api.github.com/users/suryaveerc/events{/privacy}","received_events_url":"https://api.github.com/users/suryaveerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-25T05:33:19Z","updated_at":"2015-12-25T05:33:19Z","closed_at":null,"body":"I am trying to run OpenSips presence server on kubernetes but it's not working. The reason for it is what I found is the wrong IP - Port combination choosen by OpensSips to send the response 200.\r\n\r\nBelow is the tcpdump. \r\n\r\ntcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes \r\n04:34:30.117024 IP (tos 0x0, ttl 63, id 10208, offset 0, flags [DF], proto UDP (17), length 999) \r\n    **10.244.24.0.40351 > 10.244.7.11.5060**: SIP, length: 971\r\n        PUBLISH sip:service-1@opensipstest.org SIP/2.0 \r\n        Via: SIP/2.0/UDP **192.168.144.10:32569**;branch=z9hG4bK-6324-1-0 \r\n        Max-Forwards: 20 \r\n        From: <sip:service-1@opensipstest.org>;tag=1 \r\n        To: <sip:service-1@opensipstest.org>\r\n        Call-ID: 1-6324@192.168.144.10 \r\n        CSeq: 1 PUBLISH \r\n        Expires: 3600 \r\n        Event: presence \r\n        Content-Length:   607 \r\n        User-Agent: Sipp v1.1-TLS, version 20061124 \r\n<Removed presence xml>\r\n\r\n04:34:30.118455 IP (tos 0x10, ttl 64, id 28000, offset 0, flags [DF], proto UDP (17), length 417) \r\n    **10.244.7.11.5060 > 10.244.24.0.32569**: SIP, length: 389\r\n        SIP/2.0 200 OK \r\n        Via: SIP/2.0/UDP **192.168.144.10:32569**;received=10.244.24.0;branch=z9hG4bK-6324-1-0 \r\n        From: <sip:service-1@opensipstest.org>;tag=1 \r\n        To: <sip:service-1@opensipstest.org>;tag=6c8cd3bc7eb4fe86b153056f4d236d23-ba2c \r\n        Call-ID: 1-6324@192.168.144.10 \r\n        CSeq: 1 PUBLISH \r\n        Expires: 3600 \r\n        SIP-ETag: a.1450922669.38.2.0 \r\n        Server: OpenSIPS (1.8.4-notls (x86_64/linux)) \r\n        Content-Length: 0 \r\n\r\nAs you can see in the dump the IP address where the reply is being sent is the one from which it received the request i.e. **10.244.24.0** while the port is **32569**, which is the actual client port. instead it should have been **40351**.\r\n\r\nPlease correct me if I made some wrong observation.\r\n\r\nThanks,\r\nSuryaveer"}}