[SR-Users] how to check $ua
Trent
trent at callclicker.com
Sat Jan 13 19:26:15 CET 2018
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 at lists.kamailio.org] On Behalf Of David Villasmil
Sent: Saturday, January 13, 2018 11:54 AM
To: Kamailio (SER) - Users Mailing List <sr-users at 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
email: david.villasmil.work at gmail.com <mailto:david.villasmil.work at gmail.com>
phone: +34669448337
<https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=86b8a180-aec1-4d5b-a8d0-e195a97d299d> ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180113/4e9ed1cd/attachment.html>
More information about the sr-users
mailing list