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=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 <brandon(a)cryy.com
<mailto:brandon@cryy.com>> wrote:
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 does not -- it simply removes m=audio.
Any thoughts / ideas / suggestions?
Sincerely,
Brandon Armstead
On Wed, Dec 23, 2009 at 9:31 PM, Iñaki Baz Castillo <ibc(a)aliax.net
<mailto:ibc@aliax.net>> wrote:
El Miércoles, 23 de Diciembre de 2009, Daniel-Constantin
Mierla escribió:
the re.subst transformation uses Posix regexp for
matching,
only the
format of the command is perl-like. I implemented
this
because textops
has no dependency of extra libraries than core
and I wanted
to keep it so.
Maybe is good to add a pcre.subst transformation in regex
module to be
able to use extended regexp formats given by
libpcre.
I¡ll try to implement it when I get some spare time :)
--
Iñaki Baz Castillo <ibc(a)aliax.net <mailto:ibc@aliax.net>>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)lists.kamailio.org <mailto:Users@lists.kamailio.org>
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
_______________________________________________
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