[svn-commits] file: trunk r62990 - in /trunk: ./ channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu May 3 09:45:40 MST 2007


Author: file
Date: Thu May  3 11:45:39 2007
New Revision: 62990

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62990
Log:
Merged revisions 62989 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r62989 | file | 2007-05-03 13:44:00 -0300 (Thu, 03 May 2007) | 10 lines

Merged revisions 62987 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62987 | file | 2007-05-03 13:42:19 -0300 (Thu, 03 May 2007) | 2 lines

When a peer is seeded or built tell the devicestate core to update it's status. This is easier then having chan_sip load before pbx_config. (issue #9658 reported by dlynes)

........

................

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=62990&r1=62989&r2=62990
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu May  3 11:45:39 2007
@@ -8256,6 +8256,7 @@
 		ast_sched_del(sched, peer->expire);
 	peer->expire = ast_sched_add(sched, (expiry + 10) * 1000, expire_register, peer);
 	register_peer_exten(peer, TRUE);
+	ast_device_state_changed("SIP/%s", peer->name);
 }
 
 /*! \brief Save contact header for 200 OK on INVITE */
@@ -17419,6 +17420,7 @@
 				if (ast_true(hassip) || (!hassip && genhassip)) {
 					peer = build_peer(cat, gen, ast_variable_browse(ucfg, cat), 0);
 					if (peer) {
+						ast_device_state_changed("SIP/%s", peer->name);
 						ASTOBJ_CONTAINER_LINK(&peerl,peer);
 						unref_peer(peer);
 						peer_count++;



More information about the svn-commits mailing list