[Spce-user] Rewrite Rule Match Pattern for ${caller_cc} and ${caller_ac} possible?
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Fri Oct 12 04:14:39 EDT 2018
Hello Matthias,
yes, i think that should work. What does this command return:
grep match_dynamic /etc/kamailio/proxy/kamailio.cfg
? Also could you post the rule as it's stored in the kamailio.dialplan
table?
Thanks.
Andrew
On 10/11/2018 01:07 PM, Hohl Matthias wrote:
>
> Hello,
>
>
>
> i want to strip away the ${caller_cc} and ${caller_ac} number of a callee.
>
> I need this for a fritzbox case…
>
>
>
> So the callee number should not be transported as 43 720 123456 it
> should be just transported as 123456
>
>
>
> I thought about to create a regex match pattern like this:
> (${caller_cc}${caller_ac})([1-9][0-9]+)$
>
> And Replacement Pattern: \2
>
>
>
> But this doesn’t work_:
>
> INFO:<script>:Nomatching rewrite rules for'43720123456'found
>
>
>
>
>
> Is this even possible in this way?
>
> Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20181012/4b0e94fd/attachment-0001.html>
More information about the Spce-user
mailing list