Specify D/ package in mgcp send digit routine (first commit from Adtran!)
authorMark Spencer <markster@digium.com>
Thu, 12 Aug 2004 20:26:40 +0000 (20:26 +0000)
committerMark Spencer <markster@digium.com>
Thu, 12 Aug 2004 20:26:40 +0000 (20:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3602 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 0ea32ab..b69f02c 100755 (executable)
@@ -1160,9 +1160,11 @@ static int mgcp_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
 static int mgcp_senddigit(struct ast_channel *ast, char digit)
 {
        struct mgcp_subchannel *sub = ast->pvt->pvt;
-       char tmp[2];
-       tmp[0] = digit;
-       tmp[1] = '\0';
+       char tmp[4];
+       tmp[0] = 'D';
+       tmp[1] = '/';
+       tmp[2] = digit;
+       tmp[3] = '\0';
        transmit_notify_request(sub, tmp);
        return -1;
 }