[asterisk-commits] oej: branch oej/rana-dtmf-rtp-duration-1.6.0 r305749 - /team/oej/rana-dtmf-rt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 2 06:03:45 CST 2011


Author: oej
Date: Wed Feb  2 06:03:41 2011
New Revision: 305749

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305749
Log:
...and some iax2 support. Just to make Tim happy.

Modified:
    team/oej/rana-dtmf-rtp-duration-1.6.0/channels/chan_iax2.c

Modified: team/oej/rana-dtmf-rtp-duration-1.6.0/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/rana-dtmf-rtp-duration-1.6.0/channels/chan_iax2.c?view=diff&rev=305749&r1=305748&r2=305749
==============================================================================
--- team/oej/rana-dtmf-rtp-duration-1.6.0/channels/chan_iax2.c (original)
+++ team/oej/rana-dtmf-rtp-duration-1.6.0/channels/chan_iax2.c Wed Feb  2 06:03:41 2011
@@ -988,6 +988,7 @@
 static int iax2_call(struct ast_channel *c, char *dest, int timeout);
 static int iax2_devicestate(void *data);
 static int iax2_digit_begin(struct ast_channel *c, char digit);
+static int iax2_digit_continue(struct ast_channel *c, char digit, unsigned int duration);
 static int iax2_digit_end(struct ast_channel *c, char digit, unsigned int duration);
 static int iax2_do_register(struct iax2_registry *reg);
 static int iax2_fixup(struct ast_channel *oldchannel, struct ast_channel *newchan);
@@ -1035,6 +1036,7 @@
 	.requester = iax2_request,
 	.devicestate = iax2_devicestate,
 	.send_digit_begin = iax2_digit_begin,
+	.send_digit_continue = iax2_digit_continue,
 	.send_digit_end = iax2_digit_end,
 	.send_text = iax2_sendtext,
 	.send_image = iax2_sendimage,
@@ -3914,6 +3916,11 @@
 static int iax2_digit_begin(struct ast_channel *c, char digit)
 {
 	return send_command_locked(PTR_TO_CALLNO(c->tech_pvt), AST_FRAME_DTMF_BEGIN, digit, 0, NULL, 0, -1);
+}
+
+static int iax2_digit_continue(struct ast_channel *c, char digit, unsigned int duration)
+{
+	return send_command_locked(PTR_TO_CALLNO(c->tech_pvt), AST_FRAME_DTMF_CONTINUE, digit, 0, NULL, 0, -1);
 }
 
 static int iax2_digit_end(struct ast_channel *c, char digit, unsigned int duration)




More information about the asterisk-commits mailing list