[Asterisk-cvs] asterisk-addons/res_perl AstAPIBase_wrap.c,1.1,1.2
anthm at lists.digium.com
anthm at lists.digium.com
Sun Sep 26 14:12:16 CDT 2004
Update of /usr/cvsroot/asterisk-addons/res_perl
In directory mongoose.digium.com:/tmp/cvs-serv26958
Modified Files:
AstAPIBase_wrap.c
Log Message:
minor update
Index: AstAPIBase_wrap.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/res_perl/AstAPIBase_wrap.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- AstAPIBase_wrap.c 23 Sep 2004 17:49:42 -0000 1.1
+++ AstAPIBase_wrap.c 26 Sep 2004 18:14:55 -0000 1.2
@@ -822,6 +822,7 @@
extern void asterisk_moh_start(struct ast_channel *,char *);
extern void asterisk_moh_stop(struct ast_channel *);
extern int asterisk_bridge_call(struct ast_channel *,struct ast_channel *,int,int,int);
+extern int asterisk_bridge_call_long(struct ast_channel *,struct ast_channel *,int,int,int,int,long,long,long,char *,char *,char *);
extern struct ast_channel *asterisk_request_and_dial(char *,char *,int,char *,int);
extern int asterisk_manager_command(int,char *);
extern int asterisk_cli(int,char *);
@@ -1968,6 +1969,62 @@
}
+XS(_wrap_asterisk_bridge_call_long) {
+ {
+ struct ast_channel *arg1 = (struct ast_channel *) 0 ;
+ struct ast_channel *arg2 = (struct ast_channel *) 0 ;
+ int arg3 ;
+ int arg4 ;
+ int arg5 ;
+ int arg6 ;
+ long arg7 ;
+ long arg8 ;
+ long arg9 ;
+ char *arg10 ;
+ char *arg11 ;
+ char *arg12 ;
+ int result;
+ int argvi = 0;
+ dXSARGS;
+
+ if ((items < 12) || (items > 12)) {
+ SWIG_croak("Usage: asterisk_bridge_call_long(chan,peer,allowredir_in,allowredir_out,allowdisconnect_in,allowdisconnect_out,timelimit,play_warning,warning_freq,warning_sound,end_sound,start_sound);");
+ }
+ {
+ if (SWIG_ConvertPtr(ST(0), (void **) &arg1, SWIGTYPE_p_ast_channel,0) < 0) {
+ SWIG_croak("Type error in argument 1 of asterisk_bridge_call_long. Expected _p_ast_channel");
+ }
+ }
+ {
+ if (SWIG_ConvertPtr(ST(1), (void **) &arg2, SWIGTYPE_p_ast_channel,0) < 0) {
+ SWIG_croak("Type error in argument 2 of asterisk_bridge_call_long. Expected _p_ast_channel");
+ }
+ }
+ arg3 = (int) SvIV(ST(2));
+ arg4 = (int) SvIV(ST(3));
+ arg5 = (int) SvIV(ST(4));
+ arg6 = (int) SvIV(ST(5));
+ arg7 = (long) SvIV(ST(6));
+ arg8 = (long) SvIV(ST(7));
+ arg9 = (long) SvIV(ST(8));
+ if (!SvOK((SV*) ST(9))) arg10 = 0;
+ else arg10 = (char *) SvPV(ST(9), PL_na);
+ if (!SvOK((SV*) ST(10))) arg11 = 0;
+ else arg11 = (char *) SvPV(ST(10), PL_na);
+ if (!SvOK((SV*) ST(11))) arg12 = 0;
+ else arg12 = (char *) SvPV(ST(11), PL_na);
+ result = (int)asterisk_bridge_call_long(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
+
+ ST(argvi) = sv_newmortal();
+ sv_setiv(ST(argvi++), (IV) result);
+ XSRETURN(argvi);
+ fail:
+ ;
+ }
+ croak(Nullch);
+}
+
+
XS(_wrap_asterisk_request_and_dial) {
{
char *arg1 ;
@@ -2398,6 +2455,7 @@
{"AstAPIBasec::asterisk_moh_start", _wrap_asterisk_moh_start},
{"AstAPIBasec::asterisk_moh_stop", _wrap_asterisk_moh_stop},
{"AstAPIBasec::asterisk_bridge_call", _wrap_asterisk_bridge_call},
+{"AstAPIBasec::asterisk_bridge_call_long", _wrap_asterisk_bridge_call_long},
{"AstAPIBasec::asterisk_request_and_dial", _wrap_asterisk_request_and_dial},
{"AstAPIBasec::asterisk_manager_command", _wrap_asterisk_manager_command},
{"AstAPIBasec::asterisk_cli", _wrap_asterisk_cli},
More information about the svn-commits
mailing list