Hello,

you can use indexes to access any of the location records, see:

http://kamailio.org/docs/modules/stable/modules/registrar.html#idp2019304

Cheers,
Daniel

On 09/05/14 17:18, Jonathan Hunter wrote:


Hi Guys,

I was wondering if anyone could help?

I am currently using reg_fetch_contacts to manipulate signaling based on the user agent device being used, therefore I use the result of;

if(reg_fetch_contacts("location", "$ru", "callee"))
{
  xlog("callee=>user_agent $ulc(callee=>user_agent)\n");
}


I then use   $ulc(callee=>user_agent) to make routing decisions.

This seems to only return the user-agent device being used for the first registration at that AOR, as I have two devices registered, a Cisco, and a jitsi client, and it only returns the user_agent of the jitsi client I registered first.

Is it possible to return the user agents of all the devices registered against an AOR so I can manage decisions accordingly?

Many thanks

Jon




_______________________________________________
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

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda