extensions.ael
来自「asterisk 一个模拟IPPBX的源代码」· AEL 代码 · 共 58 行
AEL
58 行
context test1{ s => { goto lab1; if( ${testnotnull} ) { lab1: NoOp(hello); } else { lab1: MoOp(goodbye); } } 1 => { lab1: NoOp(This one is OK.); }}macro endcall5(type) { switch(${type}) { case out: if(${testnotnull}) { NoOp(whoosh); goto ptr1 ; // <-- goto call to valid label } case in: ptr1: // The First label is the valid one... if(${testnotnull}) { NoOp(wow); goto ptr1 ; // <-- goto call to valid label } Noop(esac) ; } if(${testnotnull}) { goto ptr1; } switch(${type}) { case out: switch(${type}) { case in: if(${testnotnull}) {ptr1: // <-- duplicate label (macros are about the equiv of an extension) Softhangup(${CHANNEL}); break ; } Noop(esac) ; } } return;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?