[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Koochy Black <koochy@a...>
 Subject :  Creating Handler when routing is done in database
 Date :  Thu, 13 Aug 2009 12:06:00 +0200
Hi again,

I'm trying to block unauth users to make calls over our server. Routing
is done per database, mysql.
In regexrout.conf there was the [extra] section where I could list some
handlers...and it was possible to insert
a line ${username}=-;error=noauth  in the sections..how do I realise
this in mysql/register.conf

I've seen the [resource.subscribe] section, is this suitable?
Table:

id    |    event    |    operation    |    expires    |    subscriber   
|    notifier    |    notifito     |    data
------------------------------------------------------------------------------------------
123 | user.auth |    ${username}^$=-;error=noauth | 999 | user1 | ? | ? | ?

Is this correct?

Thanks in Advance