[App_rpt-users] IPs don`t update

Doug Crompton doug at crompton.com
Thu Apr 3 05:28:33 UTC 2014


Torben,

 Try running this script overnight or until you see a failure. Copy and 
paste to a file called allstar_ping_test  do a chmod 750 and run. This logs
the results pings spaced every five minutes. It also shows your public IP so
you can see if a change is causing the problem. You can look at the file at
anytime while it is running.  

#!/bin/bash
#
# This pings the allstar Register site every 5 minutes and logs the
# results. ONLY run this when you suspect a problem. There is NO
# need to run this on a regular basis. Run as a background job
#  ./allstar_ping_test &
# results are stored in the file allstar_pings in the same directory
# to kill the job do a  ps ax and kill the job by pid number.
# Requires curl - install it if you get an error.
#
Host="register.allstarlink.org"
echo "Allstar Ping Test started at $(date)" >> allstar_pings
while :
do
  myIP=$(curl -s ifconfig.me)
  count=$(ping -c 1 $Host | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # Failed !!
    echo "Ping from $myIP to Host : $Host is not responding at $(date)" >> allstar_pings
  else
    echo "Good Ping from $myIP to $Host at $(date)" >> allstar_pings
  fi
  sleep 300
done


73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: doug at crompton.com
To: torben at klimt-online.com
Date: Wed, 2 Apr 2014 12:13:24 -0400
CC: app_rpt-users at ohnosec.org
Subject: Re: [App_rpt-users] IPs don`t update




Something is happening that causes it to go out of registration and it is not recovering. 
A quick fix would be to reload iax2 with a cron job sometime early in the morning. Does this always happen during the night?

73 Doug
WA3DSP
http://www.crompton.com/hamradio


From: torben at klimt-online.com
To: doug at crompton.com
CC: app_rpt-users at ohnosec.org
Date: Wed, 2 Apr 2014 15:55:41 +0200
Subject: AW: AW: [App_rpt-users] IPs don`t update









hi,
no i think the internetconnection is ok a PiIRLP Node is running well since more then 10 month without problems but i find out something else; i only paste the screenshots so you can see what i did..
 
 

DB0CJ*CLI> iax2 show registry                                                                                                                                Host                  dnsmgr  Username    Perceived             Refresh  State                                                                               67.215.233.178:4569   N       40636       <Unregistered>             60  Request Sent                                                                        DB0CJ*CLI> iax2 reload                                                                                                                                       [Apr  2 15:47:27] NOTICE[15922]: chan_iax2.c:11430 set_config: Ignoring bindport on reload                                                                   [Apr  2 15:47:27] NOTICE[15922]: chan_iax2.c:11489 set_config: Ignoring bindaddr on reload                                                                   [Apr  2 15:47:27] WARNING[15922]: acl.c:345 ast_append_ha:  is not a valid IP                                                                                  == Loaded firmware 'iaxy.bin'                                                                                                                              DB0CJ*CLI> 

now i do a reboot, nothing else
 

DB0CJ*CLI> iax2 show registryHost                  dnsmgr  Username    Perceived             Refresh  State                                                                               67.215.233.178:4569   N       40636       88.217.73.123:4569         60  RegisteredDB0CJ*CLI> iax2 reload                                                                                                                                       [Apr  2 15:52:51] NOTICE[2664]: chan_iax2.c:11430 set_config: Ignoring bindport on reload                                                                    [Apr  2 15:52:51] NOTICE[2664]: chan_iax2.c:11489 set_config: Ignoring bindaddr on reload                                                                    [Apr  2 15:52:51] WARNING[2664]: acl.c:345 ast_append_ha:  is not a valid IP                                                                                   == Loaded firmware 'iaxy.bin'                                                                                                                                  -- Registered IAX2 to '67.215.233.178', who sees us as 88.217.73.123:4569 with no messages waiting                                                                                                                                                             DB0CJ*CLI> 

 
now the node runs for about 24h and after that look first entry :-(
 
greetings
 
 
 


Von: hotmail_97fc649978f54bf0 at live.com [hotmail_97fc649978f54bf0 at live.com] im Auftrag von Doug Crompton [doug at crompton.com]

Gesendet: Montag, 31. März 2014 15:50

An: torben at klimt-online.com

Cc: app_rpt-users at ohnosec.org

Betreff: RE: AW: [App_rpt-users] IPs don`t update






Torben,



It just sounds like you have a poor Internet connection. Do you have problems with other connections? You should try pinging the IP address of the node you are trying to connect to and see over time if you have packet loss.




73 Doug

WA3DSP

http://www.crompton.com/hamradio







From: torben at klimt-online.com

To: rpt2 at chuck.midlandsnetworking.com

CC: app_rpt-users at ohnosec.org; doug at crompton.com

Date: Mon, 31 Mar 2014 09:05:50 +0200

Subject: AW: [App_rpt-users] IPs don`t update





tnx chuck, but in the moment the scripts runs well and update all the time.
the problem in the moment:
i connect to an node and all runs well but after some time i get .... 

    -- Hungup 'Zap/pseudo-740472736'                                                                                                                [Mar 31 00:03:53] NOTICE[2576]: chan_iax2.c:4071 __auto_congest: Auto-congesting call due to slow response    -- Hungup 'IAX2/141.75.245.244141.75.245.244:4569-14285'    -- rpt (attempt_reconnect) initiating call to IAX2/radio at 141.75.245.244141.75.245.244:4569/2398 on IAX2/141.75.245.244141.75.245.244:4569-4318[Mar 31 00:04:00] WARNING[2594]: app_rpt.c:18479 attempt_reconnect: Reconnect Attempt to 2398 in process[Mar 31 00:04:04] NOTICE[2575]: chan_iax2.c:4071 __auto_congest: Auto-congesting call due to slow response    -- Hungup 'IAX2/141.75.245.244141.75.245.244:4569-4318'    -- rpt (attempt_reconnect) initiating call to IAX2/radio at 141.75.245.244141.75.245.244:4569/2398 on IAX2/141.75.245.244141.75.245.244:4569-11955[Mar 31 00:04:12] WARNING[2594]: app_rpt.c:18479 attempt_reconnect: Reconnect Attempt to 2398 in process[Mar 31 00:04:16] NOTICE[2576]: chan_iax2.c:4071 __auto_congest: Auto-congesting call due to slow response    -- Hungup 'IAX2/141.75.245.244141.75.245.244:4569-11955'    -- rpt (attempt_reconnect) initiating call to IAX2/radio at 141.75.245.244141.75.245.244:4569/2398 on IAX2/141.75.245.244141.75.245.244:4569-15295[Mar 31 00:04:23] WARNING[2594]: app_rpt.c:18479 attempt_reconnect: Reconnect Attempt to 2398 in process[Mar 31 00:04:27] NOTICE[2571]: chan_iax2.c:4071 __auto_congest: Auto-congesting call due to slow response    -- Hungup 'IAX2/141.75.245.244141.75.245.244:4569-15295'
the public node ip is always the same in this cause so it can`t be the updatenodelist script :-( 
 
73...
 


Von: Chuck Henderson [rpt2 at chuck.midlandsnetworking.com]

Gesendet: Freitag, 28. März 2014 18:35

An: torben at klimt-online.com

Cc: app_rpt-users at ohnosec.org; Doug Crompton

Betreff: Re: [App_rpt-users] IPs don`t update






I made a modification to my script some time ago and it seems to work better for me.  You might try this version that I am attaching. Your mileage may vary. Chuck,  WB9UUS














On Thu, Mar 27, 2014 at 2:32 AM, 
torben at klimt-online.com <torben at klimt-online.com> wrote:




hi doug,

tnx for your answer. the probelm is that the file "/var/lib/asterisk/rpt_extnodes" don`t update.
i do an ps ax | grep updatenodelist and get




[root at DB0CJ asterisk]# ps ax | grep updatenodelist                                                                           2545 ?        S      0:00 /bin/bash /etc/rc.d/rc.updatenodelist                                                            

 5080 pts/0    S+     0:00 grep updatenodelist                                                                              [root at DB0CJ asterisk]#                                                                                                      


if i do an ./rc.updatenodelist in the /etc/rc.d/ nothing happen :-( i must break with CTRL+C :-(

i think here is the problem..
 
greetings torben dh6mbt

 




Von: 
hotmail_97fc649978f54bf0 at live.com [hotmail_97fc649978f54bf0 at live.com] im Auftrag von Doug Crompton [doug at crompton.com]

Gesendet: Mittwoch, 26. März 2014 23:55

An: torben at klimt-online.com

Cc: app_rpt-users at ohnosec.org

Betreff: RE: [App_rpt-users] IPs don`t update








I am not clear on what you said. Is it your nodes or the node database that is not being updated? Nodes are updated by a script called 'updatenodelist'   This should be running on your system. do  'PS AX | grep updatenodelist'
 at the linux prompt and see if it is running. The nodes database is put in /var/lib/asterisk/rpt_extnodes 




If it is your node that does not update then.... 



When this happens do  'iax2 show registry'  in the asterisk client. Does it show registered and your new IP address?



You can force a registration with  'iax2 reload'



Worst case you could do the 'iax2 reload' with a cron job when you detect an IP address change.



73 Doug

WA3DSP

http://www.crompton.com/hamradio





> From: torben at klimt-online.com

> To: app_rpt-users at ohnosec.org

> Date: Wed, 26 Mar 2014 22:50:57 +0100

> Subject: [App_rpt-users] IPs don`t update

> 

> Hi all,

> i set up an new allstarlink node and now i have the problem that the IPs of the other allstarlink nodes not update.

> After restart the machine the IPs in the Database are correct and I can connect to my other nodes. But after 24h my nodes get new IPs from the Internetprovider and then it is no longer possible cause the new allstarlink node should always try to reach the
 old IP address. 

> I think there is a problem by updating the allstarlink nodenumber - IP address database

> Where is the file located or what can I do for debugging or better fix the problem

> 

> Tnx 73...

> _______________________________________________

> App_rpt-users mailing list

> App_rpt-users at ohnosec.org

> 
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

> 

> To unsubscribe from this list please visit 
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"

> You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.


> 










_______________________________________________

App_rpt-users mailing list

App_rpt-users at ohnosec.org

http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users



To unsubscribe from this list please visit 
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"

You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.












 		 	   		  

_______________________________________________
App_rpt-users mailing list
App_rpt-users at ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20140403/6456ea5b/attachment.html>


More information about the App_rpt-users mailing list