{"action":"created","issue":{"url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/285","labels_url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/285/comments","events_url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/285/events","html_url":"https://github.com/Mobicents/restcomm-ios-sdk/issues/285","id":109782872,"number":285,"title":"Using DNS domain in registrar settings doesn't work","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-ios-sdk/milestones/10","html_url":"https://github.com/Mobicents/restcomm-ios-sdk/milestones/1.0.0%20BETA3%20release","labels_url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/milestones/10/labels","id":1235441,"number":10,"title":"1.0.0 BETA3 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":5,"closed_issues":66,"state":"open","created_at":"2015-07-31T16:57:28Z","updated_at":"2015-10-05T12:09:41Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-05T12:09:41Z","updated_at":"2015-10-05T18:53:52Z","closed_at":null,"body":"For some reason we are not being registered. \r\n\r\nAnalysis:\r\n- for the simulator seems that using the defaults fails and the reason is that by default the router address is used as DNS server. This seems to be working for all applications but not simulator\r\n- for the device seems that the default Sofia resolving behaviour doesn't work cause it tries to use /etc/resolv.conf which isn't accessible in iOS. \r\n\r\nSolution is to do the resolving myself when the registrar is a domain name. Another solution that we use in the future is this\r\n\r\nhttp://permalink.gmane.org/gmane.comp.telephony.sofia-sip.devel/4561\r\n\r\nBut at this point I think it is dangerous as we are changing Sofia internals and needs a lot of testing plus rebuild of sofia library for all architectures\r\n\r\nAlso, check this out:\r\n\r\nhttps://www.mail-archive.com/sofia-sip-devel@lists.sourceforge.net/msg04534.html"},"comment":{"url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/comments/145630926","html_url":"https://github.com/Mobicents/restcomm-ios-sdk/issues/285#issuecomment-145630926","issue_url":"https://api.github.com/repos/Mobicents/restcomm-ios-sdk/issues/285","id":145630926,"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},"created_at":"2015-10-05T18:53:52Z","updated_at":"2015-10-05T18:53:52Z","body":"On second thought, doing the resolving ourselves might not be a very good idea afterall. Sofia provides its own resolver library (sofia resolver), which is asynchronous and its core seems tightly coupled with it. I'm getting the impression that taking all that functionality out will come back and bite as at some point.\r\n\r\nSo I did some tests with this solution:\r\n\r\nhttp://permalink.gmane.org/gmane.comp.telephony.sofia-sip.devel/4561\r\n\r\nand seems to be working fine"}}