#include 另一个拨号方案 - 星号 [英] #include another dialplan - asterisk
问题描述
我有一个拨号计划,其中包含许多应用程序的 IVR 流,所有应用程序都在不同的分机上.我现在试图通过将其中一些移动到单独的 .conf
文件来清理它.以下是目前将外部 .conf
文件 #included
放入 extensions.conf
的方式.所有单独的 .conf
文件都存在于 /etc/asterisk
中:
I have a dialplan that contains the IVR flow for a number of applications, all on different extensions. I am now trying to clean it up by moving some of them to separate .conf
files. Here is how the external .conf
files are being #included
into extensions.conf
at present. All the separate .conf
files are present within /etc/asterisk
:
在 extensions.conf
中:
#include "temp.conf"
[globals]
...
temp.conf
中的 IVR 工作正常,但其他应用程序均无效.当传入的调度程序将其发送到适当的函数时,似乎没有一个全局变量被正确设置.
The IVR in temp.conf
works OK, but none of the other applications work. While the incoming dispatcher sends it to the appropriate functions, none of the global variables seem to be set up properly.
是否有我必须遵循的正确顺序才能使所有上下文正常工作?
Is there a proper order that I must follow in order for all contexts to work correctly?
推荐答案
在全局变量起作用之后添加 #include
.像这样:
Adding the #include
just after the globals works. Like so:
[globals]
...
#include "temp.conf"
...
这篇关于#include 另一个拨号方案 - 星号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!