Remi,<div>At first glace, this looks like the bulk of your work is in the CGI environment of your choice.</div><div><br></div><div>Browser gets <a href="http://yourhttpserver/cgiscript?register">http://yourhttpserver/cgiscript?register</a></div>
<div><br></div><div>CGI script sends SIP REGISTER to SIP Proxy on UDP 5060</div><div><br></div><div>SIP Proxy replies 200 OK on UDP:5060</div><div><br></div><div>CGI Proxy replies 200 OK on TCP:80</div><div><br></div><div>
Is this close?</div><div><br></div><div>Mario</div><div><br></div><div><br><div class="gmail_quote">On Fri, Jul 30, 2010 at 8:37 AM, remi humbert <span dir="ltr">&lt;<a href="mailto:mimiche@gmail.com">mimiche@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>I want to be able to make http REST request to some http server, and transform<br>these requests into SIP MESSAGE requests. <br>
<br>I made a prototype that works using several sip clients embedded into an http server. This kinda works.<br>
I would like to suppress the http server, and make request directly to the OpenSIPS registrar.<br><br>I found out about the mi_xmlrpc module, which makes opensips understand http, but I cannot<br>find out how to get the http requests in the opensips.cfg file. <br>

In kamalio they seems to have some <span><span> <em>modparam</em>(&quot;<em>xmlrpc</em>&quot;, &quot;<em>route</em>&quot;, &quot;XMLRPC&quot;);)<br>
which allows to declare a route in the config file to get the http request. <br>I could not find the equivalent in mi_xmlrpc.<br><br>So first question, does this exists in opensips, how can I get the http requests ?<br>Second, do you think it is a good idea to do this way ? Have you got another idea ? </span></span><br clear="all">

<br>Regards,<br><br>-- <br><font color="#888888">Remi<br><br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>