Setting Obi200 - Digitmap
azrobert:
First, I want to make a suggestion.
I like to remove unused code because it can only cause problems.
I would remove the following from the ITSP Profile A/B DigitMap:
xx. - This will match 1 or more digits. If the dialed number only matches this rule you will get a 10 second delay before the call is routed. It can also cause a 2 second delay with numbers that match another rule.
(Mipd) - This will match a dialed IP address. Most people do not need this rule.
[^*#]@@. - This is intended to match a URI. Again, most people do not need this rule.
You still didn't post the Phone Port DigitMap, so I think you don't understand its significance.
When you dial a number the Phone Port DigitMap validates the number. The ITSP DigitMaps only come into play if they are referenced by the PP DigitMap. If the number matches a rule in the PP DigitMap it is passed to the PP OutboundCallRoute.
This is the OBI200 default PP DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|##|**70(Mli)|**8(Mbt)|**81(Mbt)|**82(Mbt2)|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))
(Mpli) points to the primary line DigitMap. The default primary line is SP1, so the ITSP A DigitMap will be included with the PP DigitMap.
Now to answer your question.
211 and 311 will not match any rules in the Phone Port DigitMap, but they will match rules xx. or [^*#]@@. in the ITSP A DigitMap. Since these rules are open ended (will match 1 or more digits) there will be a 10 second delay.
{(Mcanada):sp1} should transform the number and route the call like you want.
If you remove the rules like I suggest above and change the PP DigitMap to:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|211|311|911|**0|***|#|##|**70(Mli)|**8(Mbt)|**81(Mbt)|**82(Mbt2)|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))
Now when you dial 211 or 311 there will be a 2 second delay instead of 10 seconds.
When you dial 10 or 11 digit numbers there will be NO delay instead of 2 seconds.
azrobert:
I see a couple of mistakes in your code, but they are not causing any problems.
When the Phone Port DigitMap processes the dialed number, <1>[2-9]xxxxxxxxx will change a 10 digit number to 11 digits BEFORE it's passed to the Phone Port OutboundCallRoute.
You will never get a 10 digit number passed to the outbound route (because it's been changed to 11 digits), so rules 860xxxxxxx and 407xxxxxxx in (Musa) will never match a dialed number.
This is not causing a problem because rule 1[2-9]xx[2-9]xxxxxx will match the number.
The S0 suffix in (Mcanada) will not do anything. You can only override the timer with rules in the Phone Port DigitMap. I'm assuming you are not referencing (Mcanada) in the Phone Port Digitmap.
If you follow my instructions in my previous post you will have no delay on 10 and 11 digit numbers.
azrobert:
The following is how I would code your outbound configuration. I removed ALL unused code. You can use all, some or none of this code. I apologize if I missed something.
Physical interfaces - PHONE 1
DigitMap:
([1-9]S9|[1-9][0-9]S9|*98|211|311|911|1xxxxxxxxxx|[2-9]xxxxxxxxx|011xx.|1011xx.|**0|***|222222222)
OutboundCallRoute:
{**0:aa},{***:aa2},{222222222:pp},{(Msp1):sp1},{(Msp2):sp2}
Service Provider -> ITSP Profile A -> DigitMap:
(<1:>(905|289|647|416|519|613|705|807)xxxxxxx|(905|289|647|416|519|613|705|807)xxxxxxx|<1:>011xx.|<211:18883401001>|<311:4163922489>|18(00|88|77|66|55|44)xxxxxxx|*98|911|933)
Service Provider -> ITSP Profile B -> DigitMap:
DigitMap: (860xxxxxxx|407xxxxxxx|1[2-9]xx[2-9]xxxxxx|011xx.)
The Phone Port DigitMap will validate rules for all trunks. Nothing is changed in this DigitMap.
I eliminated the User Defined DigitMaps canada and usa.
You can now dial 10 or 11 digit Canadian numbers.
I assume you want to dial 1011........ to route international calls to SP1 and 011....... to SP2.
boon1:
Quote from: azrobert on December 06, 2014, 08:09:12 am
The following is how I would code your outbound configuration. I removed ALL unused code. You can use all, some or none of this code. I apologize if I missed something.
.....
Please don't apologize if you missed something. I should apologize for asking too many 'dumb' questions ;D
Yes, all the outbound configurations are working!!!! thanks!!!
Quote from: azrobert on December 06, 2014, 08:09:12 am
....
This is the OBI200 default PP DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|##|**70(Mli)|**8(Mbt)|**81(Mbt)|**82(Mbt2)|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))
.....
Finally I found the Phone Port DigitMap (Physical Interfaces >> PHONE 1 >> DigitMap) and yes, the PP Digitmap on my Obi200 is the same as what you've posted
Quote from: azrobert on December 06, 2014, 08:09:12 am
.....
Physical interfaces - PHONE 1
DigitMap:
([1-9]S9|[1-9][0-9]S9|*98|211|311|911|1xxxxxxxxxx|[2-9]xxxxxxxxx|011xx.|1011xx.|**0|***|222222222)
OutboundCallRoute:
{**0:aa},{***:aa2},{222222222:pp},{(Msp1):sp1},{(Msp2):sp2}
.....
Sorry for my ignorance. What is the "222222222" for ?
Lastly (hopefully :D) I've 2 more questions which I need help. I've tried many ways but still not successful.
1) How can I prevent from dialling certain numbers ? eg. "1900" calls or any specified numbers?
2) How can I configure for the inbound configurations (ie for blocking calls) ? How should I configure that.
drgeoff:
You should have a quick read of http://www.obitalk.com/forum/index.php?topic=9104.0 and bookmark it for future use when azrobert isn't on hand to give you a speedy reply. :)
That tutorial is hot off the press so don't feel ashamed that you didn't notice it earlier.
Navigation
[0] Message Index
[#] Next page
[*] Previous page