Daniel Bareiro
2010-Feb-18 00:53 UTC
[asterisk-users] Registering of Asterisk against a SIP provider
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, all! I'm being based on this document [1] to send and to receive calls using ekiga.net. But I'm seeing, in an Asterisk console, several messages of this type: [Feb 17 21:19:15] NOTICE[11875]: chan_sip.c:7715 sip_reg_timeout: -- Registration for 'danib2 at ekiga.net' timed out, trying again (Attempt #4775) -- Got SIP response 606 "Not Acceptable" back from 86.64.162.35 Investigating in Internet I found that it can be due to that the registering is being tried to do with an not public IP. I've dynamic IP whose domain is updated using a dynamic DNS service. The line that I am using in sip.conf is the following one: ; DGB - 20100211 externip = sysadminhaiku.com.ar localnet = 10.1.0.0/24 Hours ago the IP changed and the domain was updated satisfactorily, but in spite of this I was obtaining the registering failures that I mentioned above. After to restart Asterisk (1.4.24.1), I no longer had this problem of registering. But there would be some way to solve this problem? Thanks in advance for your replies. Regards, Daniel [1] http://wiki.ekiga.org/index.php/Connecting_Asterisk_to_ekiga.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkt8j5oACgkQZpa/GxTmHTcV3QCeIyaEg9/1KtT7tOnDTGVLKhXl gvkAn1Cj8c52a30Hf1GX4bWnOyALbwpX =Vl61 -----END PGP SIGNATURE-----
Warren Selby
2010-Feb-18 03:01 UTC
[asterisk-users] Registering of Asterisk against a SIP provider
On Wed, Feb 17, 2010 at 6:53 PM, Daniel Bareiro <daniel-listas at gmx.net>wrote:> ; DGB - 20100211 > externip = sysadminhaiku.com.ar > localnet = 10.1.0.0/24 >If you're using dynamic dns, shouldn't you be using externhost instead of externip? -- Thanks, --Warren Selby http://www.selbytech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100217/3b99b2c8/attachment.htm
Administrator TOOTAI
2010-Feb-18 08:36 UTC
[asterisk-users] Registering of Asterisk against a SIP provider
Hi Daniel Bareiro a ?crit :> [...] > > Hours ago the IP changed and the domain was updated satisfactorily, but > in spite of this I was obtaining the registering failures that I > mentioned above. After to restart Asterisk (1.4.24.1), I no longer had > this problem of registering. But there would be some way to solve this > problem? >[...] It's an old story. Asterisk check DNS when it start that's why it's ok after you have it restarted. When I was running Asterisk using dynamic addresses, I made following: - modify sip.conf to include a file placed where ever you want, contents being externalip/externalhosts and all others info needed related to external IP - restarted myself ADSL line with a cron script each night - this script extract/found the new IP using the method you prefer (eg ping your dyndns host until response and than you have your new IP and insert the IP in the file you include in sip.conf - this script restart asterisk and voila :-) Was working like a charm. -- Daniel