[SR-Users] dbtext module issue
Satish Patel
satish.txt at gmail.com
Fri Jan 13 19:50:10 CET 2017
Any thought?
Sent from my iPhone
> On Jan 12, 2017, at 3:51 PM, Satish Patel <satish.txt at gmail.com> wrote:
>
> I am trying use dbtext module instead of mysql and following is my
> configuration. We are using old SER version because of custom written
> module. Do you think following config looks good.
>
> # -- permissions params --
> modparam("permissions", "db_url", "dbtext:///etc/ser/dbtext")
> modparam("permissions", "db_mode", 0)
> modparam("permissions", "trusted_table", "trusted")
>
>
> In function
>
> if ( !allow_trusted() &&
> !search ("^User-Agent:.*Some Perl client.*") ) {
> xlog("L_WARN", "Drop if User-Agent isn't Perl client");
> drop;
> break;
> };
>
>
> My dbtest contents
>
> $ cat /etc/ser/dbtext/trusted
> src_ip(str) proto(str) from_pattern(str)
> 10.0.2.20:any:.*
>
>
> When i run ser in fork=no mode i am seeing following
>
> ser -f ser.cfg
>
> Content of result
> table_version(int)
> 2
>
> Content of [trusted]
> src_ip(str) proto(str) from_pattern(str)
> 10.0.2.20:any:.*
>
> Content of result
> proto(str) from_pattern(str)
> "any" ".* "
>
> Content of result
> proto(str) from_pattern(str)
> "any" ".* "
>
>
> it look like it read dbtext file and load data but when i use sipp to
> generate some call then i am seeing following result only, that means
> its not loading IP address from table, why its extracting two field
> but not src_ip ?
>
> Content of result
> proto(str) from_pattern(str)
> "any" ".* "
More information about the sr-users
mailing list