Well, I have to check if *calling* are registered on my proxy, before to allow him to make any calls!
In my tests, if a setup on ata186 sipregon=0 so I can make calls, I have to block this...
On Wed, 01 Dec 2004 13:50:55 +0100, Andreas Granig a.granig@inode.at wrote:
Hi,
if (method=="INVITE") { if (!lookup(location)) {
sl_send_reply(404,"Not authorized"); break;
} }
This one checks if the *called* party is registered at SER, not the *calling* party.
However, I don't see a sense in restricting outgoing calls only to registered users. You can authenticate the caller using proxy_authorize() anyway. If the user doesn't register, he just cannot be called.
Andy