Re: [SR-Users] Regex Transformations

2010-07-22 Thread Brandon Armstead
Hello, To further add more verbose information -- syslog reports back "no match" for the assignment followed by no right expression and thus its an error. While as the xlog "matches" and prints as it should. (Same exact transformation code / regex is used lines and no other mangling is occur

Re: [SR-Users] Regex Transformations

2010-07-22 Thread Brandon Armstead
Daniel, Too True! haha. While I've got this topic still open, I am actually having a total freak experience going on right now. I have the following: xlog("L_INFO", "[$ci] codec / payloads available $(rb{re.subst,/^(.*)m=audio ([0-9]+) RTP\/AVP ([0-9 ]+)\015\012(.*)$/\3/s})"); Which shows t

Re: [SR-Users] Regex Transformations

2010-07-22 Thread Daniel-Constantin Mierla
Hello, On 7/22/10 8:59 PM, Brandon Armstead wrote: Hello, Sorry it took me so long to respond back.. not a problem, I am one that really knows about unavailability due to traveling or other things. Also, many times it happens that obvious things are "invisible". Cheers, Daniel I am

Re: [SR-Users] Regex Transformations

2010-07-22 Thread Brandon Armstead
Hello, Sorry it took me so long to respond back.. I am shocked that I did not find/see that. That was exactly my issue. :embarrassed:. Thank you! Sincerely, Brandon Armstead On Fri, Jul 16, 2010 at 5:26 AM, Daniel-Constantin Mierla wrote: > Hello, > > the line you try to match is: > >

Re: [SR-Users] Regex Transformations

2010-07-16 Thread Daniel-Constantin Mierla
Hello, the line you try to match is: m=audio 64192 RTP/AVP 107 0 8 18 101 However, the subst does not have rule to match 'RTP/AVP' string: {re.subst,/^(.*)m=audio ([0-9]+) ([0-9 ]+)\015\012(.*)$/\3/s} It is looking for digits and white spaces after m=audio. Cheers, Daniel On 7/5/10 7:38 PM,

Re: [SR-Users] Regex Transformations

2010-07-12 Thread Brandon Armstead
Hey guys, I am still hitting my head against the wall with this one. It seems that re.substr does not interpret any of the following: \r, \n, \012, \015, etc. There is no way for me to match control characters. If you guys know what I am doing wrong it would be very much appreciated wit

Re: [SR-Users] Regex Transformations

2010-07-06 Thread Brandon Armstead
Hello, Please do let me know if I am leaving any thing out that will make troubleshooting this issue easier. I am really hitting a wall with an efficient method to tackle this problem. All help is appreciated, thanks as always guys! Sincerely, Brandon Armstead On Mon, Jul 5, 2010 at 12:38

Re: [SR-Users] Regex Transformations

2010-07-05 Thread Brandon Armstead
Hello, An example $rb body would be: v=0#015#012o=- 5 2 IN IP4 192.168.3.100#015#012s= CounterPath Bria#015#012c=IN IP4 174.37.XX.XXX#015#012t=0 0#015#012m=audio 64192 RTP/AVP 107 0 8 18 101#015#012a=sendrecv#015#012a=rtpmap:107 BV32/16000#015#012a=rtpmap:18 G729/8000#015#012a=fmtp:18 annexb=

Re: [SR-Users] Regex Transformations

2010-07-05 Thread Daniel-Constantin Mierla
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 t

[SR-Users] Regex Transformations

2010-07-04 Thread Brandon Armstead
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