[asterisk-commits] file: branch group/vldtmf r39835 - /team/group/vldtmf/channels/iax2-parser.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Aug 15 10:52:42 MST 2006


Author: file
Date: Tue Aug 15 12:52:42 2006
New Revision: 39835

URL: http://svn.digium.com/view/asterisk?rev=39835&view=rev
Log:
Add support to see DTMF BEGIN frames.

Modified:
    team/group/vldtmf/channels/iax2-parser.c

Modified: team/group/vldtmf/channels/iax2-parser.c
URL: http://svn.digium.com/view/asterisk/team/group/vldtmf/channels/iax2-parser.c?rev=39835&r1=39834&r2=39835&view=diff
==============================================================================
--- team/group/vldtmf/channels/iax2-parser.c (original)
+++ team/group/vldtmf/channels/iax2-parser.c Tue Aug 15 12:52:42 2006
@@ -385,7 +385,7 @@
 {
 	const char *frames[] = {
 		"(0?)",
-		"DTMF   ",
+		"DTMF_E ",
 		"VOICE  ",
 		"VIDEO  ",
 		"CONTROL",
@@ -394,7 +394,10 @@
 		"TEXT   ",
 		"IMAGE  ",
 		"HTML   ",
-		"CNG    " };
+		"CNG    ",
+		"MODEM  ",
+		"DTMF_B ",
+	};
 	const char *iaxs[] = {
 		"(0?)",
 		"NEW    ",
@@ -498,7 +501,7 @@
 	} else {
 		class = frames[(int)fh->type];
 	}
-	if (fh->type == AST_FRAME_DTMF) {
+	if (fh->type == AST_FRAME_DTMF_BEGIN || fh->type == AST_FRAME_DTMF_END) {
 		sprintf(subclass2, "%c", fh->csub);
 		subclass = subclass2;
 	} else if (fh->type == AST_FRAME_IAX) {



More information about the asterisk-commits mailing list