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

FreeSWITCH SVN brian at freeswitch.org
Fri May 29 11:11:07 PDT 2009


Author: brian
Date: Fri May 29 13:11:07 2009
New Revision: 13507

Log:
fix warning when you set type to none

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Fri May 29 13:11:07 2009
@@ -1005,13 +1005,18 @@
 
 	switch (dtmf_type) {
 	case DTMF_2833:
-		return switch_rtp_queue_rfc2833(tech_pvt->rtp_session, dtmf);
-
+		{
+			return switch_rtp_queue_rfc2833(tech_pvt->rtp_session, dtmf);
+		}
 	case DTMF_INFO:
-		snprintf(message, sizeof(message), "Signal=%c\r\nDuration=%d\r\n", dtmf->digit, dtmf->duration / 8);
-		switch_mutex_lock(tech_pvt->sofia_mutex);
-		nua_info(tech_pvt->nh, SIPTAG_CONTENT_TYPE_STR("application/dtmf-relay"), SIPTAG_PAYLOAD_STR(message), TAG_END());
-		switch_mutex_unlock(tech_pvt->sofia_mutex);
+		{
+			snprintf(message, sizeof(message), "Signal=%c\r\nDuration=%d\r\n", dtmf->digit, dtmf->duration / 8);
+			switch_mutex_lock(tech_pvt->sofia_mutex);
+			nua_info(tech_pvt->nh, SIPTAG_CONTENT_TYPE_STR("application/dtmf-relay"), SIPTAG_PAYLOAD_STR(message), TAG_END());
+			switch_mutex_unlock(tech_pvt->sofia_mutex);
+		}
+		break;
+	case DTMF_NONE:
 		break;
 	default:
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unhandled DTMF type!\n");



More information about the Freeswitch-svn mailing list