similar to: DatabaseModifiedError on get_data - best practice?

Displaying 20 results from an estimated 600 matches similar to: "DatabaseModifiedError on get_data - best practice?"

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
2014 Aug 07
2
agi get_data noanswer
Hi Guys.. I am making an anoucement machine that is not allowed to "answer" the call due to a billing issue. I found that Playback with "noanwser" is usefull in this case. $AGI->exec('Playback',"$message","noanswer")} But when i request some values to the user with get_data, i think there is an answer anywere. Is there a way to get_data
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
2013 Feb 13
0
MCO caching Facts from Facter
Hi, We are trying to use a custom fact to tell us the version of our service in order to do hot deployment. The idea is that we poll mco for servers with this fact matching the new version until it returns that there are some, which is a signal we can move on to the next server. Unfortunately we''re bumping into the cache of facts mentioned in the server config here:
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 =
2008 Apr 20
1
Exception DatabaseCorruptError under php
Hello, I'm having a litle issue with Xapian-1.0.6 with php bindings under php5 when trying to add a new document it throws: Fatal error: Uncaught exception 'Exception' with message 'DatabaseCorruptError: Failed to unlink /var/lib/xapian/trade.ar/termlist.baseA: No such file or directory' in /usr/share/php5/xapian.php:1140 Stack trace: #0 /usr/share/php5/xapian.php(1140):
2007 Feb 09
1
PHP Binding and dbi2omega questions
Hi All, I've installed Xapian and the php module. I've set up a script for use with scriptindex and dbi2omega for getting data from the db into the index easily, the script file is as follows: =============================== id : field=id title : index title: field=title description : index description : truncate=50 field=content ============================= However, when querying
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'
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 =
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");
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:
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
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
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
2008 Jan 15
7
PHP indexing, what's the PHP method for indexscript
Currently I have the following indexscript: pid : unique=Q boolean=Q field=pid postdate : field=startdate author_name: unhtml boolean=XAUTHORNAME field=author author_id: boolean=XAUTHORID field=authorid url : field=url sample : weight=1 index field=sample How can I create the same indexing using PHP? With this, I can get an searchable index, but I have no idea how to set the fields, so that 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
2011 Apr 21
1
How to Retrieve content of the document?
Hi, I have just started using xapian and I may sound like a noob. I want to know how i can access the content of the document retrieved while searching. I have used the code found on this mailing list itself to index my database. #!/usr/bin/perl -w use strict; use Search::Xapian; use File::Find; my $DATABASE_DIR = '/home/rohit/Desktop/SET/DB'; my $db =