Hello,
An example $rb body would be:
v=0#015#012o=- 5 2 IN IP4 192.168.3.100#015#012s=
Hello,do you print xlogs to syslog or to terminal?
On 7/4/10 9:23 AM, Brandon Armstead wrote:Hello,
I am trying to match a multi-line psuedo variable, i.e. $rb
However I am wishing to pull out the payload values
i.e.
"0 18 101"
"18 101"
etc.. etc...
I am having trouble matching this. Any help would be appreciated.
One part that is giving me trouble is that it seems xlog prints out \r\n as \015\012
Can you paste the body you worked on and the output you got? Will help understanding what happens and maybe give some hits, being easy to reproduce and test ourselves.
I am not able to successfully just pull out the "payloads"
I have tried many different variations, however here is one of my latest:
xlog("L_INFO", "[$ci] $(rb{re.subst,/^(.*)m=audio ([0-9]+) ([0-9 ]+)\015\012(.*)$/\3/s})");
Cheers,
Daniel
_______________________________________________ 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
Any help / input is greatly appreciated, thank you ahead of time!
Happy 4th of July (for those who celebrate)
Sincerely,
Brandon Armstead
-- Daniel-Constantin Mierla http://www.asipto.com/