[SR-Users] dbtext module issue

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 16 09:06:07 CET 2017


ser -- that should be really old release. What is the exact version (ser
-V)?

Cheers,
Daniel


On 13/01/2017 19:50, Satish Patel wrote:
> 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" ".* "
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-users mailing list