[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-users
Subject:    Re: [asterisk-users] sip registration timeout/expiration
From:       "Grygoriy Dobrovolskyy" <megahohol () gmail ! com>
Date:       2008-07-31 21:04:05
Message-ID: 40f83f9d0807311404qca55847k69585371ecf8e189 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


you have this option on major phones also, try that.

2008/7/31 Vieri <rentorbuy@yahoo.com>

> Hi,
>
> If I set maxexpirey=60 in sip.conf and also set a "registration timeout=60"
> on client software, doesn't this mean that the SIP user (an ATA connected
> phone) should be "forced" to re-register every minute?
>
> If I look at the CLI when the SIP user registers I do see a statement
> regarding a 60 second timeout. However, after 1 minute I don't "see" it
> unregister and register again (debug is on).
>
> I'm asking this because in my LAN I have a DNS server which is dynamically
> updated (via a script) with both A and SRV records with very short TTLs.
> The idea is that the LAN SIP clients (both softphones and ATA-connected
> phones) switch from one failing (or "down for maintenance") server to
> another active box.
> This part seems to work fine. However, I'm having trouble getting the SIP
> registrations back to the first server when the latter is back on-line. The
> only way I found to do this within a minute is to kill asterisk on box 2 and
> all accounts will register on box 1 (even if the 5-second-TTL A records have
> been updated and/or the SRV entries give box1 a much higher priority).
>
> How can I make them "move" to box 1 without bringing down box 2?
>
> It seems as though "maxexpirey" is not taken into account. The extensions
> will stay on box 2 and will move to box 1 only if:
> - box 2 dies
> - or I wait around 30 minutes (I don't what this timeout could be)
>
> I've tried it on Asterisk 1.4.21.2 and 1.2.30.
>
> Any ideas?
>
> Thanks,
>
> Vieri
>
>
>
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

[Attachment #5 (text/html)]

<div dir="ltr">you have this option on major phones also, try that.<br><br><div \
class="gmail_quote">2008/7/31 Vieri <span dir="ltr">&lt;<a \
href="mailto:rentorbuy@yahoo.com">rentorbuy@yahoo.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Hi,<br>
<br>
If I set maxexpirey=60 in sip.conf and also set a &quot;registration timeout=60&quot; \
on client software, doesn&#39;t this mean that the SIP user (an ATA connected phone) \
should be &quot;forced&quot; to re-register every minute?<br>

<br>
If I look at the CLI when the SIP user registers I do see a statement regarding a 60 \
second timeout. However, after 1 minute I don&#39;t &quot;see&quot; it unregister and \
register again (debug is on).<br> <br>
I&#39;m asking this because in my LAN I have a DNS server which is dynamically \
updated (via a script) with both A and SRV records with very short TTLs.<br> The idea \
is that the LAN SIP clients (both softphones and ATA-connected phones) switch from \
one failing (or &quot;down for maintenance&quot;) server to another active box.<br> \
This part seems to work fine. However, I&#39;m having trouble getting the SIP \
registrations back to the first server when the latter is back on-line. The only way \
I found to do this within a minute is to kill asterisk on box 2 and all accounts will \
register on box 1 (even if the 5-second-TTL A records have been updated and/or the \
SRV entries give box1 a much higher priority).<br>

<br>
How can I make them &quot;move&quot; to box 1 without bringing down box 2?<br>
<br>
It seems as though &quot;maxexpirey&quot; is not taken into account. The extensions \
                will stay on box 2 and will move to box 1 only if:<br>
- box 2 dies<br>
- or I wait around 30 minutes (I don&#39;t what this timeout could be)<br>
<br>
I&#39;ve tried it on Asterisk <a href="http://1.4.21.2" target="_blank">1.4.21.2</a> \
and <a href="http://1.2.30." target="_blank">1.2.30.</a><br> <br>
Any ideas?<br>
<br>
Thanks,<br>
<br>
Vieri<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br> <br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" \
target="_blank">http://www.astricon.net</a><br> <br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> \
</blockquote></div><br></div>



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic