Revision
17112
Author
brian
Date
2010-03-26 11:23:49 -0500 (Fri, 26 Mar 2010)

Log Message

Case insenstive matching for this and stricter matching 

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (17111 => 17112)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2010-03-26 16:20:51 UTC (rev 17111)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2010-03-26 16:23:49 UTC (rev 17112)
@@ -990,7 +990,7 @@
 							switch_snprintf(contact_str, sizeof(contact_str), "%s <sip:%s@%s:%d%s;fs_nat=yes>", display, contact->m_url->url_user, url_ip,
 											network_port, received_data);
 						}
-						if (strstr(v_contact_str, "tls")) {
+						if (switch_stristr(v_contact_str, "transport=tls")) {
 							reg_desc = "Registered(TLSHACK)";
 						} else {
 							reg_desc = "Registered(AUTO-NAT)";