I sent following message:<div><br></div><div><div> PUBLISH sip:[remote_ip] SIP/2.0</div><div> Via: SIP/2.0/[transport] [local_ip]:[local_port]</div><div> To: <sip:[field0]@[remote_ip]:[remote_port]></div>
<div> From: <sip:[field0 file="auth.csv"]@[remote_ip]:[remote_port]></div><div> Contact: <sip:[field0]@[local_ip]:[local_port]>;transport=[transport]</div><div> Expires: 300</div><div>
Call-ID: [call_id]</div><div> CSeq: 1 PUBLISH</div><div> Content-Type: application/xhttp</div><div> Content-Length: [len]</div><div> </div><div> PUT /xcap-root/pres-rules/users/<a href="http://ravi_p_test_com@50.62.1.7/index">ravi_p_test_com@50.62.1.7/index</a> HTTP/1.1</div>
<div> Content-Type: application/auth-policy+xml</div><div> User-Agent: Ruby-XCAPClient/1.4.1</div><div> If-Match: "sr-1316728844-17029-98"</div><div> Connection: close</div><div> Content-Length: 926</div>
<div> Host: <a href="http://50.62.1.7:5060">50.62.1.7:5060</a></div><div> Date: Thu, 22 Sep 2011 22:23:22 GMT</div><div><br></div><div> <?xml version="1.0"?><pr:rulesets xmlns:cp="urn:ietf:params:xml:ns:common-policy" xmlns:pr="urn:ietf:params:xml:ns:pres-rules"> <cp:rules id="pres_whitelist"> <cp:conditions> <cp:identity> <cp:one id="<a href="mailto:1krishna_b_test_com@50.62.1.7">1krishna_b_test_com@50.62.1.7</a>"/> </cp:identity> </cp:conditions> </cp: rules></pr:rulesets></div>
<div><br></div><div>I used sipp to simulate. Let me know if this it eh correct format.</div><div>I am receiving 407 and the sipp script is failing to respond to it.</div><div><br></div><div>Krish</div><br><div class="gmail_quote">
On Thu, Sep 22, 2011 at 2:25 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<div class="im"><br>
<br>
On 9/22/11 9:14 PM, Krishna Kurapati wrote:
<blockquote type="cite">Hi,
<div><br>
</div>
<div>The document <span style="font-family:Arial, Helvetica, 'Liberation Sans', FreeSans, sans-serif;font-size:14px;line-height:19px;background-color:rgb(255, 255, 255)"><a href="http://kb.asipto.com/kamailio:presence:k31-made-simple" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:1px;padding-right:0px;padding-bottom:1px;padding-left:0px;color:rgb(21, 71, 140);text-decoration:underline" target="_blank">http://kb.asipto.com/kamailio:presence:k31-made-simple</a></span></div>
<div><br>
</div>
<div>describes that XCAP can be sent over SIP instead of over
HTTP. I tried to do</div>
<div>however, the server is unable to update presence rules. I was
using PUBLISH method.</div>
<div>I was using content-type = text...</div>
</blockquote></div>
content type does not really matters from internal point of view for
embedded xcap server.<div class="im"><br>
<blockquote type="cite">
<div><br>
</div>
<div>Has anyone used SIP to send over XCAP? Appreciate if someone
could share a </div>
<div>link or configuration changes required.</div>
</blockquote></div>
What errors do you get?<br>
<br>
It is practically a matter of xcaps_put() parameters. You have to
provide the SIP URI for user, the path of the xcap document and the
content of the xcap document. How you used this function?<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<blockquote type="cite">
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</font></div>
</blockquote></div><br></div>