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 bit:

                if($xcapuri(u=>xuid)=~"^sip:....@.+")
                        $var(uri) = $xcapuri(u=>xuid);
                else
                        if($xcapuri(u=>xuid)=~"....@.+")
                                $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.

Regards,
Andrey.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to