Los Angeles Telephone

Long Distance
Manufacture Discontinued
Old Telephones as Entertainment
Telephone Collectors International

Information 411

Comment? Question?

Configuring C*NET

These instructions will help you configure a FreePBX or Trixbox Asterisk PBX for a basic C*NET installation.

This page assumes you have a working FreePBX or Trixbox Asterisk PBX system and it is connected to a broadband internet connection, like Cable Internet or DSL.

This page also assumes you have reserved a C*NET office code and you have activated your office code.

STEP 1: Download C*NET Config File

    • C*NET Configuration File

STEP 2: Modify Config File

In the file, 555 is the example C*NET office code. In line 7 of the config file, replace that with the three digits of your own C*NET office code.

E.g.: If your C*NET office code is 234, change 5550000 to 2340000.

In line 8 of the file, replace the example name "Alex Bell" with your own name.

Lines 41 through 43 of the file are instructions for incoming C*NET calls. In the example, only a single thousands group in the 555 office code, the 1 thousands, is routed from C*NET to internal extensions.

In line 41 through 43, replace 5551 with your C*NET office code plus the first digit of your C*NET exchange's thousands number block.

E.g.: If your C*NET office code is 234 and your thousands number block is 2, change 5551XXX to 2342XXX.

Note: If you want C*NET to be able to dial ALL the thousands number blocks in your PBX, replace 5551 with your C*NET office code plus "X".

E.g.: Change 5551XXX to 234XXXX

The line which includes "SIPAddHeader" causes incoming C*NET calls to have a distinctive ring. This line may not be compatible with your system and can be removed with no harm to the rest of the script.

STEP 3: Install Config File

There's two ways you can do this.

1. Copy the text of the config file and paste it into THE BOTTOM of the file extensions_custom.conf which located in the /etc/asterisk directory.

or 2. Upload the file to the /etc/asterisk directory and name it cnet.conf. Then, at THE BOTTOM of the extensions_custom.conf file, include the new conf file by adding this line:

#include cnet.conf

STEP 4: Restart Asterisk

At the UNIX command line, type this command (including the single quotes):

asterisk -rx 'restart now'

STEP 5: Add C*NET IAX Trunk

In the FreePBX or Trixxbox console, select "Trunks" and then click on "Add IAX2 Trunk".

Configure it as in this example:

Click on the image above to see it full-sized. It makes it easier to do this if you print out the example so that you can look at it while entering the info into your console.

The areas outlined in red in the examples are where there is information you must enter on your system.

In "USER Context" where it says "cnetguest" in the example, replace that with the context name that you specified when you signed up for your C*NET number allocation.

Click on the "Submit Changes" button at the end of each of these example steps.

STEP 6: Add C*NET Custom Trunk

Click on "Trunks" and then click on "Add Custom Trunk".

Configure it as in this example:

STEP 7: Add C*NET Outgoing Route

Click on "Outbound Routes" and then click on "Add Route".

Configure it as in this example:

In this example, the dial plan 1XXXXXXX is for American C*NET numbers, and 011|X. is for international C*NET numbers.

In the above example, a user can dial 1 and seven digits and go right to the C*NET without an access code. The access code 011 is supplied for international C*NET numbers that do not match 1 plus seven digits. The character before the X is a "pipe" (shifted backslash on my keyboard). Anything before the pipe is not sent to C*NET.

If this conflicts with numbering on your system, you might use a simpler C*NET dial plan like:


That's 8 1 pipe X dot. That will send anything you dial after dialing access code 81 to the C*NET. Of course, you can use any digit or digits in place of 81 that do not conflict with other numbers on your system.

Click on "Submit Changes", and finally, click on "Apply Configuration Changes" at the top of the console page.

STEP 8: Configure Your Router

In some C*NET installations, in order for C*NET calls to complete, you must open port 4569 in your router and point it to the local IP address of your Asterisk server.

Every router setup is different, feel free to contact me if you need help with this step.


Page Last Updated: July 8, 2011

Back to Home Page

Original Content Copyright © 2010-2019 Adam Forrest