ok so php works but it should be way better than this

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2567 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2006-09-08 03:09:26 +00:00
1 parent c15e856106
commit 0a0c41f0ec
8 files changed
+855 -1594

No files matched your search

+20 -3
View File
@@ -6,8 +6,8 @@
#ifdef _MSC_VER
#include <perlibs.h>
#pragma comment(lib, PERL_LIB)
#include <php.h>
#pragma comment(lib, PHP_LIB)
#endif
void fs_core_set_globals(void)
@@ -67,7 +67,13 @@ void fs_console_clean(char *msg)
switch_core_session_t *fs_core_session_locate(char *uuid)
{
return switch_core_session_locate(uuid);
switch_core_session_t *session;
if ((session = switch_core_session_locate(uuid))) {
switch_core_session_rwunlock(session);
}
return session;
}
void fs_channel_answer(switch_core_session_t *session)
@@ -126,3 +132,14 @@ int fs_ivr_play_file(switch_core_session_t *session,
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
}
int fs_ivr_play_file2(switch_core_session_t *session,
char *file)
{
switch_status_t status;
status = switch_ivr_play_file(session, NULL, file, NULL, NULL, NULL, 0);
return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
}