{"action":"created","issue":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/172","labels_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/172/comments","events_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/172/events","html_url":"https://github.com/Mobicents/restcomm-android-sdk/issues/172","id":105176190,"number":172,"title":"When calling 1235 Restcomm application from mobile network, the call is never terminated","user":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/milestones/4","html_url":"https://github.com/Mobicents/restcomm-android-sdk/milestones/1.0.0%20BETA2%20release","labels_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/milestones/4/labels","id":1229420,"number":4,"title":"1.0.0 BETA2 release","description":"","creator":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":41,"state":"open","created_at":"2015-07-28T13:31:28Z","updated_at":"2015-09-07T10:02:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-07T08:54:08Z","updated_at":"2015-09-07T10:14:20Z","closed_at":null,"body":"Scenario:\r\n\r\n- Make a call from Messenger to 1235 using Mobile internet\r\n- Calls is answered fine, but after announcement ends no BYE seems to be received from Restcomm\r\n\r\nAnalysis:\r\n\r\nSeems that Restcomm sends the BYE to the wrong ip address i.e. 100.97.128.27 which is the contact used in the INVITE, instead of the ip address from which the INVITE was received i.e. 62.74.11.124. \r\n\r\nI compared this scenario with a wifi scenario and the only difference seems to be that:\r\n- in wifi scenario the 'internal' ip that is used in the contact is 192.168.2.41 (which is a true internal IP)\r\n- in mobile scenario the 'internal' ip that is used in the contact is 100.97.128.27 (which is not really in the internal ip range 10.* or 192.168.*)\r\n\r\nSo I'm guessing maybe Restcomm decides where to route the BYE based on if the contact ip address is internal or external and hence sends to the wrong destination.\r\n\r\nScenario restcomm logs for mobile: https://gist.github.com/atsakiridis/8eaf982a750991ce894e\r\nScenario restcomm logs for wifi: https://gist.github.com/atsakiridis/a695594dd291a4811d58\r\n\r\n@gvagenas, does this make sense?"},"comment":{"url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/comments/138259652","html_url":"https://github.com/Mobicents/restcomm-android-sdk/issues/172#issuecomment-138259652","issue_url":"https://api.github.com/repos/Mobicents/restcomm-android-sdk/issues/172","id":138259652,"user":{"login":"gvagenas","id":588875,"avatar_url":"https://avatars.githubusercontent.com/u/588875?v=3","gravatar_id":"","url":"https://api.github.com/users/gvagenas","html_url":"https://github.com/gvagenas","followers_url":"https://api.github.com/users/gvagenas/followers","following_url":"https://api.github.com/users/gvagenas/following{/other_user}","gists_url":"https://api.github.com/users/gvagenas/gists{/gist_id}","starred_url":"https://api.github.com/users/gvagenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvagenas/subscriptions","organizations_url":"https://api.github.com/users/gvagenas/orgs","repos_url":"https://api.github.com/users/gvagenas/repos","events_url":"https://api.github.com/users/gvagenas/events{/privacy}","received_events_url":"https://api.github.com/users/gvagenas/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T10:14:20Z","updated_at":"2015-09-07T10:14:20Z","body":"@atsakiridis The 100.97.128.27 is a valid public ip address so Restcomm will use it. The only way that Restcomm can decide if the Contact address will be replaced with the peer address (the one that the message actually received) is by checking if the Contact ip address is a private ip address. \r\n\r\nIf Contact ip address is private one, then Restcomm will replace it with the peer address. \r\nSo in the Wifi case, your client gets a private address 192..... but the message arrives to Restcomm from your public ip address (the one that your router gets from your ISP). Next Restcomm will see that 192. is private one and will replace it with the ip of your router.\r\n\r\nIn your case why the Contact ip address is different than the peer address? Why you have 100.97.128.27 and 62.74.11.124? Why two public ip addresses?\r\n\r\nGeorge"}}