[Serusers] Credentials
Daniel Mirrha Santos
dmirrha at telcomnet.com.br
Thu Nov 23 16:55:01 CET 2006
Does anybody have an example about how to use credentials to permit some
kinds of calls to some users on SER?
I tried this but, it stops work with no cause:
if (uri=~"^sip:0800.*@.*") {
if(!is_user_in("credentials", "0800")) {
sl_send_reply("403", "No 0800");
log(1,"No 0800");
break;
};
consume_credentials();
prefix ("5511");
route(8);
break;
};
Thanks,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061123/66db0e5d/attachment.htm>
More information about the sr-users
mailing list