Hi all,
I was playing around with dialplan module (kam 1.4) for the first time and it seems that the repl_exp doesn't handle back references correctly:
mysql root@kamailio> select * from dialplan\G *************************** 1. row *************************** id: 1 dpid: 1 pr: 1 match_op: 1 match_exp: @voicebox.local$ match_len: 0 subst_exp: ^sip:(.*)$ repl_exp: sip:xx_\1_yy attrs: voicebox 1 row in set (0.00 sec)
In my config, I do:
dp_translate("1", "$ru/$var(dptest)"); xlog("L_INFO", "DP result='$var(dptest)', attr='$avp(s:dialplan_attr)\n");
and the result is:
DP result='sip:xx_user@voicebox.local', attr='voicebox'
So the string after the back reference ("_yy" in this case) is not inserted.
Any ideas?
Andreas
So the string after the back reference ("_yy" in this case) is not inserted.
Any ideas?
yes, it is a bug fixed in current 1.5.
Thanks for information.
I was already thinking of that, but couldn't find any changelog online to verify this. Is there a changelog per release on the web site?
Andreas
Andreas Granig writes:
I was already thinking of that, but couldn't find any changelog online to verify this. Is there a changelog per release on the web site?
i don't think so, but if you suspect that a bug might have been fixed, check svn related to the buggy code, like this:
http://openser.svn.sourceforge.net/viewvc/openser/branches/1.5/modules/dialp...
-- juha
Hello,
dialplan version 1.5 is far better as it uses pcre library. 1.4 is using embedded t-rex which has many bugs in matching algorithm and it is not maintained. pcre is very mature, used by perl and other applications. If you are lucky, just copy the 1.5 version to 1.4 and if compiles ok then should run ok.
Cheers, Daniel
On 05/14/2009 08:44 AM, Juha Heinanen wrote:
Andreas Granig writes:
I was already thinking of that, but couldn't find any changelog online to verify this. Is there a changelog per release on the web site?
i don't think so, but if you suspect that a bug might have been fixed, check svn related to the buggy code, like this:
http://openser.svn.sourceforge.net/viewvc/openser/branches/1.5/modules/dialp...
-- juha
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On Donnerstag, 14. Mai 2009, Andreas Granig wrote:
So the string after the back reference ("_yy" in this case) is not inserted.
Any ideas?
yes, it is a bug fixed in current 1.5.
Thanks for information.
I was already thinking of that, but couldn't find any changelog online to verify this. Is there a changelog per release on the web site?
Hi Andreas,
the latest Changelog for every release can be always found in the respective branch e.g. [1], its updated for every release. We also normally link the Changelog in the release announcement.
Cheers,
Henning
Hello,
On 05/14/2009 12:45 PM, Henning Westerholt wrote:
On Donnerstag, 14. Mai 2009, Andreas Granig wrote:
So the string after the back reference ("_yy" in this case) is not inserted.
Any ideas?
yes, it is a bug fixed in current 1.5.
Thanks for information.
I was already thinking of that, but couldn't find any changelog online to verify this. Is there a changelog per release on the web site?
Hi Andreas,
the latest Changelog for every release can be always found in the respective branch e.g. [1], its updated for every release. We also normally link the Changelog in the release announcement.
Cheers,
Henning
Also the web download folder has it for each release: http://www.kamailio.org/pub/kamailio/1.5.1/ http://www.kamailio.org/pub/kamailio/1.5.0/ ...
Cheers, Daniel