<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
with current stable version (4.3.x), see the utils module, it offers
the function for http query. In the past, whenever I needed some
complex http query, I used embedded lua interpreter (app_lua
module).<br>
<br>
Upcoming stable (4.4.0, to be out in about 2 weeks or so), has more
options here, two new http client related modules being added.<br>
<br>
It might worth looking at rtjson module, could simplify your config
if you return a json document that this module can handle.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 14/03/16 12:02, Thibault Gueslin
wrote:<br>
</div>
<blockquote
cite="mid:CAKYUgjC--+id8NFVgJzX+vak+FHQW+STaT0ONFrWZKDkJPqiUQ@mail.gmail.com"
type="cite">
<div dir="ltr">I am using kamailio without database.
<div>It works fine.</div>
<div><br>
</div>
<div>For some scenario, I would like to replace the from uri
(using mac_replace_from works fine) but using data I can
accessed with a REST API.</div>
<div>I want to have different origination depending on the
sipusername.</div>
<div><br>
</div>
<div>I need to have some synchronous request.</div>
<div><br>
</div>
<div>Have someone already these type of behaviour ?</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Thibault</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>