THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#153 - dialplan replacement with AVPs doesn't work
User who did this - Andrew Pogrebennyk (marduk)
----------
Ok, here it is:
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: INFO: <script>: Applying
callee-in domain rewrite rules using dpid '11' - M=INVITE
R=sip:[email protected] F=sip:[email protected] T=sip:[email protected]
IP=192.168.51.1:5070 (127.0.0.1:5060) ID=yxczvwqrrznvlma@darkstar
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: INFO: <script>: avps are <43>
<99>
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan
[dialplan.c:235]: searching 4
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dialplan.c:251]: searching 7
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dialplan.c:338]: input is 0991002
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:326]:
regex operator testing
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:326]:
regex operator testing
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:362]:
found a matching rule 0x7fcf2246f450: pr 3, match_exp ^0([1-9][0-9]+)$
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:268]:
copying pvar value <> token size 17
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:268]:
copying pvar value <> token size 17
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dp_repl.c:219]:
copying match <991002> token size 2
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: DEBUG: dialplan [dialplan.c:347]:
input 0991002 with dpid 11 => output 991002
Oct 5 09:06:30 sp1 /usr/sbin/kamailio[27050]: INFO: <script>: Rewriting callee
'0991002' to '991002' - M=INVITE R=sip:[email protected]
F=sip:[email protected] T=sip:[email protected] IP=192.168.51.1:5070
(127.0.0.1:5060) ID=yxczvwqrrznvlma@darkstar
But there must be prefix 43 in output:
mysql> select * from dialplan where dpid=11\G
*************************** 1. row ***************************
id: 5
dpid: 11
pr: 0
match_op: 1
match_exp: ^(00|\+)([1-9][0-9]+)$
match_len: 0
subst_exp: ^(00|\+)([1-9][0-9]+)$
repl_exp: \2
attrs:
*************************** 2. row ***************************
id: 17
dpid: 11
pr: 3
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:
2 rows in set (0.00 sec)
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=153#comment291
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.
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev