Hello all,

A new *rest_client* module is now available in the OpenSIPS trunk. It currently offers the possibility of querying an HTTP server with GET and POST messages.

The following is a quick example of issuing an HTTP GET in the OpenSIPS script in a RESTful manner:

rest_get("http://myserver.org/userinfo/$fU";, "$avp(body)"));
xlog("Info of user $fU: $avp(body)\n");


Please refer to the module documentation [1] for complete examples, along with a more in-depth description of the module functions and dependencies.

Testing and feedback are appreciated.

[1] http://www.opensips.org/html/docs/modules/devel/rest_client.html

Best regards,

--
Liviu Chircu
OpenSIPS Dev
http://www.opensips-solutions.com

_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to