我正在使用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文件?
谢谢。
答案 0 :(得分:1)
运行freeswitch的服务器上的地址http://localhost:8080/ftpTransferPerCall
是否肯定可用?
尝试
curl -x POST http://localhost:8080/ftpTransferPerCall
我的意思是freeswitch没问题。