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

Daniel-Constantin Mierla miconda at gmail.com
Sat Oct 2 10:30:40 CEST 2010


  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 user at domain:pass
> as an authentication string to pass through www_authorize("xcap", "subscriber"),
> after this I had to modify $var(url) assignment a little bit:
>
>                  if($xcapuri(u=>xuid)=~"^sip:.+ at .+")
>                          $var(uri) = $xcapuri(u=>xuid);
>                  else
>                          if($xcapuri(u=>xuid)=~".+ at .+")
>                                  $var(uri) = "sip:"+ $xcapuri(u=>xuid);
>                          else
>                                  $var(uri) = "sip:"+ $xcapuri(u=>xuid) + "@" + $Ri;
>
> Could you confirm, that it is correct, or point to my errors, please.
>
this looks correct, I added it on wiki. Will add to xcap_server readme 
as well.

Thanks,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-users mailing list