Displaying 20 results from an estimated 400 matches similar to: "agi get_data noanswer"
2013 Oct 23
2
performance on document.get_data()
I got some performance issue for document.get_data() and
enquire.get_mset(). It costs 35 seconds for matches =
enquire.get_mset(0,200), and 3 seconds for iterating all doc in matches to
get_data. Is't normal? My index contains 30millions documents. I use python
binding to operate xapian. Bellow it's my index structure
# value: 0:date, 1:site
# data: json message which contains: author,
2005 Oct 05
1
Caching DTMF tones for get_data AGI?
I'm using get_data in an AGI script and am having a problem when, after
a long time in my IVR, when I ask for a 10-digit phone number, the first
few tries are always invalid -- the number it reads back is very
strange, almost like the DTMF tones from other answers were being cached
and then dumped on the call to get_data.
Anyone ever experienced this before? I have to do some major
2009 Sep 30
2
C++ parser for doc.get_data() result.
Xapians!
Did anybody wrote and would like to share a routines that parse result
from doc.get_data() into some key and pair values in C++ ?
Code:
Xapian::Document doc = i.get_document();
string data = doc.get_data();
mymap = parse_result(data);
As you know the data string contain all the data within the document
delimited by "=" sign and "\n" new line and needs to be parse
2012 Feb 17
2
DatabaseModifiedError on get_data - best practice?
Hi,
I have previously had a problem with getting this error on a get_mset
call, and solved it by subclassing XapianEnquire with a
backoff-and-retry algorithm (as suggested by this list, many thanks!).
However, I now get it intermittently when calling get_data on a
XapianDocument. The same solution doesn't seem to be quite as easy in
this case, because:
1. The document is not instantiated
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
I have the following situation: I drop a call-file into 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 =
2009 Mar 01
1
php agi and get_data errors.
Hallo,
I'm using a self-made script to get the code a user enters on my applications.
Sadly, the code doesn't work, i push the digits, but the result is
always an empty data.
(code=200, result=1, data= '').
Here is the code:
set_time_limit(99999999999999);
require('phpagi.php');
$agi = new AGI();
$agi->answer();
function printdebug($a) {
global $agi;
2008 Jan 08
0
get_data
I am calling get_data from an agi script using Asterisk::AGI like so:
$AGI->get_data('enter-conf-pin-number');
..and I am expecting to hear the file play back when I call. I do not.
My log entry looks like this:
-- Launched AGI Script /var/lib/asterisk/agi-bin/pbx_dev.agi
pbx_dev.agi: CALLERID IS: XXXXXXXXXX
-- <SIP/#-089e50f0> Playing 'enter-conf-pin-number'
2008 Jul 23
3
Trouble Playing message file via Perl AGI
Hi all,
I'm trying to build an IVR using the Perl AGI module at
http://search.cpan.org/~jamesgol/asterisk-perl-0.10/lib/Asterisk/AGI.pm
But, I'm having trouble getting my program to play 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");
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 =
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
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
2004 Oct 05
5
Asterisk Perl AGI
Hello everybody:
This could be a stupid question, or may be not; I'm not sure 'cause I have not a very wide experience working with Asterisk, actually I just started last week. I need to make an IVR system work and I choose working with AGIs, written in Perl.
The available documentation I've found show it as a very simple proccess, but it doesn't work for me... and I
2004 Jan 20
3
Enter Pin followed by Pound key
Im trying to create a custom 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
2014 Sep 23
2
read digits from the user through php agi script
hi everyone,
actually i want to release an IVR system using PHPAGI API , in this IVR i
want to get value from the user.
I already used get_data defined in phpagi but they are not able to get the
value given by the user and store it in a php variable.
i tested this :
$result = $agi->get_data('beep', 3000, 20);
$keys = $result['result'];
but every time i found in $keys variable
2012 Jul 20
2
Lookup another node's hiera data - fqdn hierarchy
I''ve begun using Hiera in combination with Foreman, primarily storing data
that is best left in Array/Hash form. I''d like to be able to have a
module, in this case BackupPC, query all the Hiera data for each node where
the backup directories/databases are stored. Then use all that information
on the BackupPC server to generate proper configuration files for each
2013 Jun 09
2
Minitest mock or stub methods
Hi
I''m building a small library to use in my Rails app which interacts with a
3rd party API. It fetches artists and tracks.
So I have:
lib/my_lib.rb
lib/my_lib/artist.rb
lib/my_lib/track.rb
To get an artist I do
artist = MyLib::Artist.find("Oasis")
Which returns an instance of Artist if it finds (via 3rd party API) it or
nil otherwise.
Then I can call artist.tracks which
2006 Mar 23
3
Returning CSV data to the client
Hi,
One of my apps has to export data for the backend system to process it.
What''s the best way to create a CSV file in Rails and then return it as
a file to the client? i.e when they go to the link /csv/get_data it
would return a csv file.
I''ve been messing with the CSV library and I can get it to write out to
a file, but not sure how to best use this in a web app.
Hope
2007 Feb 09
1
Fetching document content by Q term in Python
Hello,
I'd like to be able to retrieve the indexes stored copy of the document
text and tried the following:
terms = self.db.allterms()
terms.skip_to('Q' + uri.encode('utf-8'))
term = terms.next()
doc = self.db.get_document(term[1])
print doc.get_data()
I just wildly guessed that [1] was the docid, but of course it isn't. So the
question is, how do I
2006 Sep 01
11
mongrel thread safety and global variables
In environment.rb file, I initialize a connection to some data vending
servers, through TCP sockets.
The connection object is global and hence the code:
#environment.rb
$generic_connection = ConnectionClass.instance (singleton class)
$generic_connection.connect_me( this call will make the connection)
The above approach is to make sure that, only one connection is made to the
data vending
2004 Aug 06
2
PATCH: Faststart Try 3 (QUESTION)
On Tuesday 21 January 2003 10:38, Michael Smith shaped the electrons to
shout:
> This is much improved. There are a few things to clean up (comments,
> for instance, since we're not targetting C99), plus actually writing
> the generic implementation for get_predata() (which at the moment only
> mp3 will use), but the design looks fine. I'm unlikely to have time to
Hope you