Sometimes I see in a context "NoOp" What is the purpose of "NoOp" (no operation) if it does nothing? -- #Joseph
>Sometimes I see in a context "NoOp" > >What is the purpose of "NoOp" (no operation) if it does nothing?Google for: Asterisk NoOp http://www.voip-info.org/wiki-Asterisk+cmd+NoOp -Michael
Hi,>Sometimes I see in a context "NoOp" > >What is the purpose of "NoOp" (no operation) if it does nothing? >Exactly that. Doing nothing :) btw, noop could be a placeholder for future instructions, or if you need to delete an application from the dialplan, saves you from renumbering the priorities. Or also it helps for debugging the dialplan, since it can print vars. For example, exten => s,1,Noop(${CALLERIDNAME}) will print on the console the value of the var CALLERIDNAME. Matteo.
> What is the purpose of "NoOp" (no operation) if it does nothing?among other things, it logs, so you can see a context being entered. e.g. [ext-foo] exten => _X.,1,NoOp("ext-foo cid=${CALLERIDNUM}")
I believed from reading that NoOp would display something on the console. I assume the console is * in the foreground. During testing, I've often been running * as: asterisk -C/etc/asterisk.inX/asterisk.conf -cvnf Does that qualify as a console? Does "asterisk -r" qualify as a console? Because nothing from any NoOp has ever shown up there, or anywhere else I can find (from extensions.conf): exten => s,1,NoOp,"internal dial" exten => s,2,NoOp,${ARG1} exten => s,3,NoOp,${ARG2} exten => ${CO1CID},2,NoOp,${CALLERID} I'm using 1.0.9 on Gentoo. I also tried: exten => s,1,NoOp("internal dial") exten => s,2,NoOp(${ARG1}) exten => s,3,NoOp(${ARG2}) exten => ${CO1CID},2,NoOp(${CALLERID})