最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Asterisk, How to get Global Variable value from a file - Stack Overflow

programmeradmin6浏览0评论

In my dial plan, extensions.conf, I have a the following variables:

SALES=Dahdi/9&Dahdi/10&Dahdi/11
CUSTSVC=Dahdi/12&Dahdi/13&Dahdi/14

I would like to get the value of the second variable from a file which contains only the Dahdi extensions string of people available. I have tried:

CUSTSVC=/home/richard/InTheOffice.txt
CUSTSVC=FILE(/home/richard/InTheOffice.txt)
CUSTSVC=ReadFile(/home/richard/InTheOffice.txt)

However none seem to assign the global variable with the value in the file. Anyone know how I can achieve this?

发布评论

评论列表(0)

  1. 暂无评论