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

Iñaki Baz Castillo ibc at aliax.net
Sat Oct 16 11:58:19 CEST 2010


2010/10/16 Rouskol Andrey <anry-dev at yandex.ru>:
>        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?

-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the sr-users mailing list