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 log

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

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=audio