[SR-Users] regular expression in kamailio
Wilkins, Steve
swwilkins at mitre.org
Sun Aug 26 01:16:29 CEST 2018
Oh, but I want the 10 digit number. If from is like
sip://10000@2223334444, I want 2223334444, not 10000
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Alex Balashov
Sent: Saturday, August 25, 2018 7:11 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] regular expression in kamailio
On Sat, Aug 25, 2018 at 11:07:26PM +0000, Wilkins, Steve wrote:
> I was thinking that would also give me the IP or FQDN. I should not
> have assumed that. I will go try it now.
Ah, no, that's $fu. :-)
Another option: $(fu{nameaddr.uri}{uri.user})
Now, of course, if you are not entirely sure what the format of $fU will be in any given scenario, there are a variety of things you can do to normalise it...
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
More information about the sr-users
mailing list