[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] LCR
From:       Moritz Graf <moritz.graf () g-fit ! de>
Date:       2014-07-30 14:00:11
Message-ID: 53D8FA6B.9000400 () g-fit ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi Keith,

you can take the from userpart from the pseudovar $fU. Find further
infos on the pseudovar documentation site:
http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables

After that you can try to match that with the module regex, see
documentation here:
http://kamailio.org/docs/modules/4.1.x/modules/regex.html

But I recomend using "app_perl". By that you get the whole SIP-message.
Apply PERL regexpower onto it and return some values via avps, or insert
branch directly in perl.

Depending on how sophisticated your LCR rules are using the LCR-Module
or any other module might also be worth a thought.

greetz

Am 29.07.2014 21:55, schrieb Keith:
> Hi,
> 
> I want to do LCR based on from uri. I get I need to do regular
> expression matching but have no idea where to look to start.
> 
> Any pointers would be good.
> Thanks
> Keith


-- 

Moritz Graf, M.Sc.
Betrieb NGN-Plattform
G-FIT GmbH & Co. KG
Greflingerstr. 26, 93055 Regensburg


["signature.asc" (application/pgp-signature)]

_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic