search for: endpo

Displaying 20 results from an estimated 36 matches for "endpo".

Did you mean: endp
2011 Jan 25
1
Learn Vectorization (Vectorize)
...ul if you can help me find the equivalent of this code using Vectorize (or any other R thinking) My code takes as input a n*m matrix and prints the x,y coordinates where a cells starts and ends. remap <- function (sr){ # Input this funcion takes as arguments # sr: map startpos<- -1 # endpos<- +1 # stepx<- (endpos - (startpos)) / nrow(sr) stepy<- (endpos - (startpos)) / ncol(sr) for (i in seq(from=-1,to=1,by=stepx) ) { for (j in seq(from=-1,to=1,by=stepx) ){ cat(' \n',i,j) } } } sr<-matrix(data=seq(from=1,to=9),nrow=3,ncol=3,byrow=TRUE...
2005 Oct 06
1
Fwd: ASTCC - INUSE Flag
...Tx >> agi_extension: XXXXXXXXX AGI Tx >> agi_priority: 1 AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: XXXXXXXXXXX AGI Tx >> > AGI Rx << ANSWER AGI Tx >> 200 result=0 AGI Rx << STREAM FILE astcc-tone 0123456789 AGI Tx >> 200 result=0 endpos=11200 AGI Rx << STREAM FILE astcc-youhave 0123456789 AGI Tx >> 200 result=0 endpos=9920 AGI Rx << SAY NUMBER 6 0123456789 -- Playing 'digits/6' (language 'br') AGI Tx >> 200 result=0 AGI Rx << STREAM FILE astcc-dollars 0123456789 AGI Tx >> 200...
2005 Sep 28
3
ASTCC - INUSE Flag
I download and installed ASTCC over the weekend and I am having an issue where the INUSE flag will not get set back to 0 if the user drops a call while the balance is being played. All other times it seems to reset the flag correctly. I have tried both AGI and DeadAGI with the same results. Those of you using it for a while, how did you get around this? Just for fun this is all I am doing in
2003 Mar 09
0
ogg123 --end 1:59 patch.ogg
...f:hl:k:K:o:p:qvVx:y:z@:", long_options, &option_index))) { switch (ret) { @@ -137,7 +149,11 @@ break; case 'k': - ogg123_opts->seekpos = atof(optarg); + ogg123_opts->seekpos = strtotime(optarg); + break; + + case 'K': + ogg123_opts->endpos = strtotime(optarg); break; case 'l': @@ -279,6 +295,7 @@ _(" -f, --file=filename Set the output filename for a previously\n" " specified file device (with -d).\n" " -k n, --skip n Skip the first 'n' seconds\n" + " -...
2003 Dec 18
11
Sphinx
...i_context' is 'default' Environment: 'agi_extension' is '911' Environment: 'agi_priority' is '2' Environment: 'agi_enhanced' is '1.0' Environment: 'agi_accountcode' is '' Ooh, got a response from Asterisk: '200 result=0 endpos=46560' 1. Result is '200 result=0 endpos=46560' Ooh, got a response from Asterisk: '200 result=0 endpos=30720' 2. Result is '200 result=0 endpos=30720' -- Playing 'digits/20' (language 'en') -- Playing 'digits/3' (language 'en')...
2003 Dec 17
0
issue recording files in wav49 from AGI
Following is a log from an attempt to record and playback a file in wav49 format from an AGI script. COMMAND: stream file aa/after_the_tone "" 0 RESULT_LINE: 200 result=0 endpos=41920 RESULT_DICT: {'result': ('0', ''), 'endpos': ('41920', '')} COMMAND: record file /activity_alerts/wavs/123456_1_1_0.745781945801 wav49 "#" 20000 0 beep -- Playing 'beep' (language 'en') RESULT_LINE: 200 result=35 (dt...
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?
...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;2> Playing '/home/DefaultPrompts/en_GB/female/wx/low.alaw' (escape_digits=0) (sample_offset 0) (language 'en_GB') <L...
2007 Sep 14
2
AGI script fails on IAX channels (from call file).
...callingtns: 0 AGI Tx >> agi_dnid: unknown AGI Tx >> agi_rdnis: unknown AGI Tx >> agi_context: internal AGI Tx >> agi_extension: *66 AGI Tx >> agi_priority: 2 AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: AGI Tx >> AGI Tx >> 200 result=0 endpos=7680 AGI Rx << SAY DIGITS 670507 "0123456789" -- <IAX2/3455-2> Playing 'digits/6' (language 'en') -- <IAX2/3455-2> Playing 'digits/7' (language 'en') Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 006 Type: IAX Subclass: PING T...
2017 Oct 19
3
speech-recog.agi
I want to try using google for speech recognition in Asterisk and I found a ready made AGI: http://zaf.github.io/asterisk-speech-recog/ I have followed all the steps listed in the web site but I keep getting this error: <PJSIP/2001-0000006e>AGI Tx >> 200 result=99981 (timeout) endpos=22720 <PJSIP/2001-0000006e>AGI Rx << VERBOSE "Unable to get recognition data." 3 I made sure all the dependencies are met and that my API key for Google Cloud Speech is correct (cut and paste). Any pointers to get this to work or any other quick waysto start using Go...
2019 Jun 07
4
Find out which key ended recording?
Hi Steve, What language is that please? We're using Perl and so far I haven't found an equivalent there. Thanks for your help. On Fri, 7 Jun 2019 at 12:10, Steve Edwards <asterisk.org at sedwards.com> wrote: > On Fri, 7 Jun 2019, David Cunningham wrote: > > > We have a need to record audio and allow the user to press any DTMF key > > to end the recording.
2012 Feb 25
0
No IVR audio. Jump in RTP sequence number
...ge) "en" <SIP/STARMG1-000003c0>AGI Tx >> 200 result=1 <SIP/STARMG1-000003c0>AGI Rx << STREAM FILE prepaid-you-have "#" 0 -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) <SIP/STARMG1-000003c0>AGI Tx >> 200 result=0 endpos=9440 <SIP/STARMG1-000003c0>AGI Rx << SAY NUMBER 52 "" -- <SIP/STARMG1-000003c0> Playing 'digits/50.gsm' (language 'en') -- <SIP/STARMG1-000003c0> Playing 'digits/2.gsm' (language 'en') <SIP/STARMG1-000003c0>AGI Tx >...
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello, I work at SmarctJog.com, we have here some patches on IceCast for performance and reliability, these are mostly client/connection/source cleanups (a slave merge is underway, and some more good stuff (c)), but we'd like this to be merged in before the list gets any longer. Please find attached a list of our patches with a short desc: This one is actually not from us/me, it was found
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, 1) exited non-zero on 'Zap/31-1' RESULT_DICT: {'result': ('-1', ''), 'endpos': ('28000', '')} Traceback (most recent call last): File "/var/lib/as...
2005 Jan 19
0
AGI crash on 1.0.2 on Wait ...
..., I found the following: AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: AGI Tx >> AGI Rx << STREAM FILE beep "" Jan 20 07:32:30 WARNING[-169026640]: Wait failed (No such file or directory) Jan 20 07:32:30 VERBOSE[-169026640]: AGI Tx >> 200 result=-1 endpos=2880 Jan 20 07:32:30 VERBOSE[-169026640]: AGI Tx >> 200 result=-1 endpos=2880 == Spawn extension (voip-test, 1444, 1) exited non-zero on 'IAX2/andy@192.168.0.1:4569/2' What could be causing this? The hangup only happen sometimes, and I still cannot catch the patten. Pleas help...
2008 Oct 17
0
GET DATA Returning only a single digit
...oing AGI Tx >> agi_extension: 111 AGI Tx >> agi_priority: 1 AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: 1 AGI Tx >> AGI Rx << STREAM FILE tt-monkeys 1 -- Playing 'tt-monkeys' (escape_digits=1) (sample_offset 0) AGI Tx >> 200 result=49 endpos=31680 DIGIT PRESSED: 200 result=49 endpos=31680 AGI Rx << GET DATA tt-monkeys 10 4 -- <SIP/jane-09386dd0> Playing 'tt-monkeys' (language 'en') AGI Tx >> 200 result=-1 == Spawn extension (outgoing, 111, 1) exited non-zero on 'SIP/jane-09386dd0' [Oct...
2010 Dec 07
1
'Bookmarking' a place in a sound file
Hi all, Is it possible to somehow 'bookmark' a place in a sound file? That is, the user presses a key while a sound file is playing and that point is saved, and some time in the future we can play the same sound file and tell it to start playing from that point. This would be done within a perl AGI program. Thanks for any advice! -- David Cunningham, Voisonics http://voisonics.com/ US
2009 May 04
3
AGI PHP
...rect variable and then email it all. I have no issue playing the audio or emailing. But I can't get it to wait for digits or to properly capture those digits into the variables. I know the code is technically right since the emails have this in place of what Q1 should be "200 result=35 endpos=2400" instead of whatever digit I pressed during testing. Anyway my questions are A. How to have it play the whole audio file before it goes to the next command, without having to use the sleep function preferably. B. How to make it actually wait for digits C. How to...
2007 Jul 30
1
MeetMe through DeadAGI has changed to return -1 on Hangup
...K_FILE_VERSION(__FILE__, "$Revision: 71656 $") --- > ASTERISK_FILE_VERSION(__FILE__, "$Revision: 54771 $") 572c572,579 < ast_playstream(fs); --- > res = ast_playstream(fs); > if (res) { > fdprintf(agi->fd, "200 result=%d endpos=%ld\n", res, sample_offset); > if (res >= 0) > return RESULT_SHOWUSAGE; > else > return RESULT_FAILURE; > } 625c632,639 < ast_playstream(fs); --- > res = ast_playstream...
2009 Nov 26
0
AGI and Music on hold
...: SET MUSIC OFF Nov 26 02:43:19 hades pq.agi[28725]: JAGI.c:191: AGI response: 200 result=0 Nov 26 02:43:19 hades pq.agi[28725]: JAGI.c:161: AGI command(timeout=100000000) : STREAM FILE pq_thanks-for-holding "" Nov 26 02:43:29 hades pq.agi[28725]: JAGI.c:191: AGI response: 200 result=0 endpos=80160 Nov 26 02:43:29 hades pq.agi[28725]: JAGI.c:161: AGI command(timeout=100000000) : STREAM FILE pq_you-are-currently-caller-number "" Nov 26 02:43:33 hades pq.agi[28725]: JAGI.c:191: AGI response: 200 result=0 endpos=29440 Nov 26 02:43:33 hades pq.agi[28725]: JAGI.c:161: AGI comman...
2012 Oct 03
3
2.4-beta fixes for MinGW
...-------- --- icecast-2.3.99.0/src/fserve.c.orig 2012-10-02 14:52:41 +0400 +++ icecast-2.3.99.0/src/fserve.c 2012-10-02 15:31:11 +0400 @@ -560,6 +560,7 @@ time_t now; int strflen; struct tm result; + struct tm *gmtime_result; off_t endpos = rangenumber+new_content_len-1; char *type; @@ -567,8 +568,18 @@ endpos = 0; } time(&now); +#if !defined(_WIN32) + gmtime_result = gmtime_r(&now, &result) +#else + /* gmtime() on W32 breaks POSIX and IS thread...