[Spce-user] Rewrite Rule Problem kills my rate-o-mat
Daniel Grotti
dgrotti at sipwise.com
Sat Jun 20 04:00:23 EDT 2015
Hi,
yes, or you can use : ^0([1-9].+)$
otherwise with the other one ^0([1-9][0-9]+)$ you will match only the
chars in the list:
0 : matches the character 0 literally
[1-9]: a single character in the range between 1 and 9
[0-9]+ : match a single character present in the list below
So in order to accept the * you need to accept char and not only
numbers, so you need the 'dot'.
--
Daniel Grotti
VoIP Engineer
Sipwise GmbH
Europaring F15 | 2345 Brunn am Gebirge, Austria | www.sipwise.com
On 06/19/2015 02:55 PM, Matthias Hohl wrote:
> Hello,
>
>
>
> today I found out this problem:
>
>
>
> A subscriber with a Fritz!Box place a call to this number: “0136000*”
>
> Rate o Mate stop working cause I can’t find 013600* (the number with an
> asterisk at the end) in the outbound fee profile.
>
>
>
> So I checked the log files and found out, that also no rewrite rule was
> used for this number.
>
> Normally if I would call 0136000 it would rewrite it to 43136000 but if
> there is an asterisk at the end no rewrite rule was used.
>
>
>
> My rewrite rule for this is:
>
> ^0([1-9][0-9]+)$ => ${caller_cc}\1
>
>
>
>
>
> Must I extend to Rewrite Rule to ^0([1-9][0-9].+)$ that SPCE also
> rewrite numbers with a * at the end? Or is there another solution?
>
>
>
> Thanks for your help.
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
>
More information about the Spce-user
mailing list