mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
change api to return event on filter command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12488 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -3092,7 +3092,7 @@ XS(_wrap_ESLconnection_filter) {
|
||||
ESLconnection *arg1 = (ESLconnection *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
char *arg3 = (char *) 0 ;
|
||||
int result;
|
||||
ESLevent *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
@@ -3122,8 +3122,8 @@ XS(_wrap_ESLconnection_filter) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ESLconnection_filter" "', argument " "3"" of type '" "char const *""'");
|
||||
}
|
||||
arg3 = reinterpret_cast< char * >(buf3);
|
||||
result = (int)(arg1)->filter((char const *)arg2,(char const *)arg3);
|
||||
ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
|
||||
result = (ESLevent *)(arg1)->filter((char const *)arg2,(char const *)arg3);
|
||||
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ESLevent, 0 | SWIG_SHADOW); argvi++ ;
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
||||
|
@@ -26,7 +26,17 @@ for(;;) {
|
||||
|
||||
printf "Connected call %s, from %s\n", $uuid, $info->getHeader("caller-caller-id-number");
|
||||
|
||||
$con->sendRecv("myevents");
|
||||
$e = $con->filter("unique-id", $uuid);
|
||||
if ($e) {
|
||||
print $e->serialize();
|
||||
} else {
|
||||
printf("WTF?\n");
|
||||
}
|
||||
|
||||
$con->events("plain", "all");
|
||||
|
||||
|
||||
#$con->sendRecv("myevents");
|
||||
$con->execute("answer");
|
||||
$con->execute("playback", "/ram/swimp.raw");
|
||||
|
||||
|
Reference in New Issue
Block a user