Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-30 Thread Daniel-Constantin Mierla
On 4/30/10 9:14 PM, Daniel-Constantin Mierla wrote: Hi Brandon, you are missing the multi-line matching flag, try: xlog("L_INFO", "[$ci] $(rb{re.subst,/^(.*)m=audio ([0-9]+)(.*)$/\2/s})") Note the 's' after the last '/' in subst expression. those details were missing in docs, so I updated the

Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-30 Thread Daniel-Constantin Mierla
Hi Brandon, you are missing the multi-line matching flag, try: xlog("L_INFO", "[$ci] $(rb{re.subst,/^(.*)m=audio ([0-9]+)(.*)$/\2/s})") Note the 's' after the last '/' in subst expression. Cheers, Daniel On 4/29/10 10:21 PM, Brandon Armstead wrote: Daniel, Here is the XLOG output, the top l

Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-29 Thread Brandon Armstead
Daniel, Here is the XLOG output, the top log is the unmodified version and the bottom is the modified version. xlog("L_INFO", "[$ci] $rb") OUTPUTS: Apr 29 20:17:23 sip-core02 /sbin/kamailio[23550]: [ 6db72a2f-7e263...@192.168.1.75] v=0#015#012o=- 24986155 24986155 IN IP4 99.21.137.236#015#012s=-

Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-28 Thread Daniel-Constantin Mierla
Hello, can you paste here the sip message and the result of the substitution? It will help to troubleshoot if is something wrong there. Cheers, Daniel On 4/27/10 2:35 AM, Brandon Armstead wrote: Hello All, Correction, it seems both the last supplied regex and xlog("L_INFO", "[$ci] m=aud

Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-26 Thread Brandon Armstead
Hello All, Correction, it seems both the last supplied regex and xlog("L_INFO", "[$ci] m=audio $(rb{re.subst,/(.*)m=audio ([0-9]+) (.*)/\2/})"); return the same invalid results. Thanks again! Sincerely, Brandon Armstead On Mon, Apr 26, 2010 at 7:33 PM, Brandon Armstead wrote: > Hello All, >

Re: [SR-Users] [Kamailio-Users] PCRE Regex / Transformations Bug?

2010-04-26 Thread Brandon Armstead
Hello All, I hate to dig-up this older mailing list entry. However I am some additional trouble with what I believe is a completely posix-only regex. xlog("L_INFO", "[$ci] m=audio $(rb{re.subst,/(.*)m=audio(.*)/\2/})"); I would expect to give me the port from the m=audio line, however it doe