the task is quite simple, but i have not figured it out yet.
one trunk has a local number in germany ..
so if someone from germany calls the CID is the number without the Country code.
but if somone from outside calls, the country code comes with the CID (which is totally fine if you are located within germany)
my outgoing rules are use the countrycode 0049 to select the voip trunk the call comes from.
but since the 0049 is not come along for inbound calls .. it will never beeing selected .. and you have to manually edit the number (which is a pain on a analog phone) and often forgotten by mistake.
is there a possibility to siimply have the inbound CID remodeled
like this:
- if the inbound CID is _00. then just forward the CID to the ring group
- if the Inbound CID is _0Z. then remove the first digit (the 0) from the original CID, prefix 0049 and send to the ring group.
any idea how to do this ?
Route your trunk to a custom start context and do the normalization there. Example: