Skip to end of metadata
Go to start of metadata

1.  Set a static IP address for your Obi 110 device:

System Management:

   Network Settings:

      Internet Settings:

         Addressing Type:  Static

         IPAddress:  Pick an IP Address for your device

         SubnetMask: 255.255.255.0

         DefaultGateway:  192.168.1.1

         DNSServer1: 8.8.8.8

         DNSServer2: 8.8.4.4

Note:  Setting up a static IP address is not required for this to work.  However, giving your Obi 110 device a static IP address makes it easier to find in the future and to make configuration changes.

2.  Set-up the Obi 110 as an FXO Port (i.e., to allow you to connect a phone line to the LINE port and then make and receive calls on it using your PBX):

Access your OBI Device's web-interface and then locate and change the following settings:

Service Providers

   ITSP Profile B

      SIP

         SIP

            Proxy Server:  YOURPBXIPADDRESS

            X_SpoofCallerID:  Checked

Note:  It is not clear to me that the X_SpoofCallerID setting is necessary, but the phone I currently use does not have Caller ID so I can’t test it.

            X_AccessList:  YOURPBXIPADDRESS

Voice Services

   SP2 Service

      SP2 Service

         X-ServProvProfile:  B

         X_InboundCallRoute:  LI

      SIP Credentials:

         AuthUserName: OBITRUNK1

         AuthPassword:  FXOPASSWORD

Note:  the AuthUserName should NOT be your phone number.  It must match with the trunk name used when you set-up the trunk in FreePBX (in the next step).

Physical Interfaces

   Line Port

      Line Port

         InboundCallRoute:  SP2(2125551212)

Note:  Change 2125551212 to the phone number of the line that will be attached to your LINE port.

         RingDelay:  3500

Note:  This is how long the Obi 110 will allow the phone to ring before giving up on waiting for Caller ID.  If the Obi 110 gets a Caller ID signal during this period, it immediately puts the call through.  If you do not have Caller ID, you may wish to set this to 0.

         DialDelay:  1000

Note:  My POTS line can sometimes take longer to pull a dial tone because I have an alarm on it.  You may not need to change this figure from the default.

         DialDigitOnTime:  50

         DialDigitOffTime:  50

Note:  You don’t need to change the above two settings either, but your calls will go out faster if you do.

      PSTN Disconnect Detection:

         SilenceTimeThreshold:  600

Note:  The above increases the amount of time that the Obi will wait to disconnect a call if it hears silence.  600 equals ten minutes.  You may not want to change the default.

      Port Settings:

         ACImpedance: 600

Note:  You may need to change this to eliminate echo problems.  Good luck!

         ChannelTXGain:  0

         ChannelRXGain: 5

Note:  You don’t need to change the above, but if you experience echo, you might want to reduce one or both of them.

3.  Set-up a Trunk in FreePBX:

Now, you need to tell FreePBX how to make and receive calls from the Obi 110’s connected line.  You start by creating a SIP trunk:

Trunk Name:  Obitrunk1

Outbound Caller ID:  2125551212

Note:  Change 2125551212 to whatever your outbound Caller ID actually is.   This setting doesn’t actually change your Caller ID, but it may be used in FreePBX’s Call Detail Records.

Maximum Channels:  Blank

Dialed Number Manipulation Rules:

18882472425+411|

Note:  The Dialed Number Manipulation Rule above isn’t necessary, but I use it to prevent users from dialing 411.

Trunk Name:  OBITRUNK1

Note:  The Trunk Name above (the second one in FreePBX) must match the AuthUserName that you entered when you set-up the FXO Port in the Obi 110.

Peer Details:

username=OBITRUNK1

secret=FXOPASSWORD

host=dynamic

type=friend

context=from-trunk

qualify=yes

dtmfmode=rfc2833

canreinvite=no

disallow=all

allow=ulaw

Notes: 

The “username” above must match the Trunk Name and the AuthUserName you entered when you set-up the FXO Port in the Obi 110.

The secret you enter above must match the AuthPassword you entered when you set-up the FXO Port in the Obi 110.  It does not need to be “FXOPASSWORD”.  You can select any password you like.

4.  Set-up an inbound route in FreePBX

The Inbound Route in FreePBX tells FreePBX how to route calls that ring in to the Obi 110.

Description:  Obi110

DID Number:  2125551212

NOTE:  This must match the number you put in the Obi 110 FXO setup (above) inside the parenthesis in the InboundCallRoute after you entered SP2(.  Normally, it should be the phone number of the line attached to the LINE port of the Obi 110.

CID name prefix:  POTS-

NOTE:  You can put whatever you want in the above field.  I like to have POTS- to indicate that this call came in on POTS (Plain Old Telephone Service) line.

Set Destination:  Ring Group/Extension of Your Choice

 

6.  Set-up an Outbound Route in FreePBX

 

Route Name:  81DialsPOTS

Dial Patterns:

81|

81|1NXXNXXXXXX

81|NXXNXXXXXX

81|NXXXXXX

81|X11

Trunk Sequence:  OBITRUNK1

Note:  You can obviously set-up any outbound route you want.  This route allows you to force calls to the Obi device by dialing 81.  The very first line will allow you to get a dial-tone if you dial 81 by itself.  If you don’t want that ability, delete line that reads: 81|

If you want to make the dialing code something else, just change 81 wherever it appears to whatever you want it to be (i.e., 081).

 

Route Name:  EMERGENCY

Dial Patterns:

911

Trunk Sequence:  OBITRUNK1

Note:  This route forces emergeny calls, i.e. 911 calls, to go out over the Obi 110. 

  • No labels