在freeswitch <param />中获取带有url的参数

时间:2019-03-14 07:25:27

标签: spring-mvc freeswitch

我正在使用Freeswitch,我需要用xml_cdr.conf.xml来打入网址,

<configuration name="xml_cdr.conf" description="XML CDR CURL logger">
  <settings>
    <param name="url" value="http://localhost:8080/ftpTransferPerCall?uuid=${uuid}"/>
  </settings>
....
</configuration>

但是它给出了类似的错误

[ERR] mod_xml_cdr.c:395 Got error [400] posting to web server [http://localhost:8080/ftpTransferPerCall?uuid=${uuid}]
[ERR] mod_xml_cdr.c:402 Retry will be with url [http://localhost:8080/ftpTransferPerCall?uuid=${uuid}]
[ERR] mod_xml_cdr.c:418 Unable to post to web server, writing to file

并以/usr/local/freeswitch/log/xml_cdr的名字<uuid_values>.cdr.xml写入文件

我想点击此网址并将其放入我的控制器中,

@RequestMapping(value ="/ftpTransferPerCall", method = RequestMethod.POST)
public void ftpTransferSingle(@RequestParam(value="uuid", required = false) String uuid)  { 
  System.err.println("In Ftptransfer:- "+uuid);
}

是否有任何方法可以将该URL作为post并在Controller中获取,而不在/usr/local/freeswitch/log/xml_cdr/<uuid_values>.cdr.xml中获取Downloaded文件?

谢谢。

1 个答案:

答案 0 :(得分:1)

运行freeswitch的服务器上的地址http://localhost:8080/ftpTransferPerCall是否肯定可用?

尝试 curl -x POST http://localhost:8080/ftpTransferPerCall

我的意思是freeswitch没问题。