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 <[email protected]> On Behalf Of Alex Balashov Sent: Saturday, August 25, 2018 7:11 PM To: Kamailio (SER) - Users Mailing List <[email protected]> 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 [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
