Generally, the “!” symbol is a negation meaning “not” except in the case of preprocessor directives,

 

With that, I bet if you were to put anything else, but 32, it would work.

 

From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of David Villasmil
Sent: Saturday, January 13, 2018 11:54 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] how to check $ua

 

I'm trying to verify the auth username begins with, i.e. "32", but i'm using in AUTH route:

 

if( !($au=~"32") ){

 do something

}

 

and that's not working, and i don't get why?

 


Regards,

 

David Villasmil

phone: +34669448337