[SR-Users] Locate UA in usrloc table

Vitaliy Aleksandrov vitalik.voip at gmail.com
Fri Sep 28 13:09:50 CEST 2012


Hi all.

Is there any easy method to find if somebody with $si:$sp is registered 
(usrloc->received.ip == $si, usrloc->received.port == $sp) ?
reg_fetch_contacts uses uri as search key, but in my case I don't have it.

The only way I know is to write a module that will use 
"get_all_ucontacts" function exported by usrloc module in its API.



More information about the sr-users mailing list