#包括另一个拨号方案-星号 [英] #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"
...
这篇关于#包括另一个拨号方案-星号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!