[Spce-user] Outbound Rewrite Rules for Caller

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


Hello Oskar,

Thanks to the kamailio-proxy log i discover an error in other rules. Now
they are all OK.
But, the number still appears with the CC 34..... Im using version 2.2 RC1.
Could it be some bug?

Thanks!


El 5 de mayo de 2011 12:43, VoiceTech | Oskar Krigh
<oskar at voicetech.se>escribió:

> Ah i see the problem, you have to exchange the replacement pattern with
> \1 . its only one argument that the Match pattern generates.
>
> A tip for you, if you ssh to the box, and then tail the kamailio-proxy
> log, then when you save your rules you will see if the rule will work or
> if it is any errors in it.
>
>
> /Oskar
>
> On Thu, 2011-05-05 at 12:02 +0200, Luis Abenza Sánchez wrote:
> > Hello Oskar,
> >
> > Thanks for your help. But it's not working for me.
> > I attach two images with the subscriber and outbound rewrite rules
> > configurations.
> >
> > Do you see where the problem is?
> >
> > Thanks!
> >
> > El 5 de mayo de 2011 09:05, VoiceTech | Oskar Krigh
> > <oskar at voicetech.se> escribió:
> >         Hi Luis
> >         If you are using numerical subscriber names then the key is to
> >         add \d to the expression.
> >         So try this ^34([1-9][0-9]\d+)$ , and if you are using the
> >         begining + then you have to exchange the expression to
> >
> >         ^+34([1-9][0-9]\d+)$ and then the replace string should be
> >         like this +/1.
> >
> >         /Oskar
> >
> >
> >
> >
> >
> >         On Thu, 2011-05-05 at 08:33 +0200, Luis Abenza Sánchez wrote:
> >
> >         > Hello Sipwise List,
> >         >
> >         > First of all, what a great solution!
> >         > We are a Spanish WISP testing sip:wise to replace commercial
> >         > Voipswitch.
> >         >
> >         > I'm having some problems with Outbound Rewrite Rules for
> >         Caller.
> >         > My CC is 34, and I want to eliminate it in my calls.
> >         >
> >         > So, I configure a Rewrite Rule in my domain:
> >         >
> >         > Outbound Rewrite Rules for Caller
> >         > ^34([1-9][0-9]+)$               \1
> >         >
> >         > But it's not working. Can you throw me some light on this?
> >         >
> >         > Thanks,
> >         > Luis
> >
> >         > _______________________________________________
> >         > Spce-user mailing list
> >         > Spce-user at lists.sipwise.com
> >         > http://lists.sipwise.com/listinfo/spce-user
> >
> >
> > _______________________________________________
> > 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/6665bce6/attachment-0001.html>


More information about the Spce-user mailing list