Answer the question
In order to leave comments, you need to log in
How to simplify this dialplan?
Good afternoon comrades!!!
Give me an idea how to simplify the code, since I now have a little less than a hundred such rules, and I need to enter the code to a minimum:
AEL CODE
context reklama-global {
200 =>{
ifTime(*|*|*|jan-may){&rklm-00001();};
goto ext-queues,200999,1;
};
};
macro rklm-00001(){
Playback(reklama/00001);
return;
};
context reklama-global {
200 =>{
ifTime(*|*|*|jan-may){&rklm-00001();};
label-end:
goto ext-queues,200999,1;
};
};
context reklama-global {
200 =>{
ifTime(*|*|*|jan-may){&rklm-00001();};
ifTime(*|2|*|jan-may){&rklm-00002();};
ifTime(*|1|*|jan-may){&rklm-00003();};
ifTime(*|*|*|jan-may){&rklm-00004();};
ifTime(*|*|*|jan-may){&rklm-00005();};
ifTime(*|3|*|jan-may){&rklm-00006();};
ifTime(*|4|*|jan-may){&rklm-00007();};
ifTime(*|*|*|jan-may){&rklm-00008();};
label-end:
goto ext-queues,200999,1;
};
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question