Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.766 diff -u -r1.766 chan_sip.c --- channels/chan_sip.c 20 Jun 2005 17:01:03 -0000 1.766 +++ channels/chan_sip.c 21 Jun 2005 01:37:21 -0000 @@ -398,7 +398,7 @@ /* a new page of flags for peer */ #define SIP_PAGE2_RTCACHEFRIENDS (1 << 0) -#define SIP_PAGE2_RTNOUPDATE (1 << 1) +#define SIP_PAGE2_RTUPDATE (1 << 1) #define SIP_PAGE2_RTAUTOCLEAR (1 << 2) #define SIP_PAGE2_RTIGNOREREGEXPIRE (1 << 3) @@ -1331,7 +1331,7 @@ /*--- update_peer: Update peer data in database (if used) ---*/ static void update_peer(struct sip_peer *p, int expiry) { - if (!ast_test_flag((&global_flags_page2), SIP_PAGE2_RTNOUPDATE) && + if (!ast_test_flag((&global_flags_page2), SIP_PAGE2_RTUPDATE) && (ast_test_flag(p, SIP_REALTIME) || ast_test_flag(&(p->flags_page2), SIP_PAGE2_RTCACHEFRIENDS))) { realtime_update_peer(p->name, &p->addr, p->username, expiry); @@ -10608,8 +10608,8 @@ default_useragent); } else if (!strcasecmp(v->name, "rtcachefriends")) { ast_set2_flag((&global_flags_page2), ast_true(v->value), SIP_PAGE2_RTCACHEFRIENDS); - } else if (!strcasecmp(v->name, "rtnoupdate")) { - ast_set2_flag((&global_flags_page2), ast_true(v->value), SIP_PAGE2_RTNOUPDATE); + } else if (!strcasecmp(v->name, "rtupdate")) { + ast_set2_flag((&global_flags_page2), ast_true(v->value), SIP_PAGE2_RTUPDATE); } else if (!strcasecmp(v->name, "rtignoreregexpire")) { ast_set2_flag((&global_flags_page2), ast_true(v->value), SIP_PAGE2_RTIGNOREREGEXPIRE); } else if (!strcasecmp(v->name, "rtautoclear")) { Index: configs/sip.conf.sample =================================================================== RCS file: /usr/cvsroot/asterisk/configs/sip.conf.sample,v retrieving revision 1.64 diff -u -r1.64 sip.conf.sample --- configs/sip.conf.sample 9 Jun 2005 21:11:30 -0000 1.64 +++ configs/sip.conf.sample 21 Jun 2005 01:37:22 -0000 @@ -166,19 +166,25 @@ ; route = Assume NAT, don't send rport ; (work around more UNIDEN bugs) -;rtcachefriends=yes ; Cache realtime friends by adding them to the internal list - ; just like friends added from the config file only on a - ; as-needed basis. -;rtnoupdate=yes ; do not send the update request over realtime. -;rtautoclear=yes ; Auto-Expire friends created on the fly on the same schedule - ; as if it had just registered when the registration expires - ; the friend will vanish from the configuration until requested - ; again. If set to an integer, friends expire - ; within this number of seconds instead of the - ; same as the registration interval -;rtignoreexpire=yes ; when reading a peer from Realtime, if the peer's registration +;rtcachefriends=yes ; Cache realtime friends by adding them to the internal list + ; just like friends added from the config file only on a + ; as-needed basis. (yes|no) + +;rtupdate=yes ; Send registry updates to database using realtime? (yes|no) + ; If set to yes, when a SIP UA registers successfully, the ip address, + ; the origination port, and the registration period will be updated + ; in the UA's record in the database via RealTime. + +;rtautoclear=yes ; Auto-Expire friends created on the fly on the same schedule + ; as if it had just registered? (yes|no|) + ; If set to yes, when the registration expires, the friend will vanish from + ; the internal list until it registers again. If set to an integer, + ; UA's will expire within this number of seconds instead of the + ; registration interval. + +;rtignoreexpire=yes ; When reading a peer from Realtime, if the peer's registration ; has expired based on its registration interval, used the stored - ; address information regardless + ; address information regardless (yes|no) [authentication]