similar to: Unexpected results with "While" and "EndWhile" applications

Displaying 20 results from an estimated 4000 matches similar to: "Unexpected results with "While" and "EndWhile" applications"

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 == Channel 'DAHDI/i1/1234567-4a7f' jumping out of
2007 Aug 16
1
Set CALLERID(num) to a specific number only if ${CALLERID(num)} is not an NANP number
Im trying to figure out the base way to check the callerID being sent to my Asterisk box and use it if it is a valid NANP number, but replace it with a static NANP number if it is not. (Why? I have a few carriers that require this, and a few international users - if it happens to take one of the carriers that require it, I want it to set a static number that is valid). I'm playing
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
2002 Mar 17
1
translate octave code to R
Hello, I'd like to translate de code below, write in octave, to R. I'm learning to operate R a few time ago, and an example of translation 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 <>
2016 Apr 11
2
User controlled i/o block size?
I hope this isn't a FAQ. Per the man page I see ways to control the blocksize for hash comparison reasons, but no way to control it for i/o performance reasons. I'm using rsync to copy folder trees full of large files and I'd like to have control of how much data is read / written at a time. Maybe read 10 MB, write 10 MB, etc. Is there an existing way to do that? == details ==
2012 Jul 07
1
[LLVMdev] Problem in LLVM CMake modules
Óscar Fuentes <ofv at wanadoo.es> writes: > Yep, llvm_map_components_to_libraries gets confused by the existence of > both gtest and gtest_main and enters an infinite loop. A workaround is > to not pass "all" to llvm_map_components_to_libraries but a list of > required components. This patch *seems* to fix the problem (cmake regexps are not thoroughly documented):
2011 Mar 15
4
[1.4] Asterisk doesn't hang up?
Hello I'm trying to use ChanIsAvail() to check when the landline is back to idle after a call, but for some reason, Asterisk doesn't detect that the callee has hung up after listening to MoH for a few seconds: ========== extensions.conf ;Play MoH for a few seconds, hang up, and ;check ChanIsAvail() able to detect when line idle again exten => 8888,1,Answer() exten =>
2010 Jun 18
1
Automatic attendant - Error in CLI.
Hello dear list. I am currently working on a Automatic attendant, and the core things work, but I think the loop function isn't working as expected. I am testing this environment: a sip internal call from 301 to 501. The setup here is when 301 calls 501, and 301 doesn't enter an extension, it will go in loop, 3 times, and then hangup...Can't get that working. Could someone please
2007 Apr 27
1
execute commands after hangup
I have a few commands I wish to run after a hangup. It looks like only the first 2 commands 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
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
2016 Apr 11
5
User controlled i/o block size?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You didn't say if you were networking or what features of rsync you are using but if you aren't networking and aren't doing anything fancy you are probably better off with cp -au which is essentially the same as rsync -au except faster. Anyways, smaller reads and writes are usually better handled by the OS's caches than really big
2011 Mar 02
2
[1.4] Comparing value of string with spaces?
Hello I haven't found an example on how to compare the value of a string variable with spaces in it, and the While loop below never exits: ========== extensions.conf exten => 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
2016 Mar 31
2
Asterisk 13 - Call Bridge issue.
I have the following senerio. Call file calls 1st party. When connected give called party option to connect to second party. Issue Dial to second party. Caller answers and the two are bridged together. My issue is that 4 out of 5 calls fail to bridge the audio. Am I missing something or is there some kind of bug? Here is my test dialplan ;Dialer Base Code Files. ;Variables
2010 Jun 18
1
Error trying to add context: Context 'internal' tries to include nonexistent context 'nighttime|12:30-8:00|mon-fri|*|*'
Hello again dear list. Could you please help with this? Thank you for all support, you are great, and i am now at a late stage in the setup and tweaking this server, So I hope you can help me again. I Can't make include the context nighttime. Just to demonstrate if it works, I have a playback function there. But CLI reports: CLI [Jun 18 14:20:22] WARNING[2287]: pbx.c:9542
2007 Dec 05
5
New feature: calling all bug marshals
Hi. I wanted to write a "popcorn" app for myself, both 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)
2003 Apr 20
1
Macros not working as expected with extension "h" in some circumstances
I have a question on how to handle the "h" routines. I have noticed that if the call is hung up by the side that originated the call, the "h" routine is not extendable via a macro, or at least I have been unable to do it. My tests have included only SIP->SIP calls. If the originating side hangs up first: The macro is called from "exten =>
2010 Apr 30
2
Continuing after a TIMEOUT(absolute)
Greetings, I'm trying to continue to do some processing after a TIMEOUT (absolute). In my dialplan below, when a call comes in to [default], I call macro-phonenum and pass it a timeout of 20 seconds. macro- phonenum sets TIMEOUT(absolute), then loops saying the phone number that was called (in MACRO_EXTEN). When the timeout expires I want to call my macro-hangup (so it can say
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
Please help me solve the following error message: syntax error, unexpected tINTEGER, expecting $end I have this model: Code: 1. class GeoDatum < ActiveRecord::Base 2. end The database contains the table geo_data, which contains the zip_code column, filled with zip codes. I get the above error when searching for a zip code and the zip code exists in the table. Here is the
2009 Jul 03
0
e164.org and tollfree ENUM records
Recently, I've been having issues with the URIs returned from e.164.org and toll free calls. It seems that the URIs that are returned from ENUMQUERY and ENUMRESULT are no longer the proper numbering schemes that the poviders use. I've been using the following [enum] template in my outbound route for quite some time with great success until recently. [enum](!) exten =>
2012 Aug 03
1
[LLVMdev] Problem in LLVM CMake modules
So where could I find a list of LLVM libraries so I can figure out which ones I actually need to link into my program? Oscar Fuentes <ofv at wanadoo.es> writes: > Óscar Fuentes <ofv at wanadoo.es <http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>> writes: > > >/ This patch *seems* to fix the problem (cmake regexps are not thoroughly > />/ documented): >