December 11, 2017, 07:15:59 am *
Welcome, Guest. Please login or register.
News:
 
   Forum Home   Search Login Register OBiTALK  
Pages: [1]
  Print  
Author Topic: Help with basic digit map  (Read 2107 times)
SeanTek
Jr. Member
**
Posts: 32


« on: August 10, 2017, 10:47:04 pm »

I am new to making digit maps.

First of all, are the terms "dial plan" and "digit map" basically synonymous?

I want to map a single short number (311) to a full telephone number (USA +1). So, it would be:
311 -> 12134733231. I want this to work regardless of which line I have chosen, with no change to the service choice.

I thought I would create the digit map in the Obi config page:
User Defined Digit Map2
Label: LA311
DigitMap: (<311:12134733231>)

But it does not seem to have the desired effect. What am I missing?

(As a bonus, what else do I put in the digit map to stop the waiting once 3 1 1 are pressed, so that the call is immediately connected?)
Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2699


« Reply #1 on: August 11, 2017, 12:19:26 am »

User defined digit maps have no effect unless they are 'called' from one of the usual places.

You can explicitly insert

<311:12134733231>|

immediately after the opening bracket of the Phone Port Digit Map. (Both Phone Ports if an OBi202.)

But that will not work if you are using **1 etc to select the outgoing SP.  I don't see why inserting

<311:12134733231>|<**1311:**112134733231>|<**2311:**212134733231|

wouldn't overcome that.


« Last Edit: August 11, 2017, 02:16:56 am by drgeoff » Logged
SeanTek
Jr. Member
**
Posts: 32


« Reply #2 on: August 11, 2017, 01:53:00 am »

Add

<311:12134733231S0>|

immediately after the opening bracket of the Phone Port Digit Map.

To be clear: that is Physical Interfaces -> PHONE 1 -> PHONE Port -> DigitMap , right?

Mine is currently:

Code:
([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))

which I believe is the default. But there is no opening curly brace { .

You can delete your user defined map. User defined digit maps have no effect unless they are 'called' from one of the usual places.

What do you mean by "the usual places"? You mean, called from somewhere like the PHONE Port -> DigitMap you mentioned above?
Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2699


« Reply #3 on: August 11, 2017, 02:12:13 am »

I modified my reply.  See above

In UK English, 'bracket' can mean a ( .  Maybe that is not the case where you are.

I'm unsure about the S0 bit even after consulting the Admin Guide.  Angry  http://www.obihai.com/OBiDeviceAdminGuide#_Toc367543132
« Last Edit: August 11, 2017, 02:14:19 am by drgeoff » Logged
azrobert
Hero Member & Beta Tester
*****
Posts: 3190


« Reply #4 on: August 11, 2017, 08:37:53 am »

I think the correct syntax is: <311S0:12134733231>

You need to match 311 first before transformation occurs, so you need to use S0 on the 311.

The phone digit map is always used, so drgeoff's suggestion for the **x prefixes will work. If you want to place the code in other digit maps you must explicitly point to them. The default phone digit map points to the primary line's digit map with rule (Mpli).  Rule "**2(Msp2)" is used when forcing a call to SP2.

Another coding option is to include the above rule in each of the ITSP digit maps.

If you create a user digit map and name it udd, you need to add rule (Mudd) to the phone digit map.
Logged
SeanTek
Jr. Member
**
Posts: 32


« Reply #5 on: August 11, 2017, 09:45:43 am »

In UK English, 'bracket' can mean a ( .  Maybe that is not the case where you are.

I would call ( a 'parenthesis'. [ is a 'bracket'. { is a 'curly brace'.  Cheesy

Anyway I will test these out shortly (after the oauth_disabled storm dies down).
Logged
drgeoff
Hero Member & Beta Tester
*****
Posts: 2699


« Reply #6 on: August 11, 2017, 09:51:28 am »

In UK English, 'bracket' can mean a ( .  Maybe that is not the case where you are.

I would call ( a 'parenthesis'. [ is a 'bracket'. { is a 'curly brace'.  Cheesy
See BODMAS and PEMDAS in the Mnemonics section at https://en.wikipedia.org/wiki/Order_of_operations
Logged
SeanTek
Jr. Member
**
Posts: 32


« Reply #7 on: August 27, 2017, 07:26:29 pm »

I tried these, and they worked! Specifically:

Code:
<311:12134733231>|
and
Code:
<311S0:12134733231>|

worked. The latter is my preferred approach, because once I enter 311 I want it to "go" immediately.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC