[Freeswitch-svn] [commit] r11480 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN intralanman at freeswitch.org
Fri Jan 23 18:34:56 PST 2009


Author: intralanman
Date: Fri Jan 23 20:34:55 2009
New Revision: 11480

Log:
seems like snom is the only one that DOES support this

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Fri Jan 23 20:34:55 2009
@@ -4474,8 +4474,8 @@
 		switch_channel_t *channel = switch_core_session_get_channel(bleg);
 		const char *ua = switch_channel_get_variable(channel, "sip_user_agent");
 		
-		if (ua && switch_stristr("cisco", ua)) {
-			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "If you were using some other phone besides a Cisco, we would have updated the caller id display on your phone for you!\n");
+		if (ua && !switch_stristr("snom", ua)) {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "If you were using a Snom phone, we would have updated the caller id display on your phone for you!\n");
 			return;
 		}
 
@@ -4494,6 +4494,7 @@
 		}
 	}
 }
+
 /*
  * This subroutine will take the a_params of a sip_addr_s structure and spin through them.
  * Each param will be used to create a channel variable.



More information about the Freeswitch-svn mailing list