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

Freeswitch SVN mikej at freeswitch.org
Mon Jan 14 17:25:36 EST 2008


Author: mikej
Date: Mon Jan 14 17:25:36 2008
New Revision: 7227

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

Log:
parse crypto header.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Mon Jan 14 17:25:36 2008
@@ -1339,6 +1339,7 @@
 	int greedy = 0, x = 0, skip = 0, mine = 0;
 	switch_channel_t *channel = NULL;
 	const char *val;
+	const char *crypto = NULL;
 
 	tech_pvt = switch_core_session_get_private(session);
 	switch_assert(tech_pvt != NULL);
@@ -1441,6 +1442,8 @@
 			for (a = m->m_attributes; a; a = a->a_next) {
 				if (!strcasecmp(a->a_name, "ptime") && a->a_value) {
 					ptime = atoi(a->a_value);
+				} else if (!strcasecmp(a->a_name, "crypto") && a->a_value) {
+					crypto = a->a_value;
 				}
 			}
 



More information about the Freeswitch-svn mailing list