如何使用openSIPS的Module rest_client [英] How to use the Module rest_client of openSIPS

查看:314
本文介绍了如何使用openSIPS的Module rest_client的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我吗?查看 http://www.opensips.org [ ^ ],我想使用rest_client Module.What困扰我的是如何使用它。请注意网站上的示例gvien:

if(!rest_post(http://myserver.org/register_user,$ fU,text / plain,$ var(body),$ var(ct),$ var (rcode)));

但是当将这句话复制到脚本opensips.cfg时,得到错误:CRITICAL:core:yyerror:配置文件中的解析错误/ usr / local / opensips_proxy / etc / opensips / opensips.cfg,第331行,第45-46行:命令的错误参数< rest_post> ;.

我的真实例子是什么?非常感谢。

Anyone can help me ? When looking at the http://www.opensips.org[^], I want to use the rest_client Module.What bothered me is how to use it.Regard to the example gvien on the website:
"if (!rest_post("http://myserver.org/register_user", "$fU", "text/plain", "$var(body)", "$var(ct)", "$var(rcode)"))";
However when copying this sentence to the script opensips.cfg, getting the error:CRITICAL:core:yyerror: parse error in config file /usr/local/opensips_proxy/etc/opensips/opensips.cfg, line 331, column 45-46: bad arguments for command <rest_post>.
Any real examples for me? Thank you very much.

推荐答案

fU,text / plain,
fU", "text/plain", "


var(body),
var(body)", "


var(ct),


这篇关于如何使用openSIPS的Module rest_client的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆