similar to: endwhile jumping out of macro

Displaying 20 results from an estimated 800 matches similar to: "endwhile jumping out of macro"

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
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
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 ==
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
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
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):
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
2006 Nov 04
4
SPA3k wired to PAP2 for echo testing
In my seemingly endless search for the cause of echo on my SPA3000, I wired it up in the following configuration: Analogue Handset <--> (FXS)SPA3000(FXO) <--> PAP2 And set the Line1 dialplan on the SPA3k to '(<:@gw0>S0)' which means that as soon as I pick up the handset I get linked straight through to the PAP2, which gives me dialtone. Even in this configuration, with
2016 Jan 18
2
how to flush user input before READ()
On Mon, 18 Jan 2016, Ethy H. Brito wrote: >> how to flush user input before READ()? How about a read() to a dummy variable with a 1 second timeout to consume the octothorpe and password? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
2015 Oct 20
4
asterisk core dumped after UBUNTU 14.04 dist-upgrade
Hi I had a bad experience upgrading Ubuntu a few months ago. Today I made a "dd" copy to another harddisk and tried to dist-upgrade. I get "Illegal instruction (core dumped)" running "service asterisk debug" at random places. Any help will be appreciated to spot this problem. I think it is worth to mention that the dadhi hardware is not present at the copied
2015 Jan 30
2
SSL traffic on RTP instance without an SSL session
Hi All We've been reading this in the CLI a lot lately: Received SSL traffic on RTP instance '0x7fe7481faad8' without an SSL session How can we find details about this particular RTP instance? "rtp set debug" needs an IP which is precisely what I want to know (and I don't)! Cheers Ethy
2007 Jun 11
7
shaping using source IP after NAT
Hi all I am using a pass trhu router and I need to QoS some clients output by its IP address. The problem is that QoS is due after NATing. Is there some clever way of doing this besides MARKing every packet with some IP hashing in POSTROUTING NAT table? Regards Ethy
2015 Apr 28
2
Function IMPORT and Local channels
Hi all These questions were asked back in 2009 at lists.digium.com and got unanswered: - Has someone been successful in using IMPORT on a Local channel ? - Is there a known limitation in doing so ? I run into the same problem. ${IMPORT(Local/1234 at example-abcd;2,CALLERID(dstchannel))} returns nothing. But I can read the dstchannel for it into the CDR. Asterisk is 11.7.0~dfsg-1ubuntu1
2005 Dec 19
3
match''ing packets by size
I visited yesican.chsoft.biz and the author proposes a way to match packets by less than some size . Here is the thing: match u16 0x0000 0xffb0 at 2 With this match he says that packet with less than 80 bytes will match the rule. Well, 0xffb0 translates to 1111 1111 1011 0000 (which is -80 BTW). So, if I am correct any packet with bits 4 and/or 5 set (together with any of the 4