Hello,
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
do you print xlogs to syslog or to terminal?
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})");
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.
Cheers,
Daniel
Any help / input is greatly appreciated, thank you ahead of time!
Happy 4th of July (for those who celebrate)
Sincerely,
Brandon Armstead
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com/