URGENT - Help needed with DigitMap !
sidlog:
Hello all,
Could someone let me know where to find the basic explanation how to setup the DigitMap for Obi products or alternatively to help me with the below ?
What I am looking for is to have a DigitMap code that will allow me dialing only to LANDLINE numbers from couple of countries. The country codes are +7, +1, +972, +45, +33, +32, +31,
I have clear indication how the landline numbers for these countries look like (number of digits, etc.), so I guess it would be possible to code the access to only these sequences.
Is there anyone that can help me with this ?
My email address is:sambrullen@gmail.com
Thank you in advance !
Sam
Mango:
That should be fairly simple. For example:
(7xxxxxxxS0|1[2-9]xx[2-9]xxxxxxS0|(972|45)xxxxxxxxS0)
- Allow calls beginning with 7 and followed by 7 digits.
- Allow calls beginning with 1, followed by 2-9, two digits, 2-9, and six more digits.
- Allow calls beginning with 972 or 45, followed by eight more digits.
Does that help?
sidlog:
Hi Mango,
Many thanks for your reply.
If I follow the logics you provided, could you please check if the following is correct:
- Code 7: Russian numbers always consist of 10 digits. Cell phone numbers always start with 9. So if I want to block cell phones there, the script would be: (7[1-8]xxxxxxxxxS0), right ?
- Code 972: Israeli fixed numbers consist of 8 digits, including area code (1 digit) and Voip of 9 digits where the first one is always 7. So if I want to allow fixed and Voip numbers and to block the cell phones (always begin with 5) the script would be: (972[(1-4)|6|(8-9)]xxxxxxxS0|972[7]xxxxxxxxS0)
- Code 31: Netherlands: fixed numbers consist of 9 digits including the area code. Cell phones begin with 6 and also 9 digits in total. So if I block the cell phones, the script: (31[(1-5)|(7-9)]xxxxxxxxS0)
So the overall script for the 3 countries above will be:
(7[1-8]xxxxxxxxxS0|972[(1-4)|6|(8-9)]xxxxxxxS0|972[7]xxxxxxxxS0|31[(1-5)|(7-9)]xxxxxxxxS0)
Is this correct ?
Please correct if needed. Explanations are more than welcome :)
Thank you,
Sam
Mango:
First sequence looks good.
Quote from: sidlog on March 06, 2014, 11:37:14 am
- Code 972: Israeli fixed numbers consist of 8 digits, including area code (1 digit) and Voip of 9 digits where the first one is always 7. So if I want to allow fixed and Voip numbers and to block the cell phones (always begin with 5) the script would be: (972[(1-4)|6|(8-9)]xxxxxxxS0|972[7]xxxxxxxxS0)
That might work; I would write it like this:
(972[1-4689]xxxxxxxS0|9727xxxxxxxxS0)
Quote from: sidlog on March 06, 2014, 11:37:14 am
- Code 31: Netherlands: fixed numbers consist of 9 digits including the area code. Cell phones begin with 6 and also 9 digits in total. So if I block the cell phones, the script: (31[(1-5)|(7-9)]xxxxxxxxS0)
Again that might work, (I haven't tested parentheses inside brackets) but my guess would be this:
(31[1-57-9]xxxxxxxxS0)
Let me know how those work.
sidlog:
Hello again, Mango and thank you for your support.
Before I test the entire script, one more question: currently when I dial abroad before the country code I dial 00. How do I integrate it into script ?
For trial I simply added 00 for example : (0031[(1-5)|(7-9)]xxxxxxxxS0) and tested it. This resulted in two things:
(1) I was able to call to number (within country code 31) except for those start with 6 (cell phone) which is exectly what I wanted to prevent, so it is great.
(2) I could call to number that do not start with a country code 31… For example to code 7 (Russia), 1 (USA), etc.
My default script is (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*#]@@.)
Any thoughts ?
Sam
Navigation
[0] Message Index
[#] Next page