[asterisk-commits] russell: branch 1.4 r73398 - in /branches/1.4/channels: Makefile chan_vpb.cc

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 5 10:28:28 CDT 2007


Author: russell
Date: Thu Jul  5 10:28:27 2007
New Revision: 73398

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73398
Log:
Make this module build for me in dev-mode

Modified:
    branches/1.4/channels/Makefile
    branches/1.4/channels/chan_vpb.cc

Modified: branches/1.4/channels/Makefile
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/Makefile?view=diff&rev=73398&r1=73397&r2=73398
==============================================================================
--- branches/1.4/channels/Makefile (original)
+++ branches/1.4/channels/Makefile Thu Jul  5 10:28:27 2007
@@ -114,3 +114,5 @@
 misdn/isdn_lib.o: ASTCFLAGS+=-Wno-strict-aliasing
 
 $(if $(filter chan_misdn,$(EMBEDDED_MODS)),modules.link,chan_misdn.so): chan_misdn.o misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o
+
+chan_vpb.oo: ASTCFLAGS:=$(filter-out -Wdeclaration-after-statement,$(ASTCFLAGS))

Modified: branches/1.4/channels/chan_vpb.cc
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_vpb.cc?view=diff&rev=73398&r1=73397&r2=73398
==============================================================================
--- branches/1.4/channels/chan_vpb.cc (original)
+++ branches/1.4/channels/chan_vpb.cc Thu Jul  5 10:28:27 2007
@@ -343,7 +343,7 @@
 static void *do_chanreads(void *pvt);
 static struct ast_channel *vpb_request(const char *type, int format, void *data, int *cause);
 static int vpb_digit_begin(struct ast_channel *ast, char digit);
-static int vpb_digit_end(struct ast_channel *ast, char digit);
+static int vpb_digit_end(struct ast_channel *ast, char digit, unsigned int duration);
 static int vpb_call(struct ast_channel *ast, char *dest, int timeout);
 static int vpb_hangup(struct ast_channel *ast);
 static int vpb_answer(struct ast_channel *ast);
@@ -1834,7 +1834,7 @@
 	/* XXX Modify this callback to let Asterisk control the length of DTMF */
 	return 0;
 }
-static int vpb_digit_end(struct ast_channel *ast, char digit)
+static int vpb_digit_end(struct ast_channel *ast, char digit, unsigned int duration)
 {
 	struct vpb_pvt *p = (struct vpb_pvt *)ast->tech_pvt;
 	char s[2];
@@ -2634,7 +2634,7 @@
 	if (option_verbose > 3)
 		ast_verbose("%s: New call for context [%s]\n",me->dev,context);
 	    
-	tmp = ast_channel_alloc(1, state, 0, 0, "", me->exten, me->context, 0, me->dev);
+	tmp = ast_channel_alloc(1, state, 0, 0, "", me->ext, me->context, 0, me->dev);
 	if (tmp) {
 		if (use_ast_ind == 1){
 			tmp->tech = &vpb_tech_indicate;




More information about the asterisk-commits mailing list