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

Rouskol Andrey anry-dev at yandex.ru
Sun Oct 17 01:05:34 CEST 2010


Iñaki,

Yes, it does. Xcap module parses request url, and produces $xcapuri(u=>xuid),
which could have different formats: user, user at domain or sip:user at domain. 
And $var{uri} is a "sip normalised" form of it, ie: sip:user at domain.

This part was taken from Daniels tutorial as is. My question was about
authorization part.

Regards,
Andrey.

16.10.10, 13:58, "Iñaki Baz Castillo" <ibc at aliax.net>:

> 2010/10/16 Rouskol Andrey :
>  >        if($hu=~"^/xcap-root/")
>  >        {
>  >                # xcap ops
>  >                $xcapuri(u=>data) = $hu;
>  >                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;
>  >
>  
>  Doesn't the module automatically parse the URL's auid, xui, document,
>  document path and so?
>  
>  



More information about the sr-users mailing list