[asterisk-commits] branch 1.2 - r7275 /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Dec 1 18:52:15 CST 2005


Author: oej
Date: Thu Dec  1 18:52:13 2005
New Revision: 7275

URL: http://svn.digium.com/view/asterisk?rev=7275&view=rev
Log:
Bug #5907. Improve SIP INFO DTMF debugging output. (1.2 & Trunk)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=7275&r1=7274&r2=7275&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Thu Dec  1 18:52:13 2005
@@ -8604,8 +8604,6 @@
 			return;
 		}
 
-		if (sipdebug)
-			ast_verbose("* DTMF-relay event received: '%c'\n", buf[0]);
 		if (buf[0] == '*')
 			event = 10;
 		else if (buf[0] == '#')
@@ -8618,6 +8616,8 @@
 			/* send a FLASH event */
 			struct ast_frame f = { AST_FRAME_CONTROL, AST_CONTROL_FLASH, };
 			ast_queue_frame(p->owner, &f);
+			if (sipdebug)
+				ast_verbose("* DTMF-relay event received: FLASH\n");
 		} else {
 			/* send a DTMF event */
 			struct ast_frame f = { AST_FRAME_DTMF, };
@@ -8631,6 +8631,8 @@
 				f.subclass = 'A' + (event - 12);
 			}
 			ast_queue_frame(p->owner, &f);
+			if (sipdebug)
+				ast_verbose("* DTMF-relay event received: %c\n", f.subclass);
 		}
 		transmit_response(p, "200 OK", req);
 		return;



More information about the asterisk-commits mailing list