mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
PHP Goes Beta
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2646 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1ce451ad65
commit
3cb83d21d8
@ -10,7 +10,7 @@ PHPLDFLAGS = `$(PCFG) --ldflags` -lcrypt -lresolv -lm -ldl -lnsl -lxml2 -lz -lph
|
||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PHPMOD).$(DYNAMIC_LIB_EXTEN)
|
||||
|
||||
depends:
|
||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install php-5.1.6.tar.gz --prefix=$(PREFIX) --enable-embed=shared --enable-shared --with-pic --with-mysql --with-curl --enable-maintainer-zts --with-tsrm-pthreads
|
||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install php-5.1.6.tar.gz --prefix=$(PREFIX) --enable-embed=shared --enable-shared --with-pic --with-mysql --with-curl --enable-maintainer-zts --with-tsrm-pthreads --enable-debug
|
||||
%.o: %.c
|
||||
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@
|
||||
|
||||
@ -45,3 +45,4 @@ install:
|
||||
cp -f freeswitch.php $(PREFIX)/lib/php
|
||||
cp -f apptest.php $(PREFIX)/scripts
|
||||
cp -f test.php $(PREFIX)/scripts
|
||||
cp -f php.ini $(PREFIX)/lib
|
||||
|
@ -25,6 +25,8 @@
|
||||
*
|
||||
* Anthony Minessale II <anthmct@yahoo.com>
|
||||
* Brian Fertig <brian.fertig@convergencetek.com>
|
||||
* Steph Fox <steph@zend.com>
|
||||
*
|
||||
*
|
||||
* mod_php.c -- PHP Module
|
||||
*
|
||||
@ -233,7 +235,7 @@ static void php_function(switch_core_session_t *session, char *data)
|
||||
//ZEND_SET_SYMBOL(&EG(active_symbol_table), "session", php_session);
|
||||
|
||||
// Force Some INI entries weather the user likes it or not
|
||||
zend_alter_ini_entry("register_globals",sizeof("register_globals"),"1", sizeof("1") - 1, PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME);
|
||||
//zend_alter_ini_entry("register_globals", strlen("register_globals")+1, "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME);
|
||||
|
||||
// Execute the bloody script
|
||||
retval = php_execute_script(&script TSRMLS_CC);
|
||||
|
1261
src/mod/languages/mod_php/php.ini
Normal file
1261
src/mod/languages/mod_php/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
@ -112,57 +112,38 @@ switch_core_session_t *fs_core_session_locate(char *uuid)
|
||||
return session;
|
||||
}
|
||||
|
||||
void fs_channel_answer(char *uuid)
|
||||
void fs_channel_answer(switch_core_session_t *session)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel;
|
||||
channel = switch_core_session_get_channel(session);
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_answer(channel);
|
||||
}
|
||||
|
||||
void fs_channel_pre_answer(char *uuid)
|
||||
void fs_channel_pre_answer(switch_core_session_t *session)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_pre_answer(channel);
|
||||
}
|
||||
|
||||
void fs_channel_hangup(char *uuid, char *cause)
|
||||
void fs_channel_hangup(switch_core_session_t *session, char *cause)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_hangup(channel, switch_channel_str2cause(cause));
|
||||
}
|
||||
|
||||
void fs_channel_set_variable(char *uuid, char *var, char *val)
|
||||
void fs_channel_set_variable(switch_core_session_t *session, char *var, char *val)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_set_variable(channel, var, val);
|
||||
}
|
||||
|
||||
void fs_channel_get_variable(char *uuid, char *var)
|
||||
void fs_channel_get_variable(switch_core_session_t *session, char *var)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_get_variable(channel, var);
|
||||
}
|
||||
|
||||
void fs_channel_set_state(char *uuid, char *state)
|
||||
void fs_channel_set_state(switch_core_session_t *session, char *state)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_state_t fs_state = switch_channel_get_state(channel);
|
||||
|
||||
@ -176,16 +157,13 @@ void fs_channel_set_state(char *uuid, char *state)
|
||||
IVR Routines! You can do IVR in PHP NOW!
|
||||
*/
|
||||
|
||||
int fs_ivr_play_file(char *uuid,
|
||||
char *file,
|
||||
char *timer_name,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
int fs_ivr_play_file(switch_core_session_t *session,
|
||||
char *file,
|
||||
char *timer_name,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
if (switch_strlen_zero(timer_name)) {
|
||||
timer_name = NULL;
|
||||
@ -195,40 +173,31 @@ int fs_ivr_play_file(char *uuid,
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
int fs_switch_ivr_record_file(char *uuid,
|
||||
switch_file_handle_t *fh,
|
||||
char *file,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
int fs_switch_ivr_record_file(switch_core_session_t *session,
|
||||
switch_file_handle_t *fh,
|
||||
char *file,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_record_file(session, fh, file, dtmf_callback, buf, buflen);
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
int fs_switch_ivr_sleep(char *uuid,
|
||||
uint32_t ms)
|
||||
int fs_switch_ivr_sleep(switch_core_session_t *session,
|
||||
uint32_t ms)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
status = switch_ivr_sleep(session, ms);
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
int fs_ivr_play_file2(char *uuid,
|
||||
char *file)
|
||||
int fs_ivr_play_file2(switch_core_session_t *session,
|
||||
char *file)
|
||||
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_play_file(session, NULL, file, NULL, NULL, NULL, 0);
|
||||
@ -236,21 +205,18 @@ int fs_ivr_play_file2(char *uuid,
|
||||
}
|
||||
|
||||
|
||||
int fs_switch_ivr_collect_digits_callback (char *uuid,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
int fs_switch_ivr_collect_digits_callback (switch_core_session_t *session,
|
||||
switch_input_callback_function_t dtmf_callback,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_collect_digits_callback(session, dtmf_callback, buf, buflen);
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
int fs_switch_ivr_collect_digits_count(char *uuid,
|
||||
int fs_switch_ivr_collect_digits_count (switch_core_session_t *session,
|
||||
char *buf,
|
||||
unsigned int buflen,
|
||||
unsigned int maxdigits,
|
||||
@ -258,9 +224,6 @@ int fs_switch_ivr_collect_digits_count(char *uuid,
|
||||
char *terminator,
|
||||
unsigned int timeout)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_collect_digits_count(session, buf, buflen, maxdigits, terminators, terminator, timeout);
|
||||
@ -280,7 +243,7 @@ int fs_switch_ivr_collect_digits_count(char *uuid,
|
||||
}
|
||||
*/
|
||||
|
||||
int fs_switch_ivr_originate(char *uuid,
|
||||
int fs_switch_ivr_originate (switch_core_session_t *session,
|
||||
switch_core_session_t **bleg,
|
||||
char * bridgeto,
|
||||
uint32_t timelimit_sec)
|
||||
@ -289,8 +252,6 @@ int fs_switch_ivr_originate(char *uuid,
|
||||
char * cid_num_override,
|
||||
switch_caller_profile_t *caller_profile_override) */
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_channel_t *caller_channel;
|
||||
switch_core_session_t *peer_session;
|
||||
@ -315,21 +276,18 @@ int fs_switch_ivr_originate(char *uuid,
|
||||
|
||||
}
|
||||
|
||||
int fs_switch_ivr_session_transfer(char *uuid,
|
||||
int fs_switch_ivr_session_transfer(switch_core_session_t *session,
|
||||
char *extension,
|
||||
char *dialplan,
|
||||
char *context)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_session_transfer(session,extension,dialplan,context);
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
int fs_switch_ivr_speak_text (char *uuid,
|
||||
int fs_switch_ivr_speak_text (switch_core_session_t *session,
|
||||
char *tts_name,
|
||||
char *voice_name,
|
||||
char *timer_name,
|
||||
@ -339,9 +297,6 @@ int fs_switch_ivr_speak_text (char *uuid,
|
||||
void *buf,
|
||||
unsigned int buflen)
|
||||
{
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
switch_status_t status;
|
||||
|
||||
status = switch_ivr_speak_text(session,tts_name,voice_name,timer_name,rate,dtmf_callback,text,buf,buflen);
|
||||
@ -355,28 +310,17 @@ int fs_switch_ivr_speak_text (char *uuid,
|
||||
|
||||
*/
|
||||
|
||||
char* fs_switch_channel_get_variable(char *uuid, char *varname)
|
||||
char* fs_switch_channel_get_variable(switch_channel_t *channel, char *varname)
|
||||
{
|
||||
switch_channel_t *channel;
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
return switch_channel_get_variable(channel, varname);
|
||||
}
|
||||
|
||||
|
||||
int fs_switch_channel_set_variable(char *uuid, char *varname, char *value)
|
||||
int fs_switch_channel_set_variable(switch_channel_t *channel, char *varname, char *value)
|
||||
{
|
||||
switch_channel_t *channel;
|
||||
switch_core_session_t *session;
|
||||
session = fs_core_session_locate(uuid);
|
||||
|
||||
|
||||
switch_status_t status;
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
status = switch_channel_set_variable(channel, varname, value);
|
||||
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
|
||||
}
|
||||
|
||||
//char*
|
||||
|
@ -885,12 +885,13 @@ static void SWIG_Php4_SetModule(swig_module_info *pointer) {
|
||||
|
||||
#define SWIGTYPE_p_p_switch_core_session_t swig_types[0]
|
||||
#define SWIGTYPE_p_p_void swig_types[1]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[2]
|
||||
#define SWIGTYPE_p_switch_file_handle_t swig_types[3]
|
||||
#define SWIGTYPE_p_switch_input_callback_function_t swig_types[4]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[5]
|
||||
static swig_type_info *swig_types[7];
|
||||
static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_switch_channel_t swig_types[2]
|
||||
#define SWIGTYPE_p_switch_core_session_t swig_types[3]
|
||||
#define SWIGTYPE_p_switch_file_handle_t swig_types[4]
|
||||
#define SWIGTYPE_p_switch_input_callback_function_t swig_types[5]
|
||||
#define SWIGTYPE_p_uint32_t swig_types[6]
|
||||
static swig_type_info *swig_types[8];
|
||||
static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@ -1012,6 +1013,7 @@ zend_module_entry* SWIG_module_entry = &freeswitch_module_entry;
|
||||
|
||||
static swig_type_info _swigt__p_p_switch_core_session_t = {"_p_p_switch_core_session_t", "switch_core_session_t **", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_channel_t = {"_p_switch_channel_t", "switch_channel_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_core_session_t = {"_p_switch_core_session_t", "switch_core_session_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_file_handle_t = {"_p_switch_file_handle_t", "switch_file_handle_t *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_switch_input_callback_function_t = {"_p_switch_input_callback_function_t", "switch_input_callback_function_t *", 0, 0, (void*)0, 0};
|
||||
@ -1020,6 +1022,7 @@ static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (
|
||||
static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_p_switch_core_session_t,
|
||||
&_swigt__p_p_void,
|
||||
&_swigt__p_switch_channel_t,
|
||||
&_swigt__p_switch_core_session_t,
|
||||
&_swigt__p_switch_file_handle_t,
|
||||
&_swigt__p_switch_input_callback_function_t,
|
||||
@ -1028,6 +1031,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
|
||||
static swig_cast_info _swigc__p_p_switch_core_session_t[] = { {&_swigt__p_p_switch_core_session_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_channel_t[] = { {&_swigt__p_switch_channel_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_core_session_t[] = { {&_swigt__p_switch_core_session_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_file_handle_t[] = { {&_swigt__p_switch_file_handle_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_switch_input_callback_function_t[] = { {&_swigt__p_switch_input_callback_function_t, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@ -1036,6 +1040,7 @@ static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{
|
||||
static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_p_switch_core_session_t,
|
||||
_swigc__p_p_void,
|
||||
_swigc__p_switch_channel_t,
|
||||
_swigc__p_switch_core_session_t,
|
||||
_swigc__p_switch_file_handle_t,
|
||||
_swigc__p_switch_input_callback_function_t,
|
||||
@ -1047,6 +1052,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
|
||||
/* end header section */
|
||||
/* vdecl subsection */
|
||||
static int le_swig__p_switch_channel_t=0; /* handle for */
|
||||
static int le_swig__p_switch_file_handle_t=0; /* handle for */
|
||||
static int le_swig__p_switch_core_session_t=0; /* handle for */
|
||||
static int le_swig__p_p_switch_core_session_t=0; /* handle for */
|
||||
@ -1253,7 +1259,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_answer) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
zval **args[1];
|
||||
|
||||
SWIG_ResetError();
|
||||
@ -1262,10 +1268,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_answer) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_answer. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
fs_channel_answer(arg1);
|
||||
|
||||
@ -1276,7 +1282,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_pre_answer) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
zval **args[1];
|
||||
|
||||
SWIG_ResetError();
|
||||
@ -1285,10 +1291,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_pre_answer) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_pre_answer. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
fs_channel_pre_answer(arg1);
|
||||
|
||||
@ -1299,7 +1305,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_hangup) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
zval **args[2];
|
||||
|
||||
@ -1309,10 +1315,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_hangup) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_hangup. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1329,7 +1335,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_set_variable) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
zval **args[3];
|
||||
@ -1340,10 +1346,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_set_variable) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_set_variable. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1366,7 +1372,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_get_variable) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
zval **args[2];
|
||||
|
||||
@ -1376,10 +1382,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_get_variable) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_get_variable. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1396,7 +1402,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_channel_set_state) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
zval **args[2];
|
||||
|
||||
@ -1406,10 +1412,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_channel_set_state) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_channel_set_state. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1426,7 +1432,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_ivr_play_file) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
switch_input_callback_function_t arg4 ;
|
||||
@ -1442,10 +1448,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_ivr_play_file) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_ivr_play_file. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1490,7 +1496,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_record_file) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
switch_file_handle_t *arg2 = (switch_file_handle_t *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
switch_input_callback_function_t arg4 ;
|
||||
@ -1506,10 +1512,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_record_file) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_record_file. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
@ -1554,7 +1560,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_sleep) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
uint32_t arg2 ;
|
||||
int result;
|
||||
uint32_t *tmp2 ;
|
||||
@ -1566,10 +1572,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_sleep) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_sleep. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
if(SWIG_ConvertPtr(*args[1], (void **) &tmp2, SWIGTYPE_p_uint32_t, 0) < 0) {
|
||||
@ -1588,7 +1594,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_ivr_play_file2) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
int result;
|
||||
zval **args[2];
|
||||
@ -1599,10 +1605,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_ivr_play_file2) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_ivr_play_file2. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1621,7 +1627,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_collect_digits_callback) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
switch_input_callback_function_t arg2 ;
|
||||
void *arg3 = (void *) 0 ;
|
||||
unsigned int arg4 ;
|
||||
@ -1635,10 +1641,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_collect_digits_callback) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_collect_digits_callback. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
if(SWIG_ConvertPtr(*args[1], (void **) &tmp2, SWIGTYPE_p_switch_input_callback_function_t, 0) < 0) {
|
||||
@ -1671,7 +1677,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_collect_digits_count) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
unsigned int arg3 ;
|
||||
unsigned int arg4 ;
|
||||
@ -1687,10 +1693,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_collect_digits_count) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_collect_digits_count. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1739,7 +1745,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_originate) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
switch_core_session_t **arg2 = (switch_core_session_t **) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
uint32_t arg4 ;
|
||||
@ -1753,10 +1759,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_originate) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_originate. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
@ -1787,7 +1793,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_session_transfer) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
char *arg4 = (char *) 0 ;
|
||||
@ -1800,10 +1806,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_session_transfer) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_session_transfer. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1834,7 +1840,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_speak_text) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
char *arg4 = (char *) 0 ;
|
||||
@ -1854,10 +1860,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_speak_text) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_core_session_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_ivr_speak_text. Expected SWIGTYPE_p_switch_core_session_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1920,7 +1926,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_get_variable) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *result = 0 ;
|
||||
zval **args[2];
|
||||
@ -1931,10 +1937,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_get_variable) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_channel_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_channel_get_variable. Expected SWIGTYPE_p_switch_channel_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1957,7 +1963,7 @@ fail:
|
||||
|
||||
|
||||
ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_set_variable) {
|
||||
char *arg1 = (char *) 0 ;
|
||||
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
int result;
|
||||
@ -1969,10 +1975,10 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_set_variable) {
|
||||
}
|
||||
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
convert_to_string_ex(args[0]);
|
||||
arg1 = (char *) Z_STRVAL_PP(args[0]);
|
||||
/*@SWIG@*/;
|
||||
/* typemap(in) SWIGTYPE * */
|
||||
if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_switch_channel_t, 0) < 0) {
|
||||
SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of fs_switch_channel_set_variable. Expected SWIGTYPE_p_switch_channel_t");
|
||||
}
|
||||
}
|
||||
{
|
||||
/*@SWIG:CONVERT_STRING_IN@*/
|
||||
@ -1996,6 +2002,10 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
/* NEW Destructor style */
|
||||
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_switch_channel_t) {
|
||||
/* bah! No destructor for this simple type!! */
|
||||
}
|
||||
/* NEW Destructor style */
|
||||
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_switch_file_handle_t) {
|
||||
/* bah! No destructor for this simple type!! */
|
||||
@ -2250,6 +2260,8 @@ SWIG_PropagateClientData(void) {
|
||||
ZEND_INIT_MODULE_GLOBALS(freeswitch, freeswitch_init_globals, freeswitch_destroy_globals);
|
||||
|
||||
/* Register resource destructors for pointer types */
|
||||
le_swig__p_switch_channel_t=zend_register_list_destructors_ex(_wrap_destroy_p_switch_channel_t,NULL,(char *)(SWIGTYPE_p_switch_channel_t->name),module_number);
|
||||
SWIG_TypeClientData(SWIGTYPE_p_switch_channel_t,&le_swig__p_switch_channel_t);
|
||||
le_swig__p_switch_file_handle_t=zend_register_list_destructors_ex(_wrap_destroy_p_switch_file_handle_t,NULL,(char *)(SWIGTYPE_p_switch_file_handle_t->name),module_number);
|
||||
SWIG_TypeClientData(SWIGTYPE_p_switch_file_handle_t,&le_swig__p_switch_file_handle_t);
|
||||
le_swig__p_switch_core_session_t=zend_register_list_destructors_ex(_wrap_destroy_p_switch_core_session_t,NULL,(char *)(SWIGTYPE_p_switch_core_session_t->name),module_number);
|
||||
|
Loading…
x
Reference in New Issue
Block a user