[sr-dev] is_gruu() test fails

Juha Heinanen jh at tutpro.com
Mon May 28 16:58:03 CEST 2012


i have this piece of config code:

        if (is_gruu()) {
           xlog("L_INFO", "Request-URI <$ru> IS gruu\n");
        } else {
           xlog("L_INFO", "Request-URI <$ru> is NOT gruu\n");
	}

and i get this to syslog:

May 28 17:53:07 siika /usr/sbin/sip-proxy[8926]: INFO: Request-URI <sip:jh at test.fi;gr=urn:uuid:f462ab09-88fe-43c6-9c9c-cb570ce6bb99> is NOT gruu

is this a bug or have i misunderstood something?

-- juha

4.24.  is_gruu([uri])

The function returns true if the uri is GRUU ('gr' parameter is
present): 1 - pub-gruu; 2 - temp-gruu.

Meaning of the parameters is as follows:

uri - the SIP URI to check for GRUU parameter. It is optional, when
missing, the value of R-URI is used.




More information about the sr-dev mailing list