search for: stream_fil

Displaying 20 results from an estimated 28 matches for "stream_fil".

Did you mean: stream_file
2016 Oct 10
2
AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?
For reasons best known to myself, I call a python agi (PYST2 - love it!) which streams a series of very short files in quick succession. Like this: escape_digits = str("0") agi.stream_file(promptFile,escape_digits) and this is what I see on the AGI debug: <Local/s at root-00000061;2>AGI Tx >> 200 result=0 endpos=6784 <Local/s at root-00000061;2>AGI Rx << STREAM FILE /home/DefaultPrompts/en_GB/female/wx/low "0" 0 -- <Local/s at root-00000061...
2003 Dec 31
1
AGI - IVR - Time Clock
...in/perl use Asterisk::AGI; use DBI; $AGI = new 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...
2004 Jun 02
4
Splicing audio clips into one stream
Is there a Linux tool that will splice several gsm sound clips together into one clip? In my agi script, I would like to use 'get_data' with one clip instead of multiple 'stream_file' so the user doesn't have to listen to the entire spiel before responding. Thanks, -- Michael Welter Introspect Telephony Corp. Denver, Colorado +1 303 674 2575 mike@introspect.com www.introspect.com
2004 Jan 20
3
Enter Pin followed by Pound key
...tom application via the AGI. I want to authenticate the users that dial in with a userid and pin. However, the number of digits in the PIN and userid are variable, and therefore I need to allow the user to "press enter" by hitting the pound key. How would I accomplish this in the AGI? stream_file doesnt seem to work, since it only allows one digit to be pressed. get_data seems to only allow a fixed number of digits to be entered. Thanks Gary Franczyk
2003 Nov 27
1
AGI (IF/ELSE)
I need some help with some statements..... #!/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->g...
2007 Aug 28
1
deadagi and billsec or answeredtime
...n you help me to solve this problem... My extension.conf: exten => _123,1,DeadAgi(rate.php) exten => _123,2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI(); $AGI->answer(); $AGI->stream_file('demo-thanks'); $AGI->stream_file('vm-goodbye'); $AGI->hangup(); $billsec = get_var($AGI,"CDR(billsec)"); debug("Billsec: $billsec", 1); function debug($string, $level=3) { global $AGI; $AGI->verbose($string, $level); } function get_var( $ag...
2006 May 11
10
MeetME Conferencing
Can anyone point me to a sample or information on using MeetMe like this? Conference room is set up with 2 PINs, one for the moderator and one for the participants. Participants get music until the moderator joins (to avoid wild, un-moderated tangents). Call is ended and all participants are kicked out when the moderator leaves (or the moderator can kick everyone out via phone keypad).
2004 Apr 18
0
AGI Module
Hey all, I'm sorry to bother you with something so trivial, but I seem to be having an issue with the Asterisk::AGI module. I am a relative newbie with Perl so it could be a stupid syntax mistake that I missed. It seems when I try to execute either the stream_file or the get_data subs nothing is actually done. It doesn't seem to stream the files, but on the console it says it played the file. If you need more information please let me know and I will get it to you ASAP. Here are my source and exentsions.conf: Extensions.conf --------------- ; Test a...
2004 Sep 17
1
AGI Python Clear or Channel Failure?
Hi All, When I call the stream_file function all goes well if the user doesn't clear the call. But if I do clear the call (on the handset for example), I get the following exception: -- Channel 0/31, span 1 got hangup RESULT_LINE: 200 result=-1 endpos=28000 == Spawn extension (default, 600006,...
2008 Jul 23
3
Trouble Playing message file via Perl AGI
...a message and wait for a keystroke. I am able to use this code to play the file, so I know that the $msg variable points to a valid sound file: $result = $agi->exec("background $msg"); But of course, this doesn't allow me to capture any keypresses. So I tried this: $agi->stream_file($msg, "0123456789", 0); The console indicates that it's playing the message, but it then skips to the next AGI instruction and nothing gets played. Then I tried to use the get_data() method. It turns out that I had to put two of them in my code, but then the timeout doesn't...
2010 Jun 15
4
can't seem to register, status unmonitored
Hi everybody, I am trying to register my softphone(twinkle) on an asterisk server. Everything seems to be fine. Here is the output on show registrations in twinkle: Tue 18:57:51 nikhil: you have the following registrations <sip:2001 at 172.26.48.208 <sip%3A2001 at 172.26.48.208>>;expires=3013 208 is ip of the asterisk server. on the server on doing 'sip show peers' , it
2004 Jan 22
1
Variable to play all gsm files in a directory?
Is there a variable that can be used with the playback command to play all gsm sound files in a directory? For example like '*.*' <- which I know doesn't work. Is the only solution for this to create an AGI script and use the stream_file command ? Thanks, J.C.
2007 Jul 23
0
Problem w/ MySQL update from perl AGI script
...e;localhost;3306"; $dbh = DBI->connect($dsn,username,password); $drh = DBI->install_driver("mysql"); $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $ANI = $input{'CALLERIDNUM'}; my $TIMESTAMP = $input{'TIMESTAMP'}; $AGI->answer(); $AGI->stream_file('ABdeli-greeting'); $AGI->stream_file('ABdeli-instructions'); my $Q1 = $AGI->get_data('ABdeli-q1', 5000, 1); my $Q2 = $AGI->get_data('ABdeli-q2', 5000, 1); my $Q3 = $AGI->get_data('ABdeli-q3', 5000, 1); my $Q4 = $AGI->get_data('ABdeli-q4...
2005 May 16
2
callback problem
hello i am trying to make a callback solution. client will call callback number and call is terminated. now callback server will create a call for that client. actually i have a problem in this process. that server is creating call to client (UA) when previous call is not disconnected yet. UA---------->Asterisk(callbacknumber) callis answered UA<----------Asterisk(callbackserver) call is
2010 Jan 11
1
MeetMe Conferencing - Announce your own join/leave to yourself and other conference members
...ers FROM <sanitized> WHERE confno = '".$v{conf}."'"; $AGI->verbose($v{q}); $v{q} = $v{dbh}->prepare($v{q}); if (!$v{q}->execute) { exit; } $v{r} = $v{q}->fetchrow_hashref(); $v{q}->finish(); $v{dbh}->disconnect; if ($v{r}{members} > 1) { $AGI->stream_file("/var/spool/asterisk/meetme/meetme-username-".$v{conf}."-".$v{r}{members}); } while (!$v{loop}) { exit if (!$AGI->channel_status($v{chan})); $v{rc} = $AGI->wait_for_digit('60000'); } exit;
2005 Jun 22
1
A Simple * Answering Machine w/ Caller Screening like the olden days
...to stop playing). Doing some more Googling and reading reams of posts to this maillist I'm starting to wonder if maybe the "Meetme" command might help here? I'm just not sure how deal with Asterisk's answering machine part. Or maybe I shouldn't use it at all and just use stream_file? So this is where I'm at. Hoping someone out there has either implemented this or could give me enough info so I can implement it. TIA, Rick
2003 Oct 29
1
AGI question or something
Sorry for asking this question again but before I blow 100 dollars on a X100P I need to know this info: So does "SET EXTENSION <new extension>" allow for you to set which extension the rest of the call will occur over? So if a call comes into the switch and I could make the AGI script check the DID or DNIS which is really in the variable agi_dnid? After that I can do a database
2005 Jan 27
1
Hold music while ControlPlayback is paused?
Hi. I've been using the ControlPlayback function as part of an IVR system, but am finding it very restrictive. Is there any way to tell it to play hold music while the user has pause selected? I don't want the line to just go silent indefinitely. If I want the caller to have a pause option, is there some alternative to using ControlPlayback? I think I've got the hang of doing fancy
2006 Mar 14
1
Directory doesn't work well Asterisk@home2.7- try from PSTN with Digital recepcionist- Directory based on Last name
...asterisk sound directory! Also i have a doubt on Directory agi script, I found this: .... else if (!empty($digits) || ($digits === "0")) { // strict type checking as they may have entered "0" (string) which is empty() $agi->stream_file("dir-nomatch"); } // else, we timed out Probably it's because i'm newbie, but is it correct 3 equals? ($digits === "0")) ????? Best regards, Marco Mouta
2007 May 16
0
AGI "record_file" issue... bug?
...at does the following: $AGI->exec('AGI',"festival.pl|\"Say Message.\""); $AGI->record_file('/tmp/test_audio','wav','#',5*1000); $AGI->exec('AGI',"festival.pl|\"O k\""); $AGI->stream_file('/tmp/test_audio','#'); $AGI->exec('AGI',"festival.pl|\"Done.\""); And it is called like this: [incoming] exten => _XX.,1,Set(__ORIG_EXTEN=${EXTEN}) exten => _XX.,n,Goto(RealEstate,s,1) [RealEstate] exten => s,1,Set(TIMEOUT(digi...