{"action":"created","issue":{"url":"https://api.github.com/repos/kamailio/kamailio/issues/1353","repository_url":"https://api.github.com/repos/kamailio/kamailio","labels_url":"https://api.github.com/repos/kamailio/kamailio/issues/1353/labels{/name}","comments_url":"https://api.github.com/repos/kamailio/kamailio/issues/1353/comments","events_url":"https://api.github.com/repos/kamailio/kamailio/issues/1353/events","html_url":"https://github.com/kamailio/kamailio/issues/1353","id":279435269,"number":1353,"title":"TCP HEP3 invalid destination ip","user":{"login":"azigelman","id":24860744,"avatar_url":"https://avatars3.githubusercontent.com/u/24860744?v=4","gravatar_id":"","url":"https://api.github.com/users/azigelman","html_url":"https://github.com/azigelman","followers_url":"https://api.github.com/users/azigelman/followers","following_url":"https://api.github.com/users/azigelman/following{/other_user}","gists_url":"https://api.github.com/users/azigelman/gists{/gist_id}","starred_url":"https://api.github.com/users/azigelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azigelman/subscriptions","organizations_url":"https://api.github.com/users/azigelman/orgs","repos_url":"https://api.github.com/users/azigelman/repos","events_url":"https://api.github.com/users/azigelman/events{/privacy}","received_events_url":"https://api.github.com/users/azigelman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-12-05T16:14:33Z","updated_at":"2017-12-12T09:18:51Z","closed_at":null,"author_association":"NONE","body":"\r\n### Description\r\n\r\nCaptured sip on a server using Captagent, when using UDP the destination_ip is parsed from the message itself when using TCP the destination_ip and destination_port is of the server running Kamailio.\r\n\r\n### Troubleshooting\r\n\r\n#### Reproduction\r\n\r\nSipcapture using Kamailio on TCP\r\n\r\n#### SIP Traffic\r\n\r\n<!--\r\nIf the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).\r\n-->\r\n\r\n```\r\nT 10.203.134.187:10398 -> 10.203.134.194:9060 [AP]\r\nHEP3.@...................................\r\nZ&.....\r\n.\r\n................\r\n.........\r\n\r\n........\r\n\r\n.........myhep......SIP/2.0 487 Request cancelled.\r\nVia: SIP/2.0/UDP 10.203.134.187;received=10.203.134.187;rport=5060;branch=z9hG4bKUgUv1StZ9HmgF.\r\nFrom: \"bal bal\" <sip:17325559837@10.203.134.187>;tag=ZSNe61tKX2gFp.\r\nTo: <sip:VH111@call.net>;tag=eee99bc01afb99338debc1f2a2cfb1a1-c5c8.\r\nCall-ID: 3ed76454-5479-1236-b8a0-0688e01b7b70.\r\nCSeq: 115908963 INVITE.\r\nServer: OpenSIPS (2.2.5 (x86_64/linux)).\r\nContent-Length: 0.\r\n.\r\n\r\n##```\r\n\r\n### Possible Solutions\r\n\r\n<!--\r\nIf you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.\r\n-->\r\n```\r\nUsing the parsed header, something like: $var(dstip) = $hep(0x004);\r\n```\r\n### Additional Information\r\n\r\n  * **Kamailio Version** - output of `kamailio -v`\r\n\r\n```\r\nversion: kamailio 5.2.0-dev0 (x86_64/linux)\r\n```\r\n\r\n* **Operating System**:\r\n\r\n<!--\r\nDetails about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;\r\nKernel details (output of `uname -a`)\r\n-->\r\n\r\n```\r\n Debian 8.4\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kamailio/kamailio/issues/comments/350992109","html_url":"https://github.com/kamailio/kamailio/issues/1353#issuecomment-350992109","issue_url":"https://api.github.com/repos/kamailio/kamailio/issues/1353","id":350992109,"user":{"login":"miconda","id":184809,"avatar_url":"https://avatars1.githubusercontent.com/u/184809?v=4","gravatar_id":"","url":"https://api.github.com/users/miconda","html_url":"https://github.com/miconda","followers_url":"https://api.github.com/users/miconda/followers","following_url":"https://api.github.com/users/miconda/following{/other_user}","gists_url":"https://api.github.com/users/miconda/gists{/gist_id}","starred_url":"https://api.github.com/users/miconda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miconda/subscriptions","organizations_url":"https://api.github.com/users/miconda/orgs","repos_url":"https://api.github.com/users/miconda/repos","events_url":"https://api.github.com/users/miconda/events{/privacy}","received_events_url":"https://api.github.com/users/miconda/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T09:18:51Z","updated_at":"2017-12-12T09:18:51Z","author_association":"OWNER","body":"The code of the module needs to be analyzed for this case. Maybe @adubovikov or @giavac can provide a quick hint/fix of what is going wrong there."}}
{"actor":{"display_login":"miconda"}}