Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-10 Thread Uriel Rozenbaum
Hi Alex, Nice approach. I'll try that too but I'm affraid about DB performace issues (I have a very busy mysql). Thanks a lot. Uriel On Thu, Jul 8, 2010 at 3:05 PM, Alex Balashov abalas...@evaristesys.com wrote: Maybe the database can apply the regex and give you the transformed result?  

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Daniel-Constantin Mierla
Hello, On 7/7/10 11:06 PM, Uriel Rozenbaum wrote: Hey guys, I'm using Kamailio 1.5.3-notls and need to apply some re operation to an AVP. The problem I have is that my re expression is held in an AVP, so the parser is not recognizing it :( Would it be very hard to change that behavior? Any

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Alex Balashov
There may be an easier and more elegant and more performant way to accomplish what you are trying to accomplish, but we cannot know without seeing the pattern and the regex. :) -- Alex Balashov - Principal Evariste Systems LLC 1170 Peachtree Street 12th Floor, Suite 1200 Atlanta, GA 30309

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Uriel Rozenbaum
Hi Alex, :) I was just trying to keep it simple, but let me explain a little bit. I'm using a Proxy+RTPProxy in mhomed mode. I have a public and a private IP on that Proxy and route calls in and out of a network. As I have many carriers that want different ANI and DNIS patterns I have to deal

Re: [SR-Users] Use AVP as regex in avp_subst

2010-07-08 Thread Alex Balashov
Maybe the database can apply the regex and give you the transformed result? Databases are quite capable these days. I do this in PostgreSQL all the time. On 07/08/2010 01:53 PM, Uriel Rozenbaum wrote: Hi Alex, :) I was just trying to keep it simple, but let me explain a little bit. I'm