Hi
I get this message on my log, 
local0.err asterisk[22023]: ERROR[22023]: netsock2.c:269 in 
ast_sockaddr_resolve: getaddrinfo(„mypbx", "(null)", ...): Name or service not 
known
WARNING[27685]: pbx_dundi.c:4652 in set_config: Unable to look up host ‚mypbx'
Can I ignore this or should I change this in my network settings, as I wrote 
last Time I have issue with "rejected „   after internet provider make firmware 
update and my modem make reboot.

I have in my network settings under domain and host „mypbx“ and local domain 
ist activated

To avoid "rejected" I testing now this script,  can anyone with more experience 
look at this script .Can I load it every one minute for long time without 
afraid to damage CF Card or overload log of my pbx.
Thanks.

Script:

#!/bin/bash -x

DIR=/tmp/watchdog

# Create dir if it doesn't exist
if [ ! -d $DIR ]; then
  mkdir $DIR
fi

cd $DIR

# Save current registration times
/usr/sbin/asterisk -rx "sip show registry" | grep "Registered" | cut -b 92- > 
current

# If last exists, compare current to last
if [ -f last ]; then
  cmp current last

# If they match, restart Asterisk
  if [ $? == 0 ]; then
    /etc/init.d/asterisk restart
  fi
fi

rm -f last
mv current last


Regards Nedi





_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to