[asterisk-users] Registering of Asterisk against a SIP provider
Daniel Bareiro
daniel-listas at gmx.net
Fri Feb 19 07:29:33 CST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, Feb 18, 2010 at 05:36:41 -0300, Administrator TOOTAI wrote:
> Hi
Hi, Daniel.
> 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.
As I said to Warren, according to the tests that I was doing, apparently
this can be solved with both externip and externhost,restarting Asterisk
in either cases.
In the case of externhost we would be saving ourselves to have to modify
the IP in sip.conf every time, but even so we would have to verify if
the IP has changed for restarting Asterisk.
I thought that perhaps this could be solved without restarting Asterisk.
Thanks for your reply.
Regards,
Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkt+kkYACgkQZpa/GxTmHTcpxwCfbwAbaYEzEv6rBqZIWQs5kLER
STkAn00FEXGzD+berHCZYe20HLBnXZQU
=xzIk
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list