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