[sr-dev] gruu lookup

Juha Heinanen jh at tutpro.com
Sat Mar 30 12:26:35 CET 2013


while testing tryit client, i started to wonder how lookup is done when
request uri of an in-dialog request contains a public gruu such as in
this:

BYE sip:bar at test.fi;gr=urn:uuid:38056f74-308b-42c9-b16d-0fa61b6ff1a1 SIP/2.0

registrar/lookup.c has:

	if(puri.gr.s==NULL || puri.gr_val.len>0)
	{
		/* aor or pub-gruu lookup */
		ul.lock_udomain(_d, &aor);
		res = ul.get_urecord(_d, &aor, &r);
        ...

why is lookup done based on aor bar at test.fi instead of gruu
urn:uuid:38056f74-308b-42c9-b16d-0fa61b6ff1a1 found in location/instance
field?

-- juha



More information about the sr-dev mailing list