[asterisk-commits] tilghman: branch 1.6.1 r177945 - in /branches/1.6.1: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Feb 21 10:04:09 CST 2009
Author: tilghman
Date: Sat Feb 21 10:04:09 2009
New Revision: 177945
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177945
Log:
Merged revisions 177944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r177944 | tilghman | 2009-02-21 09:59:49 -0600 (Sat, 21 Feb 2009) | 2 lines
On update, test against the existence of sipregs.
........
Modified:
branches/1.6.1/ (props changed)
branches/1.6.1/channels/chan_sip.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=177945&r1=177944&r2=177945
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Sat Feb 21 10:04:09 2009
@@ -10366,7 +10366,7 @@
if (!sip_cfg.ignore_regexpire) {
if (peer->rt_fromcontact) {
ast_update_realtime(tablename, "name", peer->name, "fullcontact", "", "ipaddr", "", "port", "", "regseconds", "0", peer->deprecated_username ? "username" : "defaultuser", "", "regserver", "", "useragent", "", SENTINEL);
- ast_update_realtime("sippeers", "name", peer->name, "lastms", "", SENTINEL);
+ ast_update_realtime(tablename, "name", peer->name, "lastms", "", SENTINEL);
} else {
ast_db_del("SIP/Registry", peer->name);
}
@@ -16347,7 +16347,7 @@
ast_log(LOG_NOTICE, "Peer '%s' is now %s. (%dms / %dms)\n",
peer->name, s, pingtime, peer->maxms);
ast_devstate_changed(AST_DEVICE_UNKNOWN, "SIP/%s", peer->name);
- ast_update_realtime("sippeers", "name", peer->name, "lastms", str_lastms, SENTINEL);
+ ast_update_realtime(ast_check_realtime("sipregs") ? "sipregs" : "sippeers", "name", peer->name, "lastms", str_lastms, SENTINEL);
manager_event(EVENT_FLAG_SYSTEM, "PeerStatus",
"ChannelType: SIP\r\nPeer: SIP/%s\r\nPeerStatus: %s\r\nTime: %d\r\n",
peer->name, s, pingtime);
@@ -20695,7 +20695,7 @@
if (peer->lastms > -1) {
ast_log(LOG_NOTICE, "Peer '%s' is now UNREACHABLE! Last qualify: %d\n", peer->name, peer->lastms);
- ast_update_realtime("sippeers", "name", peer->name, "lastms", "-1", SENTINEL);
+ ast_update_realtime(ast_check_realtime("sipregs") ? "sipregs" : "sippeers", "name", peer->name, "lastms", "-1", SENTINEL);
manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "ChannelType: SIP\r\nPeer: SIP/%s\r\nPeerStatus: Unreachable\r\nTime: %d\r\n", peer->name, -1);
if (global_regextenonqualify) {
register_peer_exten(peer, FALSE);
More information about the asterisk-commits
mailing list