]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
seems like snom is the only one that DOES support this
authorRaymond Chandler <intralanman@freeswitch.org>
Sat, 24 Jan 2009 02:34:55 +0000 (02:34 +0000)
committerRaymond Chandler <intralanman@freeswitch.org>
Sat, 24 Jan 2009 02:34:55 +0000 (02:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11480 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 1c6faf3f29adb0bc0a71b7c201b6909a6ea57ce5..914003b6b16c7a3aae36d1ed9e0f4c5d154bc7b7 100644 (file)
@@ -4474,8 +4474,8 @@ static void sofia_info_send_sipfrag(switch_core_session_t *aleg, switch_core_ses
                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 @@ static void sofia_info_send_sipfrag(switch_core_session_t *aleg, switch_core_ses
                }
        }
 }
+
 /*
  * 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.