search for: get_data

Displaying 20 results from an estimated 95 matches for "get_data".

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:sit...
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...
2014 Aug 07
2
agi get_data noanswer
...g 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 without answering the call? Thanks in advance!! rv -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140807/7e8f12f0/attachment.html&gt...
2008 Jul 23
3
Trouble Playing message file via Perl AGI
...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 work and it doesn't capture any keypresses: $result = $agi->get_data($msg, 120000, 1); $result = $agi->get_data($msg, 120000, 1); Finally, I tried to use the get_option() method that was...
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 by my code, it's returned from the Iterator, so I can't easily subclass it without editing the bindings. 2. The document doesn't have a reference to...
2003 Dec 31
1
AGI - IVR - Time Clock
...ested a automated way of handling these request. AGI Script ------------ #!/usr/bin/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) {...
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...
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);...
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: X...
2009 Mar 01
1
php agi and get_data errors.
...agi.php'); $agi = new AGI(); $agi->answer(); function printdebug($a) { global $agi; $agi->conlog(print_r($a, true)); } // Prendo Badge $isokbadge = false; $tries = 1; do { $result = array(); $agi->exec('PLAYBACK',$audiofiles['insertbadge']); $result = $agi->get_data('beep', 60000, 13); printdebug($result); $badge = str_replace('*', '.', $result['result']); $agi->conlog("[$tries] Badge: $badge"); if (strlen($badge) != 13) { if (($tries++) >= 3){ $agi->exec('PLAYBACK',$audiofiles['maxrea...
2007 Jul 23
0
Problem w/ MySQL update from perl AGI script
...ql"); $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', 5000, 1); my $Q5 = $AGI->get_data('ABdeli-q5', 5000, 1); my $query = "INSERT into call...
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
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
...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 first say_digits and the one-moment-p...
2004 Oct 05
5
Asterisk Perl AGI
...ust start with my configuration in the extensions.conf file. This single line should describe it: exten => 771,1,AGI,myagi.agi Then, this is my code... #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); my $pin = $AGI->get_data("beep"); exit(0); Can somebody tell me why the number I enter after the "beep" is not then stored in $pin ? I'll really preciate any help. Thanks in advance V?ctor Cartes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digiu...
2004 Jan 20
3
Enter Pin followed by Pound key
...h 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
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 0. please any help or suggestions thank you...
2012 Jul 20
2
Lookup another node's hiera data - fqdn hierarchy
...'feel'' right to me by overriding the fqdn fact. /etc/puppet/modules/test $ cat manifests/hiera_lookup.pp class test::hiera_lookup { $nodes = foreman(''fact_values'', ''fact = fqdn'') if $nodes { create_resources(''test::hiera_lookup::get_data'', $nodes) } } define test::hiera_lookup::get_data ( $fqdn ) { $data = hiera("backuppc_db_dumps", false) if $data { notify { $data: } } } Is there a better approach to override scope and grab what data from hiera that would normally not be available to a node? Thanks...
2013 Jun 09
2
Minitest mock or stub methods
...or nil otherwise. Then I can call artist.tracks which fetches all available tracks at the 3rd party and returns them as an array. In my artist class I have a separate method that makes the actual API calls and parses the XML response with Nokogiri def self.find(name: nil) # Stuff... doc = get_data(some_url) # More stuff... end def get_data(req_url) Nokogiri::XML(open(req_url)) end When writing my tests I don''t want to hit the actual URL but instead load an XML file from disk. I''m using Minitest which has a mocking library, but how do I actually mock (or is it more...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...er:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>744</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>...
2011 Apr 21
1
How to Retrieve content of the document?
...get_description(); my @matches = $enq->matches(0, 10); print scalar(@matches) . " results found\n"; foreach my $match ( @matches ) { my $doc = $match->get_document(); printf "ID %d %d%% [ %s ] \n", $match->get_docid(), $match->get_percent(), $doc->get_data(); } This returns to me 8 documents which I know is the correct answer becuase I have made a search engine which gives me the same results. The problem is i only get the document numbers(ids) but not the content. the $doc->get_data(); is supposed to give me the content if i am not mistaken. I...