[Spce-user] Outbound Rewrite Rules for Caller

Luis Abenza Sánchez luis at excom.es
Thu May 5 10:43:32 EDT 2011


Hi Andreas,

Thanks for your support.
That change will help some of us, yes.

Here is the output of the SELECT:
mysql> select * from kamailio.dialplan\G > kamailio.dialplan;
*************************** 1. row ***************************
       id: 3
     dpid: 5
       pr: 50
 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: 4
     dpid: 6
       pr: 50
 match_op: 1
match_exp: ^(00|\+)([1-9][0-9]+)$
match_len: 0
subst_exp: ^(00|\+)([1-9][0-9]+)$
 repl_exp: \2
    attrs:
*************************** 3. row ***************************
       id: 5
     dpid: 7
       pr: 50
 match_op: 1
match_exp: ^(00|\+)([1-9][0-9]+)$
match_len: 0
subst_exp: ^(00|\+)([1-9][0-9]+)$
 repl_exp: \2
    attrs:
*************************** 4. row ***************************
       id: 6
     dpid: 8
       pr: 50
 match_op: 1
match_exp: ^(00|\+)([1-9][0-9]+)$
match_len: 0
subst_exp: ^(00|\+)([1-9][0-9]+)$
 repl_exp: \2
    attrs:
*************************** 5. row ***************************
       id: 17
     dpid: 3
       pr: 999
 match_op: 1
match_exp: ^(34)([1-9][0-9]\d+)$
match_len: 0
subst_exp: ^(34)([1-9][0-9]\d+)$
 repl_exp: \1
    attrs:
*************************** 6. row ***************************
       id: 19
     dpid: 3
       pr: 998
 match_op: 1
match_exp: ^(34)([1-9][0-9])$
match_len: 0
subst_exp: ^(34)([1-9][0-9])$
 repl_exp: \1
    attrs:
*************************** 7. row ***************************
       id: 20
     dpid: 3
       pr: 997
 match_op: 1
match_exp: ^(34)(911150022)$
match_len: 0
subst_exp: ^(34)(911150022)$
 repl_exp: \1
    attrs:
7 rows in set (0.00 sec)

An here the output of the log:

May  5 16:37:24 sipwise /usr/sbin/kamailio[2029]: INFO: <script>: Applying
caller-out peer rewrite rules to first caller CLI using dpid '7' - M=INVITE
R=sip:918285088 at 62.174.92.5:5060 F=sip:911150022 at sipwise.excom.es;transport=UDP
T=sip:918285088 at sipwise.excom.es;transport=UDP IP=109.235.16.122:5060 (
127.0.0.1:5060) ID=N2E0MjIyYmExOTA2YzVjNmY5YzViYzI3MjAwMjk1MDk.
May  5 16:37:24 sipwise /usr/sbin/kamailio[2029]: INFO: <script>: No
matching rewrite rules for '34911150022' found - M=INVITE R=
sip:918285088 at 62.174.92.5:5060 F=sip:911150022 at sipwise.excom.es;transport=UDP
T=sip:918285088 at sipwise.excom.es;transport=UDP IP=109.235.16.122:5060 (
127.0.0.1:5060) ID=N2E0MjIyYmExOTA2YzVjNmY5YzViYzI3MjAwMjk1MDk.

Thanks,

2011/5/5 Andreas Granig <agranig at sipwise.com>

> Hi Luis,
>
> On 05/05/2011 04:18 PM, Luis Abenza Sánchez wrote:
> > Thanks to the kamailio-proxy log i discover an error in other rules. Now
> > they are all OK.
>
> We are already thinking about parsing the regex before writing it into
> db, since it could potentially stop kamailio-proxy from starting after a
> reboot if a rule is syntactically wrong. This would have helped you
> catch the error earlier. Gonna move it up on the TODO list :)
>
> > But, the number still appears with the CC 34..... Im using version 2.2
> > RC1. Could it be some bug?
>
> Can you please provide the output of "select * from kamailio.dialplan\G"
> and the log lines in kamailio-proxy.log where it says it's going to
> apply the outbound rewrite rules for the caller, especially the line
> starting with "Applying caller-out domain rewrite rules to first caller
> CLI using dpid" and the lines directly afterwards?
>
> Thanks,
> Andreas
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20110505/d17864be/attachment-0001.html>


More information about the Spce-user mailing list