<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">Just a note that reloading iax will also restart the registration.<br><br>iax2 reload<br><br>Not sure about the loss of connection. The registration is done by domain name so you need to have DNS working. When the connection fails that does also. Maybe it does not come back right away?<br><br id="FontBreak"></font><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">Date: Wed, 15 Jan 2014 20:48:01 -0600<br>From: w0anm73@gmail.com<br>To: app_rpt-users@ohnosec.org<br>Subject: [App_rpt-users] iax2 Registry Revisted - Question<br><br><div dir="ltr"><div>Further info and clarification</div><div><br></div><div>I am using the Xipar Asterisk release. If I loose WAN network connection, I loose my iax registration which is what I would expect. </div><div><br>
</div><div>Note, this loss usually is a result of a cable modem resetting, or some other issues with the cable company and it does not happen frequently. This reset does not result in a new IP address being assigned.</div>
<div><br></div>
<div>I noticed that the State toggles between Timeout and Request Sent, but never will get re-registered until I stop and start asterisk (amportal stop/start). </div><div><br></div><div>My questions is, Is this normal behavior? should I need to restart asterisk?</div>
<div><br></div><div>I am using the following script in cron to check the status and reboot if necessary:</div><div><br></div><blockquote style="border:none;padding:0px;"><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">#!/bin/bash</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">#</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"># IAX Registration Check, Nofity if offline.</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"># if offline, then allstar will be unavailable</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"><br>
</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"><br></font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"># check iax2 registration:</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">IAX_REG=`asterisk -r -x "iax2 show registry" | awk '{ print $6 }' | grep -v State`</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">IAX_REG1=`echo $IAX_REG | awk '{ print $1 }'`</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">IAX_REG2=`echo $IAX_REG | awk '{ print $2 }'`</font></div></div><div><div><br></div></div></blockquote><blockquote style="border:none;padding:0px;">
<div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">if [ "$IAX_REG1" != "Registered" ] || [ "$IAX_REG2" != "Registered" ]; then</font></div></div><div><div>
<font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> echo "Not Registered, take action..."</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> amportal stop</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> sleep 120</font></div>
</div>
<div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> service portreserve restart</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> amportal start</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">else</font></div></div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif"> echo " All is good..."</font></div>
</div><div><div><font color="#666666" face="Helvetica, Arial, Geneva, sans-serif">fi</font></div></div></blockquote><div><br></div><div><br></div><div>This will get iax to register, but I would think there is some thing wrong with asterisk not being able to re-register without a restart/reboot. Or is this normal behavior?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>73, Chris w0anm</div><div><br></div><div><br></div></div>
<br>_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</div> </div></body>
</html>