[Spce-user] Domain Rewrite Rules for Caller and Callee

Ernest Mavrel ernest.mavrel at novatel.si
Wed May 25 08:57:51 EDT 2011


Hi

I'm using SIP:provider CE. Rewrite rules doesn't work for me. Here is 
log and dialplan table. Help me please.


dialplan table:

mysql> select * from dialplan;
+----+------+-----+----------+-------------------------+-----------+-------------------------+----------+-------+
| id | dpid | pr | match_op | match_exp | match_len | subst_exp | 
repl_exp | attrs |
+----+------+-----+----------+-------------------------+-----------+-------------------------+----------+-------+
| 1 | 1 | 999 | 1 | ˆ(00|\+)([1-9][0-9]+)$ | 0 | ˆ(00|\+)([1-9][0-9]+)$ 
| \2 | |
| 2 | 1 | 998 | 1 | ˆ0([1-9][0-9]+)$ | 0 | ˆ0([1-9][0-9]+)$ | 386\1 | |
| 3 | 2 | 998 | 1 | ˆ(00|\+)([1-9][0-9]+)$ | 0 | ˆ(00|\+)([1-9][0-9]+)$ 
| \2 | |
| 4 | 2 | 997 | 1 | ˆ0([1-9][0-9]+)$ | 0 | ˆ0([1-9][0-9]+)$ | 386\1 | |
| 5 | 3 | 998 | 1 | ˆ386([1-9][0-9]+)$ | 0 | ˆ386([1-9][0-9]+)$ | 0\1 | |
| 6 | 3 | 997 | 1 | ˆ([1-9][0-9]+)$ | 0 | ˆ([1-9][0-9]+)$ | 00\1 | |
+----+------+-----+----------+-------------------------+-----------+-------------------------+----------+-------+

May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: Applying 
caller-in domain rewrite rules on user-provided CLI using dpid '1' - 
M=INVITE R=sip:0038669898232 at 91.231.12.10 F=sip:novatel1 at 91.231.12.10 
T=sip:0038669898232 at 91.231.12.10 IP=89.23.2.12:1028 (127.0.0.1:5060) 
ID=1383579066-5062-30 at BJC.BGI.BD.FF
May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: No 
matching rewrite rules for 'novatel1' found - M=INVITE 
R=sip:0038669898232 at 91.231.12.10 F=sip:novatel1 at 91.231.12.10 
T=sip:0038669898232 at 91.231.12.10 IP=89.23.2.12:1028 (127.0.0.1:5060) 
ID=1383579066-5062-30 at BJC.BGI.BD.FF
May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: Setting 
'38669898233 at 91.231.12.10' as initiating CLI - M=INVITE 
R=sip:0038669898232 at 91.231.12.10 F=sip:novatel1 at 91.231.12.10 
T=sip:0038669898232 at 91.231.12.10 IP=89.23.2.12:1028 (127.0.0.1:5060) 
ID=1383579066-5062-30 at BJC.BGI.BD.FF
May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: Searching 
for callee - M=INVITE R=sip:0038669898232 at 91.231.12.10 
F=sip:novatel1 at 91.231.12.10 T=sip:0038669898232 at 91.231.12.10 
IP=89.23.2.12:1028 (127.0.0.1:5060) ID=1383579066-5062-30 at BJC.BGI.BD.FF
May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: Applying 
callee-in domain rewrite rules using dpid '2' - M=INVITE 
R=sip:0038669898232 at 91.231.12.10 F=sip:novatel1 at 91.231.12.10 
T=sip:0038669898232 at 91.231.12.10 IP=89.23.2.12:1028 (127.0.0.1:5060) 
ID=1383579066-5062-30 at BJC.BGI.BD.FF
May 25 12:52:23 sipw /usr/sbin/kamailio[887]: INFO: <script>: No 
matching rewrite rules for '0038669898232' found - M=INVITE 
R=sip:0038669898232 at 91.231.12.10 F=sip:novatel1 at 91.231.12.10 
T=sip:0038669898232 at 91.231.12.10 IP=89.23.2.12:1028 (127.0.0.1:5060) 
ID=1383579066-5062-30 at BJC.BGI.BD.FF

BR

Ernest




More information about the Spce-user mailing list