[asterisk-commits] file: trunk r162997 - /trunk/channels/chan_sip.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Thu Dec 11 09:05:50 CST 2008
    
    
  
Author: file
Date: Thu Dec 11 09:05:49 2008
New Revision: 162997
URL: http://svn.digium.com/view/asterisk?view=rev&rev=162997
Log:
When a device registers to use it is entirely possible that they may be in use, so tell the core that we don't know the devstate and have it ask us for it.
(closes issue #13525)
Reported by: pj
Modified:
    trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=162997&r1=162996&r2=162997
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Dec 11 09:05:49 2008
@@ -11792,7 +11792,7 @@
 		}
 	}
 	if (!res) {
-		ast_devstate_changed(AST_DEVICE_NOT_INUSE, "SIP/%s", peer->name);
+		ast_devstate_changed(AST_DEVICE_UNKNOWN, "SIP/%s", peer->name);
 	}
 	if (res < 0) {
 		switch (res) {
    
    
More information about the asterisk-commits
mailing list