search for: say_digit

Displaying 15 results from an estimated 15 matches for "say_digit".

Did you mean: say_digits
2003 Nov 27
1
AGI (IF/ELSE)
...ts..... #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $callerid = $input{'callerid'}; if ($optemp != 1) { my $empid = $AGI->get_data('employee',-1,5); $AGI->stream_file(entered); $AGI->say_digits($empid); my $optemp = $AGI->get_data('correct',-1,1); }else{ my $strid = $AGI->get_data('store',-1,5); $AGI->stream_file(entered); $AGI->say_digits($strid); my $optstr = $AGI->get_data('correct',-1,1); } exit; I c...
2003 Dec 31
1
AGI - IVR - Time Clock
...w Asterisk::AGI; my %input = $AGI->ReadParse(); my $callerid = $input{'callerid'}; ############# Time Clock Questions ################ my $empid = $AGI->get_data('employee',-1,5); # Asks for Employee ID $AGI->stream_file(entered); $AGI->say_digits($empid); my $optemp = $AGI->get_data('correct',-1,1); # Asks if what was entered is correct otherwise ask question again if ($optemp != 1) { employeeid (); } my $strid = $AGI->get_data('store',-1,5); # Asks for Store ID $AGI->stream_f...
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
...the Asterisk spool directory and I get called back. That all works. And I have this script: #!/usr/bin/perl -w use Asterisk::AGI; my $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); my $i; $i = $AGI->channel_status(); $AGI->say_digits($i); $i = $AGI->get_data("one-moment-please", 10000, 3); $AGI->say_digits($i); As you can see, nothing serious. When running this script in a normal telephone call, it works. When running this script in the call created with the call-file, I do hear the output of the fir...
2004 Jul 01
2
DISA and AGI: authenticate by caller ID?
...= "dpasswd"; $connectionInfo = "DBI:mysql:database=$db;$host:$port"; $dbh = DBI->connect($connectionInfo,$userid,$password); $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); if (my $callerid = $input{'callerid'}) { $AGI->say_digits($callerid); $query = "SELECT active FROM cids WHERE cid=$callerid"; # active should be 1 if the caller ID is found and set active $sth = $dbh->prepare($query); $sth->execute(); $sth->bind_columns(undef, \$active); $sth->fetch...
2003 Nov 26
3
AGI - CallerID ??
...ript> use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); print STDERR "AGI Environment Dump:\n"; foreach $i (sort keys %input) { print STDERR " -- $i = $input{$i}\n"; } if (my $callerid = $input{'callerid'}) { $AGI->say_digits($callerid); } exit; </script> <results> == CDR updated on Zap/1-1 -- Executing Answer("Zap/1-1", "") in new stack -- Executing AGI("Zap/1-1", "agi-test2.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-te...
2004 Jun 10
4
How to get the Called id with AGI
...there a way to get the "called id" (the B number) with AGI perl ? I know how to get the caller id which is working fine and is just below: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $callerid = $input{'callerid'}; $AGI->say_digits($callerid); } Thanks in advance, Angel. --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040610/c31...
2003 Apr 11
1
Weird AGI/X100P behavior
...ss I use one of the sample AGI scripts that come with *. My hanguptest.agi file is pretty simple: #!/usr/bin/perl use Asterisk::AGI; $|=1; $AGI = new Asterisk::AGI; %input = $AGI->ReadParse(); $AGI->answer(); $foo = $AGI->wait_for_digit(); print STDERR "Foo: $foo\n"; $AGI->say_digits('$foo'); $AGI->hangup; Am I missing something basic about AGI?
2007 Sep 14
2
AGI script fails on IAX channels (from call file).
...# # # #################################### sub hangup { if ($DEBUG == 1 ) { print DEBUGOUT "Hanging up \n"; } print "HANGUP \"\" \n"; my $result = <STDIN>; &checkresult($result); } ############ say_digits ############ # Use this to say a digits # # over the channel # # # #################################### sub say_digits { my ($mynumber) = @_; chomp($mynumber); if ($DEBUG == 1 ) { print DEBUGOUT "Saying digits $mynum...
2006 Feb 24
2
ParkAndAnnounce2 Feature Request
...t we're all talking the same language: || ParkAndAnnounce(announce:template|timeout|dial|return_context) || || Park a call into the parkinglot and announce the call over an extension. || || announce template: colon seperated list of files to announce, the word || PARKED will be replaced by a say_digits of the ext the call is parked in || timeout: time in seconds before the call returns into the return context. || dial: The app_dial style resource to call to make the announcement. || Console/dsp calls the console. || return_context: the goto style label to jump the call back into after timeou...
2003 Apr 15
1
dialed number notify at invalid dial situation
Hi all Now I'm making IVR sequance that is customised [mainmanu]. I wish to notify invaid command like a following exten => i,1,playback('your command is ...') exten => i,2,playback(${EXTEN}) ; <---- Say 'i' oops! ;-( exten => i,3,playback(' is incorrect! please again ') # This exten lines are figure for instruction. # I know to use with gsm filename.
2005 Jun 19
0
Problem with astperl primitives say... in astcc
I just upgraded to the latest (as of a week ago) CVS and since them, I've had a problem with astcc. I've traced the problem as far as astcc calling any of the AGI "say..." routines (say_digits, say_number, etc.). As near as I can tell, the calls are executed, but control never returns to the astcc code that made the call, and as a result, the channel simply hangs (i.e., nothing else happens) and astcc never returns to the dialplan. Has anyone else experienced this or anything like it?...
2008 Jan 30
1
Parking lot
Is there any way to have Asterisk call an extension in dial plan instead of original extension after timeout? Like extension A puts the caller in parking lot, he leaves the phone and forgets about it, instead of having that phone rings after timeout, have a group of phones rings. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Feb 03
2
Contact lookup
Hi All, Asterisk 1.4.12 on CentOS 5 I'd like to be able to look up each incoming CLI to retrieve an associated name, if available, and then pass that to the extensions so that they can see both the name and number of the caller. I'm not after LDAP or anything else maintained externally, just a contact lookup for my system. I suspect that Astdb could be used for this, as could a
2004 Apr 28
5
Asterisk goes international :-)
During the recent week, we've worked hard to add more of the contributed international support to Asterisk. A big step was taken yesterday when Mark added international support for saynumber() to CVS. We now have a first version of support for * Danish * German * English * Swedish * Norwegian * Portuguese * Italian * French All of these require that you add your own sound files. There are
2012 Oct 02
2
Questions on converting to ConfBridge
I'm looking at what would be involved in converting from MeetMe to ConfBridge and there seems to be a lot of missing administrative things, but I hope I'm just missing it. We all know about the missing realtime linkage. That's a major nuisance, but can be worked around. More serious is that the CLI command to display users in a ConfBridge don't show the caller ID information, so