mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
fix MODAPP-85
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8084 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -36,6 +36,15 @@ while(my $r = $fs->readhash(undef)) {
|
||||
if ($r->{has_event}) {
|
||||
print Dumper $r->{event};
|
||||
}
|
||||
if ($r->{event}->{'event-name'} !~ /dtmf/i) {
|
||||
$o = $fs->call_command("park");
|
||||
|
||||
print "Got DTMF $r->{event}->{'dtmf-digit'}\n";
|
||||
push @digits, $r->{event}->{'dtmf-digit'};
|
||||
print "Dialed: " . join("", @digits) . "\n";
|
||||
next;
|
||||
}
|
||||
|
||||
if ($r->{event}->{'event-name'} !~ /execute/i) {
|
||||
printf "uuid: $data->{'unique-id'}\n";
|
||||
$o = $fs->call_command("break");
|
||||
|
Reference in New Issue
Block a user