Hello;
    debug level is increased but there isnt ERR or any log about it. pattern is dumped with  "kamctl trusted dump" command and it is correct. Also , checked whitespace , there isnt.

tried to pattern ^sip:850[0-9].* is mathced.

i think it is about regexec funtion at hash.c in permission module. it needs more debug , i will do it.




10.02.2016 12:30 tarihinde Daniel-Constantin Mierla yazdı:
Hello,

if you run with debug=3, do you see any hint in log messages?

Not remembering by heart, check if there is a mi/rpc command to dump the content of those rules, in case there is caching in kamailio memory (I know there is one for dumping the content of address table), maybe the record was not loaded properly. Also, as sometimes happens to be, be sure there is no trailing whitespace to the regexp.

Cheers,
Daniel

On 10/02/16 09:18, Yasin CANER wrote:
Hello;
i try to add a regular expression to from_pattern column.

Fromuser header is   sip:8503027337@ip

i added from pattern ^sip:850[0-9]{7}  - rejected!
try to like that    
^sip:850[0-9][0-9][0-9][0-9][0-9][0-9][0-9]  - accepted.

it is kinda weird. why first pattern wasnt accepted.

Kamailio 4.1.7 (x86_64/linux) 85ffd9

Thanks

--



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

--