[Kamailio-Users] Check if a user is calling from a registereddevice and if not, deny the call!

Juha Heinanen jh at tutpro.com
Sun Oct 19 11:43:33 CEST 2008


Arif-Uz-Zaman writes:

 > I've already tested with the following config but no luck. Since the
 > following config check only whether callee is registered or not. Not the
 > caller.
 > 
 > if(!registered("location")) {		
 > 	sl_send_reply("403","Forbidden auth ID");
 > 	exit;
 > }

indeed the function should take a pseudo variable that contains aor used
for checking.

 > Is there any other suggestions?

save r-uri, store caller's aor to r-uri and call the above function.
then restore r-uri.

-- juha




More information about the Users mailing list