[sr-dev] gruu lookup
Juha Heinanen
jh at tutpro.com
Sun Mar 31 09:39:37 CEST 2013
Juha Heinanen writes:
> 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?
the decision on how lookup is done could be based on existence of to
tag. for db_mode=3, an index should then be added containing the
instance field.
-- juha
More information about the sr-dev
mailing list