0

在设置 freeswitch 和 plivoframework 时,在 plivo-outbound 中发现了问题。当我使用软电话从 freeswitch 呼叫 plivo 时,plivo-outbound.log 文件给出了以下错误日志。此外,freeswitch工作正常,plivo和freeswitch之间的接口没有问题。

plivo-outbound.log :

2014-08-04 16:12:52,422 plivo-outbound[26271]: INFO: (2) Requested RESTXML to http://127.0.0.1/answer/
2014-08-04 16:12:52,422 plivo-outbound[26271]: ERROR: (2) Processing Call Failure !
2014-08-04 16:12:52,422 plivo-outbound[26271]: ERROR: (2) Unrecognized Element: ['speak']
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2) Traceback (most recent call last):
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2) Traceback (most recent call last):
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2)     self.process_call()
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 500, in process_call
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2)     self.lex_xml()
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2)   File "/usr/local/plivo/src/plivo/src/plivo/rest/freeswitch/outboundsocket.py", line 599, in lex_xml
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2)     % invalid_element)
2014-08-04 16:12:52,450 plivo-outbound[26271]: ERROR: (2) UnrecognizedElementException: Unrecognized Element: ['speak']
2014-08-04 16:12:52,450 plivo-outbound[26271]: INFO: (2) Processing Call Ended
2014-08-04 16:12:52,450 plivo-outbound[26271]: DEBUG: (2) Releasing Connection ...
2014-08-04 16:12:52,451 plivo-outbound[26271]: DEBUG: (2) Releasing Connection Done
2014-08-04 16:12:52,451 plivo-outbound[26271]: INFO: (2) End request from ('127.0.0.1', 48645)

然而,我试图从位于位置的 plivo 运行以下脚本[loopbackip]/answer/index.php

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
   <speak>welcome</speak>
</Response>

知道我该如何解决吗?

4

1 回答 1

0

经过一天的困惑,我终于发现错误不在 plivo 脚本和安装中。它在我的 index.php 脚本中 - 每个关键字都<Speak>,<Play> ..应该以大写字母开头。现在脚本看起来像:

索引.php

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
   <Speak>welcome</Speak>
</Response>
于 2014-08-05T04:32:14.020 回答