Summary:ASTERISK-04260: [patch] new config option 'rtautoreg'
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2005-05-23 16:22:44Date Closed:2009-02-05 12:15:03.000-0600
Versions:Frequency of
Environment:Attachments:( 0) chan_sip.diff
( 1) iaxautoreg_rev1.diff
( 2) iaxautoreg.diff
( 3) rtignoreregexpire.diff
( 4) siprtautoreg_rev1.diff
( 5) siprtautoreg_rev2.diff
( 6) siprtautoreg.diff
Description:This new option vaild globally in the [general] section or on a per peer basis allows you to configure the system to automaticly register any dynamic peers to the last known ip pulled up from realtime.

Say you have 2 boxes (A and B) both sharing a common realtime database.

peer1 registers to box A
subsequently a call to peer1 is made on box B but there is no registration.

With rtautoreg enabled,  when peer1 is looked up for the outbond call it will come into existance with the ip from the database that was previously inserted by A's recent registration.


The expire interval may become skewed if used with rtcachefriends.
But cases where registrations do not rapidly change ip it should not be too bad.


Disclaimer on file
Comments:By: Anthony Minessale (anthm) 2005-05-23 17:17:13

added sip version too

By: Russell Bryant (russell) 2005-05-23 18:42:22

looks good to me ...

By: Anthony Minessale (anthm) 2005-05-24 09:13:00

I realized how stupid I was to make it also an option in the peer rather than just a global, umm how can it be an option in the peer that i didnt load yet cos it's realtime =D

rev1 of both patches posted

By: Mark Spencer (markster) 2005-05-25 14:13:31

I wonder how this relates to the other patch that is already put in regarding the expire times...

By: Anthony Minessale (anthm) 2005-06-08 19:12:57

There was another issue the patch has been updated to disable using astdb on rtcached peers since they still count as realtime peers.  This needs to be fixed regardless of the approval of this patch.

By: Anthony Minessale (anthm) 2005-06-09 14:40:37

Renamed to rtignoreregexpire per kpflemming.

By: Kevin P. Fleming (kpfleming) 2005-06-09 17:10:27

Committed to CVS HEAD, thanks! (although I did have to add documentation of the new option to the sample config files)

By: Anthony Minessale (anthm) 2005-06-10 18:51:07

Wait there's more!

This code also needs to be added to this fix.

By: Kevin P. Fleming (kpfleming) 2005-06-20 20:55:25

That's a behavior change (adding a new column to the SIP peers table), I don't think we should be doing that in an "IAX2 database" bug :-)

If you would, update your patch to current CVS HEAD and open a new bug so it can go through proper review as a new feature in chan_sip instead of a bug fix. Thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:37:53.000-0600

Repository: asterisk
Revision: 5889

U   trunk/channels/chan_iax2.c
U   trunk/channels/chan_sip.c
U   trunk/configs/iax.conf.sample
U   trunk/configs/sip.conf.sample

r5889 | kpfleming | 2008-01-15 15:37:53 -0600 (Tue, 15 Jan 2008) | 2 lines

add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug ASTERISK-4260)