[asterisk-users] Asterisk on dynamich IP

Administrator TOOTAI admin at tootai.net
Fri Feb 1 07:57:48 CST 2019


Le 01/02/2019 à 09:59, basti a écrit :
> Hello,

Hi

> 
> my Asterisk is installed on my router. From my ISP I only get an dynamic IP.
> 
> In sip.conf I have try:
> 
> externhost=host1.mydns.unix-solution.de
> externrefresh=300
> 
> but after reconnect I cant call from "outside".
> 
> asterisk*CLI> sip show registry
> Host                                    dnsmgr Username       Refresh
> State                Reg.Time
> sip.personal-voip.de:5060               N      xxxx            1785
> Registered           Fri, 01 Feb 2019 09:32:28
> sip.alice-voip.de:5060                  N      xxxx      1785 Registered
>            Fri, 01 Feb 2019 09:32:28
> 2 SIP registrations.
> asterisk*CLI>
> 
> I have also try to restart asterisk after reconnect,
> Manual it works but not via cron.
> 
> Are there any other ways to reconnect on IP change.

I'm surprised that it doesn't work via cron. I suspect the script you 
are running faulty like wrong path or not executed by the right user.

For other purpose that for asterisk I also check IP changes on some 
sites, my script is always returning the correct datas.

Daniel



More information about the asterisk-users mailing list