THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Andrew Pogrebennyk (marduk)
Attached to Project - sip-router
Summary - dialplan replacement with AVPs doesn't work
Task Type - Bug Report
Category - Core
Status - Assigned
Assigned To - Andrei Pelinescu-Onciul
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - Hi,
I'm checking dialplan with AVPs in repl_exp. There was an attempt to fix it in commit
eb005b74c1d47d215b17ac395efafe56c14ec295
but it doesn't give the expected results: the replacement, which should be an AVP
value, is empty:
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dialplan.c:235]:
searching 4
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dialplan.c:251]:
searching 7
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dialplan.c:338]:
input is 0101
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dp_repl.c:326]:
regex operator testing
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dp_repl.c:362]:
found a matching rule 0x7ff6516be588: pr 996, match_exp ^0([1-9][0-9]+)$
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dp_repl.c:268]:
copying pvar value <> token size 17
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dp_repl.c:268]:
copying pvar value <> token size 17
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dp_repl.c:219]:
copying match <101> token size 2
Sep 12 10:35:46 andrewdev1 /usr/sbin/kamailio[7610]: DEBUG: dialplan [dialplan.c:347]:
input 0101 with dpid 6 => output 101
Here is the dialplan rule:
mysql> select * from dialplan where dpid=6\G
*************************** 1. row ***************************
id: 5
dpid: 6
pr: 996
match_op: 1
match_exp: ^0([1-9][0-9]+)$
match_len: 0
subst_exp: ^0([1-9][0-9]+)$
repl_exp: $avp(s:caller_cc)$avp(s:caller_ac)\1
attrs:
1 row in set (0.00 sec)
I have checked with debug statements that $avp(s:caller_cc) and $avp(s:caller_ac) contain
values. Where else could I possibly look?
Thanks.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=153
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.