Hi Bogdan,<br><br>I want to talk to Sip clients from a web browser.<br>Eg do:<br><br>POST /<a href="mailto:toto@domain.com">toto@domain.com</a> HTTP1.1<br>host:<a href="http://www.somewebserver.com">www.somewebserver.com</a><br>
hello how are u ?<br><br>And then in the sip client <a href="mailto:toto@domain.com">toto@domain.com</a> receive<br>SIP MESSAGE "hello how are u" from <a href="mailto:bot@domain.com">bot@domain.com</a><br><br>To do that, I can use CGI in my web server to host the "bot" sip clients<br>
which will take the http message and relay it as a SIP message.<br><br>web browser ---> web server (also host "bot" sip client) ---> sip registrar ---> sip client (<a href="mailto:toto@domain.com">toto@domain.com</a>)<br>
<br>Or I could make http request directly to opensips:<br><br>web browser ---> sip registrar ---> sip client (<a href="mailto:toto@domain.com">toto@domain.com</a>)<br><br>Perhaps it's a bad idea to try to talk http to the registrar. I just stumbled upon this<br>
<a href="http://www.iptel.org/rpc_xml_rpc">http://www.iptel.org/rpc_xml_rpc</a>, and I was wondering if I could do the same with opensips,<br>since I am using opensips... <br><br><div class="gmail_quote">On Sun, Aug 1, 2010 at 6:22 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello Remi,<br>
<br>
If you want to receive and process an HTTP request, why do you want to<br>
do it with a SIP server (opensips) and not with a HTTP server ? I think<br>
will be more suitable to you some CGI with APACHE for example, instead<br>
of misusing opensips for that.<br>
<br>
If you can explain me better what the HTTP request is good for, I can<br>
give you some advices on how to do it....if it has some SIP implications....<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
remi humbert wrote:<br>
> Hi,<br>
><br>
> I want to be able to make http REST request to some http server, and<br>
> transform<br>
> these requests into SIP MESSAGE requests.<br>
><br>
> I made a prototype that works using several sip clients embedded into<br>
> an http server. This kinda works.<br>
> I would like to suppress the http server, and make request directly to<br>
> the OpenSIPS registrar.<br>
><br>
> I found out about the mi_xmlrpc module, which makes opensips<br>
> 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 /modparam/("/xmlrpc/", "/route/",<br>
> "XMLRPC");)<br>
> which allows to declare a route in the config file to get the http<br>
> 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<br>
> http requests ?<br>
> Second, do you think it is a good idea to do this way ? Have you got<br>
> another idea ?<br>
><br>
> Regards,<br>
><br>
> --<br>
> Remi<br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><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>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Humbert Remi<br><br>