Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-05 Thread Rouskol Andrey
Daniel, What whould you think about this variant: event_route[xhttp:request] { xlog("L_INFO", "= xhttp: request [$rv] $rm => $hu\n"); xdbg("= xhttp: request [$rv] $rm => $hu\n"); if($hu=~"^/xcap-root/") { # xcap ops $xcapuri(

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-05 Thread Rouskol Andrey
Daniel, I've got your idea - sip communicator can not send u...@domain when doing xcap requests. I've tested xcap with curl utility and my fault was to take it's behaviour as normal. Regards, Andrey. 05.10.10, 11:46, "Daniel-Constantin Mierla" : > Hello, > > On 10/4/10 3:37 PM, Rouskol A

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-05 Thread Daniel-Constantin Mierla
Hello, On 10/4/10 3:37 PM, Rouskol Andrey wrote: Daniel, 02.10.10, 12:37, "Daniel-Constantin Mierla": But here is like this because your client uses u...@domain in username field for authentication, right? This is because www_authorize("xcap", "subscriber") requires me to use u...@domai

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-04 Thread Rouskol Andrey
Daniel, 02.10.10, 12:37, "Daniel-Constantin Mierla" : > But here is like this because your client uses u...@domain in username > field for authentication, right? This is because www_authorize("xcap", "subscriber") requires me to use u...@domain for authentication. I can not pass through it wit

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-02 Thread Daniel-Constantin Mierla
Hello Andrey, On 10/1/10 7:47 PM, Rouskol Andrey wrote: Daniel, In addition to my previous letter, for multidomain case, to prevent u...@domain1 from changing xcaps for u...@domain2, we need do something like this (withing second WITH_XHTTPAUTH section): #!ifdef WITH_MULTIDOMAIN $v

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-02 Thread Daniel-Constantin Mierla
Hello Andrey, On 10/1/10 6:10 PM, Rouskol Andrey wrote: Hello, Daniel, could you verify your tutorial for cases with multidomain support. I've tried it (with curl as an xcap client) and I had to use u...@domain:pass as an authentication string to pass through www_authorize("xcap", "subscriber"

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-01 Thread Rouskol Andrey
Daniel, In addition to my previous letter, for multidomain case, to prevent u...@domain1 from changing xcaps for u...@domain2, we need do something like this (withing second WITH_XHTTPAUTH section): #!ifdef WITH_MULTIDOMAIN $var(tmp) = "sip:"+$aU; if ($var(uri)!=$var(tmp)) { #!e

Re: [SR-Users] Tutorial: SIP SIMPLE Presence Made Simple with Kamailio 3.1

2010-10-01 Thread Rouskol Andrey
Hello, Daniel, could you verify your tutorial for cases with multidomain support. I've tried it (with curl as an xcap client) and I had to use u...@domain:pass as an authentication string to pass through www_authorize("xcap", "subscriber"), after this I had to modify $var(url) assignment a little