<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
can you paste here the sip message and the result of the substitution?
It will help to troubleshoot if is something wrong there.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 4/27/10 2:35 AM, Brandon Armstead wrote:
<blockquote
cite="mid:q2o97ef8e3c1004261735nbe17c778h27b24c0f20d858b6@mail.gmail.com"
type="cite">Hello All,<br>
<br>
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.<br>
<br>
Thanks again!<br>
<br>
Sincerely,<br>
Brandon Armstead<br>
<br>
<div class="gmail_quote">On Mon, Apr 26, 2010 at 7:33 PM, Brandon
Armstead <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:brandon@cryy.com">brandon@cryy.com</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello
All,<br>
<br>
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.<br>
<br>
xlog("L_INFO", "[$ci] m=audio $(rb{re.subst,/(.*)m=audio(.*)/\2/})");<br>
<br>
I would expect to give me the port from the m=audio line, however it
does not -- it simply removes m=audio.<br>
<br>
Any thoughts / ideas / suggestions?<br>
<br>
Sincerely,<br>
<font color="#888888">Brandon Armstead</font>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Wed, Dec 23, 2009 at 9:31 PM, Iñaki Baz
Castillo <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">El
Miércoles, 23 de Diciembre de 2009, Daniel-Constantin Mierla escribió:<br>
<div>> the re.subst transformation uses Posix regexp for
matching, only the<br>
> format of the command is perl-like. I implemented this because
textops<br>
> has no dependency of extra libraries than core and I wanted to
keep it so.<br>
><br>
> Maybe is good to add a pcre.subst transformation in regex module
to be<br>
> able to use extended regexp formats given by libpcre.<br>
<br>
</div>
I¡ll try to implement it when I get some spare time :)<br>
<div><br>
<br>
--<br>
Iñaki Baz Castillo <<a moz-do-not-send="true"
href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>><br>
<br>
_______________________________________________<br>
</div>
<div>
<div>Kamailio (OpenSER) - Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.kamailio.org"
target="_blank">Users@lists.kamailio.org</a><br>
<a moz-do-not-send="true"
href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a moz-do-not-send="true"
href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
* <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a>
* <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/danielconstantinmierla">http://www.linkedin.com/in/danielconstantinmierla</a>
</pre>
</body>
</html>