#包括另一个拨号方案-星号 [英] #include another dialplan - asterisk

查看:64
本文介绍了#包括另一个拨号方案-星号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个拨号计划,其中包含许多应用程序的IVR流,所有这些应用程序都在不同的分机上.我现在试图通过将其中一些移动到单独的.conf文件中进行清理.这是当前外部.conf文件从#includedextensions.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆