search for: endwhil

Displaying 20 results from an estimated 46 matches for "endwhil".

Did you mean: endwhile
2015 Nov 28
2
endwhile jumping out of macro
Hi I have a 3 level nested while-endwhile loop in a macro that when the execution reaches endwhile, it is jumping out to the While at the caller macro. It shouldn't since the are instructions after the endwhile. -- Executing [s at macro-call-from-outside:72] EndWhile("DAHDI/i1/1234567-4a7f", "") in new stack...
2005 Sep 05
1
Unexpected results with "While" and "EndWhile" applications
I seem to be having a conceptual problem with the "While" and "EndWhile" applications. It seems that on the first cycle, even if the result of the "While" is false that the enclosed applications will get run. Is this expected? It seems to be counter-intuitive, but I don't know what the intent of the While routines is. I could of course put a...
2015 Jun 07
2
[LLVMdev] Loop Unfolding in LLVM
Hello, I am looking for a loop unfolding procedure implemented in LLVM that helps to transform a while-loop to n-layer If-statements. The transformation should be on IR, although the example below is illustrated on the source level. original loop: * WHILE (condition) DO action ENDWHILE* Expected unfolded loop (2-layer): * IF (condition) THEN* * action* * IF (condition) THEN* * action* * WHILE (condition) DO action ENDWHILE * * ENDIF* * ENDIF* (I thought such trans...
2016 Apr 11
2
User controlled i/o block size?
...s with rsync, I'm only seeing 50% of the throughput I hope to see. I haven't looked at the code, or even run strace, but it seems like the code is doing something like: while (files) { read 1.5 GB file to ram write 1.5 GB file from ram fsync() ensure 1.5 GB file is on disk } endwhile I say that because I see several seconds of high-speed reading, then no reads. When the reads stop, I see writes kick in, then they stop and reads start up again. The end result is I'm only using 50% of the available bandwidth. Not that I'm copying my source folder tree to a newly crea...
2002 Mar 17
1
translate octave code to R
...will be useful for me. This code is my lectures in an undergraduate course of statistical computing. echo off; k=0; while (k<>1) n = input('a prime: '); D = 2; r = n - D * floor((n/D)); while((D <= sqrt(n) & (r <> 0))) D=D+1; r = n - D * floor((n/D)); endwhile; if ((n - D * floor((n/D))) <> 0) disp('? primo'); k=1; else disp('try again'); end; end; #start of pseudo-random numbers generation m = 2**35; a = (2**7)+3; c = a; x(1)=n;#seed u(1)=0; i=1; while (i<=500) x(i+1)=((a*x(i)+c) - (m*floor(((a*x(i)+c)/m...
2012 Jul 07
1
[LLVMdev] Problem in LLVM CMake modules
...lib}) # Find the maximum index that doesn't have to be re-processed: - while(NOT "${expanded_components}" MATCHES "^${processed}.*" ) + while(NOT "${expanded_components}" MATCHES "^${processed}(;)|(.*)") list(REMOVE_AT processed -1) endwhile() list(LENGTH processed cursor) However, using "all" as the component to be linked is still broken, as it passes to the linker -lLTO_static and -lprofile_rt-static, which are non-existant libraries on a static build. On the case of LTO_static the fix probably is diff --git a/too...
2009 Jul 03
0
e164.org and tollfree ENUM records
...;]?Dial(SIP/${uri:4},40,KL(7200000:120000)T):NoOp(ENUM URI is not of type SIP))}) exten => _X.,n,Exec(${IF($["${uri:0:4}" = "iax2"]?Dial(IAX2/${uri:5},40,KL(7200000:120000)T):NoOp(ENUM URI is not of type IAX2))}) exten => _X.,n,Set(i=${MATH(${i}+1,i)}) exten => _X.,n,EndWhile() The console results are as follows. Each of sip-happens, siptollfreegateway, and voipmich return either a 404 or 403 error. I'm wondering if their ENUM records are old and no longer represent how callers should reach their servers. == ast_get_enum(num='+18002662278', tech=...
2010 Jun 18
1
Automatic attendant - Error in CLI.
...501,1,Answer exten => 501,n,Wait(2) exten => 501,n,Playback(velkommen_abacus) exten => 501,n,Set(Loop=0) exten => 501,n,While($[${Loop} < 3]) exten => 501,n,Background(tast123vent_) exten => 501,n,WaitExten(5) exten => 501,n,Set(Loop=$[${Loop}+1]) exten => 501,n,(LoopEnd),EndWhile exten => 501,n,Hangup() exten => 1,1,Playback(tt-weasels) exten => 1,2,Dial(SIP/200,10,rg) exten => 1,3,Hangup() exten => 2,1,Playback(tt-monkeys) exten => 2,n,Dial(SIP/302,60,rg) exten => 2,n,Hangup() exten => 3,1,Dial(SIP/402,60,rg) exten => 3,n,Hangup exten => 9...
2016 Apr 11
5
User controlled i/o block size?
...he throughput I hope to see. >> >> I haven't looked at the code, or even run strace, but it seems >> like the code is doing something like: >> >> while (files) { read 1.5 GB file to ram write 1.5 GB file from >> ram fsync() ensure 1.5 GB file is on disk } endwhile >> >> I say that because I see several seconds of high-speed reading, >> then no reads. >> >> When the reads stop, I see writes kick in, then they stop and >> reads start up again. >> >> The end result is I'm only using 50% of the available ba...
2012 Aug 03
1
[LLVMdev] Problem in LLVM CMake modules
...have to be re-processed: > />/ - while(NOT "${expanded_components}" MATCHES "^${processed}.*" ) > />/ + while(NOT "${expanded_components}" MATCHES "^${processed}(;)|(.*)") > />/ list(REMOVE_AT processed -1) > />/ endwhile() > />/ list(LENGTH processed cursor) > / > The patch above doesn't make any sense. This looks more correct: > > --- a/cmake/modules/LLVM-Config.cmake > +++ b/cmake/modules/LLVM-Config.cmake > @@ -160,7 +160,7 @@ function(explicit_map_components_to_libraries out_l...
2016 Apr 11
0
User controlled i/o block size?
...e throughput I hope to see. > > I haven't looked at the code, or even run strace, but it seems like > the code is doing something like: > > while (files) { > read 1.5 GB file to ram > write 1.5 GB file from ram > fsync() ensure 1.5 GB file is on disk > } endwhile > > I say that because I see several seconds of high-speed reading, then no reads. > > When the reads stop, I see writes kick in, then they stop and reads > start up again. > > The end result is I'm only using 50% of the available bandwidth. > > Not that I'm copy...
2007 Apr 27
1
execute commands after hangup
...mands are run after hangup. I am using 1.4.3 How can I get the entire loop to run 10 times. ( I know my example just has noop's but its an example). exten => h,1,Set(i=1) exten => h,n,While($[${i} < 10]) exten => h,n,Noop(jerry) exten => h,n,Set(i=$[${i} + 1]) exten => h,n,EndWhile exten => h,n,Noop(jerry) The only other item to know is this is a call connected to console/dsp. << Hangup on console >> == Spawn extension (default, 1041, 4) exited non-zero on 'SIP/devcentos64_to_bt610tMM-081febf8' -- Executing [h@default:1] Set("SIP/devcen...
2008 Dec 02
1
Parking calls
Hi, How can I park a call from dialplan and get going?? Example: 1. Answer 2. While follow = false 3. ParkCall 4. Checksomthing ? follow = true 5. Endwhile 6. UnParkCall 7. Go on .. The idea is let the call waiting while I do some things on the dialplan, is it possible?? Maybe is not parking the solution?? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/piperm...
2011 Mar 02
2
[1.4] Comparing value of string with spaces?
...start,n,Set(MYVAR="Dummy value") exten => start,n,NoOp(${MYVAR}) ;BAD TOO ;exten => start,n,While(!$[${MYVAR} : "Some string"]) exten => start,n,While($[${MYVAR} != "Some string"]) exten => start,n,Set(MYVAR="Some string") exten => start,n,EndWhile() ========== Thank you.
2006 Mar 24
11
Transferring a call with IAX
Here's an interesting question: If I transfer a call from Asterisk system to another with IAX, is there any way I can get control back on the original system? Or.. do I lose control, and the dialplan has to continue on the new system? Scenario is we transfer calls to an Asterisk system that handles ACD queues. If the ACD queue times out, we want to send the caller to voicemail on another
2016 Apr 11
0
User controlled i/o block size?
...o see. >>> >>> I haven't looked at the code, or even run strace, but it seems >>> like the code is doing something like: >>> >>> while (files) { read 1.5 GB file to ram write 1.5 GB file from >>> ram fsync() ensure 1.5 GB file is on disk } endwhile >>> >>> I say that because I see several seconds of high-speed reading, >>> then no reads. >>> >>> When the reads stop, I see writes kick in, then they stop and >>> reads start up again. >>> >>> The end result is I'm only...
2016 Mar 31
2
Asterisk 13 - Call Bridge issue.
...-header^s^1)) exten => _X,1,NoOp(Digit Entry) exten => _X,n,NoOp(Log Response) exten => _X,n,Playback(${g_pmtPath}YouPressed) exten => _X,n,SayNumber(${EXTEN}) exten => hold,1,NoOp(Park Called) exten => hold,n,While($[1 < 5]) exten => hold,n,Wait(90) exten => hold,n,EndWhile Any ideas on why the media would not flowing after it sates they bridge has completed Another point. If I use a b option in the second dial. to call another context on connect of the second call. I get audio played on that both caller and callee channels. Thanks Bryant --------...
2011 Mar 15
4
[1.4] Asterisk doesn't hang up?
...available exten => 1111,1,Set(INDEX=0) exten => 1111,n,While(1) exten => 1111,n,ChanIsAvail(Zap/1) exten => 1111,n,GotoIf($["${AVAILORIGCHAN}" != "" | ${INDEX} > 10]?exit) exten => 1111,n,Wait(5) exten => 1111,n,Set(INDEX=$[${INDEX} + 1]) exten => 1111,n,EndWhile() ;how did we exit loop? exten => 1111,n(exit),GotoIf($["${AVAILORIGCHAN}" = ""]?na:ok) exten => 1111,n(na),NoOp(Channel still N.A.) exten => 1111,n,Goto(end) exten => 1111,n(ok),NoOp(Channel OK) exten => 1111,n(end),Hangup ========== Even after callee at 5551...
2010 Jun 18
1
Error trying to add context: Context 'internal' tries to include nonexistent context 'nighttime|12:30-8:00|mon-fri|*|*'
...501,1,Answer exten => 501,n,Wait(2) exten => 501,n,Playback(velkommen_abacus) exten => 501,n,Set(Loop=0) exten => 501,n,While($[${Loop} < 3]) exten => 501,n,Background(tast123vent_) exten => 501,n,WaitExten(5) exten => 501,n,Set(Loop=$[${Loop}+1]) exten => 501,n(LoopEnd),EndWhile() exten => 501,n,Hangup() exten => 1,1,Playback(tt-weasels) exten => 1,2,Dial(SIP/200,10,rg) exten => 1,3,Hangup() exten => 2,1,Playback(tt-monkeys) exten => 2,n,Dial(SIP/302,60,rg) exten => 2,n,Hangup() exten => 3,1,Dial(SIP/402,60,rg) exten => 3,n,Hangup exten =>...
2007 Dec 05
5
New feature: calling all bug marshals
...oth to learn how to script in extensions.conf, but also because it was something handy. Along the way, I found myself doing something like: [popcorn] exten => s,1,Set(FUTURETIME=$[${EPOCH} + 10]) ... exten => s,n,While(${EPOCH} < ${FUTURETIME}) exten => s,n,Wait(0.01) exten => s,n,EndWhile() exten => s,n,Play(beep) exten => s,n,Hangup() and hating myself for it (my Asterisk runs on a 500MHz Geode LX). So I decided it would be useful (in general, and educational for me in particular) to write a WaitUntil() application instead. Well, I've done that. I was going to file...