Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900