News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Please help for digmap.

Started by jc2516, March 30, 2015, 11:41:40 AM

Previous topic - Next topic

jc2516

I have an OBI200. I just want to configure outbound like this:

Default: SP1.

When dial 1-xxx-xxx-xxxx, go SP1.

When dial xxx-xxx-xxxx, go SP1 and dial 1-xxx-xxx-xxxx.

When dial 2-xxx-xxx-xxxx, go SP2 and dial 1-xxx-xxx-xxxx.

When dial 011-xx...., go SP3.

What should I do for the digmap?

Thanks.

azrobert

#1
Service Providers -> ITSP A Profile -> General -> DigitMap:
(1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<1aaa>xxxxxxx|911)

Change aaa to your local area code

Service Providers -> ITSP B Profile -> General -> DigitMap:
(<2:1>[2-9]xxxxxxxxx)

Service Providers -> ITSP C Profile -> General -> DigitMap:
(011xx)

Physical Interfaces -> Phone1 Port -> DigitMap:
([1-9]S9|[1-9]xS9|1?xxxxxxxxxx|2[2-9]xxxxxxxxx|011xx.S3|xxxxxxx|911|**|***|222222222)

Physical Interfaces -> Phone1 Port -> OutboundCallRoute:
{(Msp1):sp1},{(Msp2):sp2},{(Msp3):sp3},{**:aa},{***:aa2},{222222222:pp}

The Phone Port DigitMap validates the dialed number
Then the Phone Port OutboundCallRoute will route the call to the destination.
I included 7 digit dialing for your local area code.
I'm routing 911 to SP1.
If this isn't correct remove "|911" from the ITSP A DigitMap.
222222222 is the Echo Test.
I removed the **n prefix dialing function and the Primary Line function.
If you need these or are uncomfortable with this, post back.

jc2516

Thanks for your post. That works for me. But when I create a speed dial username@pbxes.com, it doesn't work.

Previously, I used the following as Physical Phone digitmap, and used the default for SP? digitmap. It worked, but speed dials didn't work. It did work for the speed dial of username@pbxes.com.

(<1>8(00|22|33|44|55|66|77|80|81|82|88)xxxxxxx|(<:1>(416|905|289|647|xxxxxxx)|<**2><:1>[2-9]xx[2-9]xxxxxx|*98|<011:**3>xx.|xx.|911|**|***|222222222|(Mipd)|[^*#]@@.)

azrobert

#3
Change the speed dial to sp1(username@pbxes.com)

or

Add rule "|[^*#]@@." (without quotes) to the Phone Port and ITSP A DigitMaps

I would do the 1st option. The 2nd might will increase the delay after dialing some numbers.

Edit:
The way you defined the SD, it goes thru the normal DigitMap and OutboundCallRoute processing and must match a rule.

My method bypasses the DigitMap and OutboundCallRoute processing and is routed directly to SP1.

jc2516

#4
I use sp1(username@pbxes.com). It works well. Thanks.

I have some more questions.

1. I want to add SP4 for outbound only. How should I set up it?
2. Can I make forward to a speed dial number? I tried *7210#. It didn't work. Speed dial 10 is a local number.

azrobert

I tried dialing *7210 and I think the OBi will forward calls to number 10 at your primary line. I have a very unorthodox config and got an unusual result. It's forwarding numbers to TG1(10)

Look at the following to see what it did for you:
Voice Services -> SP1 Service -> CallForwardUnconditionalNumber

What does this have to do with routing outbound calls to SP4?
What numbers do you want to route to SP4?

You can use a Voice Gateway.
This will reuse another one of you other trunks, leaving SP4 open for another provider.
There are 2 requirements for a VG.
Outbound only.
Your provider will accept outbound calls without registration.

jc2516

I wanted to use the SP4 to support Auto Attendant. Now I'm going to use the VG1 to do it. What should I set up the VG1 and the Auto Attendant if I want:

When the trusted number calls SP1 - SP3, the AA responses, and the outbound do:

Default: VG1. It's for 10 and 11 digits of 416, 647, 905, 289 and toll frees.

other 10 and 11 digits will go SP2.

011xx. go SP3.

I will use myID@pbxes.com as the VG1.

azrobert

#7
I believe PBXes requires registration, so you will have to use SP4. After we get this working you can unregister SP4 to see if it still works. It will be very easy to switch to VG1 if I'm wrong.

Why do you want to use PBXes? It will just add latency. You can define the provider directly on the OBi200. There are several free tollfree providers that you can define on a VG, like tf.callwithus.com.

Anyway, this is what you asked for. Feel free to change your mind.

Voice Services -> Auto Attendant
DigitMap: (<00:$1>|0|1[2-9]xxxxxxxxx|<1>[2-9]xxxxxxxxx)

OutboundCallRoute:
{{0:ph},{(1(800|888|877|866|855|844|216|647|905|289)xxxxxxx):sp4},{(1[2-9]xxxxxxxxx|<1>[2-9]xxxxxxxxx):sp2}

0 is when the caller selects option 1 to ring the OBi phone.
00 is for a callback.
The caller will let it ring once and hangup. The AA will call him back using the same outbound route rules.

Edit:
I had a typo in the outbound route. An extra paren. See the time of the update for when I corrected it.

azrobert

If you are going to use the AA callback feature, there is another change you need to make.