[Asterisk-Users] dtmf recording record and playback

Nicolas Gudino nicolas at house.com.ar
Thu Feb 19 09:46:21 MST 2004


You can use AGI, the example below uses asterisk-perl:

---
#!/usr/bin/perl -w

use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();

$AGI->setcallback(\&mycallback);

$number = $AGI->get_data("input-number", "10000", "8");
$AGI->say_number($number);

exit 0;

sub mycallback {
        my ($returncode) = @_;
        print STDERR "MYCALLBACK: User Hungup ($returncode)\n";
        exit($returncode);
}


----- Original Message ----- 
From: Ed Devine
To: asterisk-users at lists.digium.com
Sent: Thursday, February 19, 2004 1:54 PM
Subject: [Asterisk-Users] dtmf recording record and playback


I want to be able to record dtmf digits and then play them back as a voice
file (i.e. your enter your telephone number into a file, and asterisk reads
it back later as a voice file).

The application is similar to voicemail applications, but would need to be
able to parse the digits (i.e. 33 would be parsed as "thrity three", rather
than "three, three", etc...).

Has anyone got an idea how this could be implemented.




More information about the asterisk-users mailing list