星号-宏不可用

时间:2018-11-21 14:44:08

标签: asterisk dolibarr

我需要一些帮助。 我尝试在星号上配置dolibarr的插件“ Calling”。 我需要配置extensions.conf,以便星号上的所有传入呼叫都将信息返回到dolibarr以便获得呼叫通知...

当我从软电话外部拨打电话时,振铃正确,但是一旦下车,我会收到以下错误消息:

bot.on("message", async message => {
      var message1 = message.content.toLowerCase();

      if (message1.includes('offensiveword1')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword2')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword3')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword4')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword5')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword6')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword7')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }
      if (message1.includes('offensiveword8')) {
        message.delete();
        message.channel.send('Hey! That word is not allowed!! :rage:')
          .then(message => message.delete(5000));
      }

这是我的WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'. The application is not available.

Extensions.conf

我是Asterisk的初学者,也许这只是一个愚蠢的问题...如果您需要更多信息,请问我。

非常感谢。

1 个答案:

答案 0 :(得分:0)

使用较旧的星号版本或重写拨号计划以使用Gosub而不是宏。