<div dir="ltr">Im trying to run Xcap_server support on Kamailio but I got no luck in the configuration I load all module necessary for  the operation to succeed but  nothing. I guess I'm missing something but I can't tell cause I install all dependencies in order to get it running. Here is my set up please let me know if you can give me a hand with this I'd like that cause I'm stuck here<div>
<br></div><div><div># *** Value defines - IDs used later in config</div><div>#!define WITH_AUTH</div><div>#!define WITH_PRESENCE</div><div>#!define WITH_XCAPSRV</div><div>#!define WITH_NAT</div><div>#!define WITH_TLS</div>
<div>#!define WITH_ANTIFLOOD</div><div>#!define WITH_MYSQL</div></div><div><br></div><div><div>#!ifdef WITH_XCAPSRV</div><div>tcp_accept_no_cl=yes</div><div>#!endif</div></div><div><br></div><div><br></div><div><div>#!ifdef WITH_AUTH</div>
<div>loadmodule "auth.so"</div><div>loadmodule "auth_db.so"</div><div>#!ifdef WITH_IPAUTH</div><div>loadmodule "permissions.so"</div><div>#!endif</div><div>#!endif</div></div><div><br></div><div>
<br></div><div><div>#!ifdef WITH_PRESENCE</div><div>loadmodule "presence.so"</div><div>loadmodule "presence_xml.so"</div><div>#!endif</div></div><div><br></div><div><br></div><div><div>#!ifdef WITH_XCAPSRV</div>
<div>loadmodule "xhttp.so"</div><div>loadmodule "xcap_server.so"</div><div>#!endif</div></div><div><br></div><div><br></div><div><br></div><div><div># ----- xcap_server params -----</div><div>modparam("xcap_server", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")</div>
</div><div><br></div><div><br></div><div><br></div><div><div>event_route[xhttp:request] {</div><div>    if (!www_authorize("xcap", "subscriber"))</div><div>    {</div><div>        www_challenge("xcap", "0");</div>
<div>        exit;</div><div>    }</div><div>    if($hu=~"^/xcap-root/")</div><div>    {</div><div>        set_reply_close();</div><div>        set_reply_no_connect();</div><div>        # xcap ops - break down http uri to get xcap user id</div>
<div>        $xcapuri(u=>data) = $hu;</div><div>        if($xcapuri(u=>xuid)=~"^sip:.+@.+")</div><div>            $var(uri) = $xcapuri(u=>xuid);</div><div>        else</div><div>            $var(uri) = "sip:"+ $xcapuri(u=>xuid) + "@" + $Ri;</div>
<div><br></div><div>        # handle XCAP capability request</div><div>        if($rm=="GET" && $xcapuri(u=>auid)=="xcap-caps")</div><div>        {</div><div>            $var(xbody) =</div><div>
"<?xml version='1.0' encoding='UTF-8'?></div><div><xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'></div><div>  <auids></div><div>    <auid>rls-services</auid></div>
<div>    <auid>pidf-manipulation</auid></div><div>    <auid>xcap-caps</auid></div><div>    <auid>resource-lists</auid></div><div>    <auid>pres-rules</auid></div><div>    <auid>org.openmobilealliance.pres-rules</auid></div>
<div>  </auids></div><div>  <extensions></div><div>  </extensions></div><div>  <namespaces></div><div>    <namespace>urn:ietf:params:xml:ns:rls-services</namespace></div><div>    <namespace>urn:ietf:params:xml:ns:pidf</namespace></div>
<div>    <namespace>urn:ietf:params:xml:ns:xcap-caps</namespace></div><div>    <namespace>urn:ietf:params:xml:ns:resource-lists</namespace></div><div>    <namespace>urn:ietf:params:xml:ns:pres-rules</namespace></div>
<div>  </namespaces></div><div></xcap-caps>";</div><div>            xhttp_reply("200", "ok", "application/xcap-caps+xml",</div><div>                    "$var(xbody)");</div>
<div>            exit;</div><div>        }</div><div>        # be sure auth user access only its documents</div><div>        if ($au!=$(var(uri){uri.user})) {</div><div>            xhttp_reply("403", "Forbidden", "text/html",</div>
<div>                    "operation not allowed");</div><div>            exit;</div><div>        }</div><div><br></div><div>        xdbg("SCRIPT: xcap service $xcapuri(u=>auid) for $xcapuri(u=>xuid)\n");</div>
<div>        switch($rm) {</div><div>            case "PUT":</div><div>                xcaps_put("$var(uri)", "$hu", "$rb");</div><div>                if($xcapuri(u=>auid)=~"pres-rules")</div>
<div>                {</div><div>                    pres_update_watchers("$var(uri)", "presence");</div><div>                    pres_refresh_watchers("$var(uri)", "presence", 1);</div>
<div>                }</div><div>                exit;</div><div>            break;</div><div>            case "GET":</div><div>                xcaps_get("$var(uri)", "$hu");</div><div>                exit;</div>
<div>            break;</div><div>            case "DELETE":</div><div>                xcaps_del("$var(uri)", "$hu");</div><div>                if($xcapuri(u=>auid)=~"pres-rules")</div>
<div>                {</div><div>                    pres_update_watchers("$var(uri)", "presence");</div><div>                    pres_refresh_watchers("$var(uri)", "presence", 1);</div>
<div>                }</div><div>                exit;</div><div>            break;</div><div>        }</div><div>    }</div><div><br></div><div>    # other http requests</div><div>    xhttp_reply("200", "OK", "text/html",</div>
<div>            "<html><body>OK: $si:$sp</body></html>");</div><div>    exit;</div><div>}</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 11:22 AM, Edson - Lists <span dir="ltr"><<a href="mailto:4lists@gmail.com" target="_blank">4lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you try it? What you got? What happened? What is your scenario?<br>
<br>
Tell, and maybe someone would help you...<br>
<br>
Edson.<br>
<br>
Em 18/07/2013 11:51, Kethzer Docteur escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello<br>
Im trying to get xcap service working to be able to download my<br>
subscriber list form the subscriber table. I hope that you could help me<br>
with this in anyway possible<br>
Thank you<br>
<br>
--<br>
Kethzer Docteur<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Kethzer Docteur<br>
</div>