Hi all,
I've been able to rewrite R_URI based on prefix matching in the carrierroute module, using: cr_route("default", "0", "$rU", "$rU", "call_id") I used this to normalize the ruri to E164: ex: in france, the country code is +33, if someone dials "01 10 10 10 10", I strip the first 0 and prefix with 33 so that I get 331 10 10 10 10 (space are there for convenience :p)
What I'd like to do is to use the carrierroute module to do the same but for from uri: ex: I receive a call on my phone with a caller using e164 (from_uri: 331 20 20 20 20) and I'd like to present this number as 01 20 20 20 20 to the callee. I added a prefix 331 in the carrierroute tables.
I tried this: - cr_route("default", "0", "$fU", "$fU", "call_id") - cr_route("default", "0", "$fU", "$fU", "from_uri") - cr_route("default", "0", "$fU", "$rU", "call_id") - cr_route("default", "0", "$fU", "$rU", "from_uri")
but I've been unsuccessful with this.
Is there a way to achieve from_uri translation using the carrierroute module.
Regards, rod