[svn-commits] mnicholson: branch mnicholson/chan-mobile-refactor r796 - /team/mnicholson/ch...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 3 14:16:01 CST 2009


Author: mnicholson
Date: Tue Mar  3 14:15:57 2009
New Revision: 796

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=796
Log:
Removed unused pvt members dsp_fr, dtmf_skip, and skip_frames and removed all
references to them.

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=796&r1=795&r2=796
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Tue Mar  3 14:15:57 2009
@@ -175,9 +175,6 @@
 	int alignment_count;
 	char sms_txt[160];
 	struct ast_dsp *dsp;
-	struct ast_frame *dsp_fr;
-	int dtmf_skip;
-	int skip_frames;
 	char hangup_count;
 	AST_LIST_ENTRY(mbl_pvt) entry;
 };
@@ -724,7 +721,6 @@
 		close(pvt->sco_socket);
 	pvt->sco_socket = -1;
 	pvt->sent_answer = 0;
-	pvt->skip_frames = 0;
 	pvt->alignment_count = 0;
 	pvt->alignment_detection_triggered = 0;
 	if (pvt->adapter->alignment_detection)
@@ -3240,7 +3236,6 @@
 	/* set some defaults */
 
 	pvt->type = MBL_TYPE_PHONE;
-	pvt->dtmf_skip = 200;
 	ast_copy_string(pvt->context, "default", sizeof(pvt->context));
 
 	/* populate the pvt structure */
@@ -3279,9 +3274,6 @@
 		} else if (!strcasecmp(v->name, "group")) {
 			/* group is set to 0 if invalid */
 			pvt->group = atoi(v->value);
-		} else if (!strcasecmp(v->name, "dtmfskip")) {
-			if ((pvt->dtmf_skip = atoi(v->value)) == 0)
-				pvt->dtmf_skip = 200;
 		} else if (!strcasecmp(v->name, "nocallsetup")) {
 			pvt->no_callsetup = ast_true(v->value);
 




More information about the svn-commits mailing list