<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="margin:0 0 0 40px;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="margin:0 0 0 40px;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>