Mr. Black Posted April 16, 2014 Report Posted April 16, 2014 At my location we have cell phone numbers that are always 10 digits and always start with 08 or 09. Long distance PSTN Calls start with 02,03,04,05,06 and 07 and are always 9 digits long. I got the dialplan sorted out to figure out cellphone vs. long distance numbers and select this trunk. The trunk I want to use is US-based and would like to receive numbers with the country code prefixed and the leading zero stripped. But I cannot figure out how to strip the leading zero. Example: cellphone number 0866884100 needs to be sent to the trunk as 66866884100 I got the dialplan looking like this: 300;inhouse-th-guests;;08XXXXXXXX;66*;;false Now dialling 0866884100 will prefix the country code but the leading zero is there and will cause the trunk provider to drop the call (obviously). What's the magic involved in dropping that leading zero ? Quote
Vodia support Posted April 16, 2014 Report Posted April 16, 2014 What do you have set under the Number/Call Identification Rewrite global numbers: The magic could be solved there. Quote
Mr. Black Posted April 17, 2014 Author Report Posted April 17, 2014 Not sure that would work without setting domain country code... Users in this domain are in different countries thus what they consider "local" dialing varies by user. But they are all in the same domain Country codes can't be set per user only per domain, right ? Quote
Vodia PBX Posted April 17, 2014 Report Posted April 17, 2014 You can set the number interpretation for each trunk independently. The setting is called "Rewrite global numbers", and there are some NANPA compliant options available. What country is it that you are living in? Are there any special rules that we need to cover? Quote
Mr. Black Posted April 22, 2014 Author Report Posted April 22, 2014 I always had the country code for the domain left blank and set the trunks to "don't re-write" and controlled things via the dial-plans because they are assigned on user-level and we have a broad mix of users in the domain who have different "local number formats" and different permissions. If I could do it all again today I would have sites in different countries in different domains and make more use of the trunk setting "Rewrite global numbers:". I popped the country code in the domain now and assigned these users a dial-plan appropriate for their needs and set the "Rewrite global numbers:" to e.164 and it's all working now! No need to play with extravagant regex in the dial plans Thanks for pointing me to the right direction! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.