Hello, this is more a question on the usage of Kamailio. Please address this to our "sr-users" list, this is for tracking bugs and feature requests in the code.
Regarding figuring out the registered (b-side) user-agent, have a look to the $ulc variable that can give you access to the user location attributes.