[svn-commits] mvanbaak: trunk r177849 - /trunk/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sat Feb 21 06:22:33 CST 2009
Author: mvanbaak
Date: Sat Feb 21 06:22:32 2009
New Revision: 177849
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177849
Log:
make chan_sip.c compile on OpenBSD again.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=177849&r1=177848&r2=177849
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Feb 21 06:22:32 2009
@@ -11108,7 +11108,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", "", NULL);
+ ast_update_realtime("sippeers", "name", peer->name, "lastms", "", SENTINEL);
} else {
ast_db_del("SIP/Registry", peer->name);
}
@@ -17195,7 +17195,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, NULL);
+ ast_update_realtime("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);
@@ -21649,7 +21649,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", NULL);
+ ast_update_realtime("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 (sip_cfg.regextenonqualify) {
register_peer_exten(peer, FALSE);
More information about the svn-commits
mailing list