#

Sunday, September 2, 2018

Mapping Calls to FXO Ports on Analog Gateways

This can be found mostly nowadays with SRST configuration. But it is not only limited to SRST. If you have an ISR at home, you can do this with your home PSTN connection. I have a Cisco 2911 with FXO ports and some IP Phones which are registered to my VGW (Voice Gateway Router).

If you want to know how to register an IP Phone at a Router please click here.
If you want to know how to configure SIP SRST please click here.

Setup is simple, the RJ11 from PSTN analog line connects directly to the FXO port of the router. FXO (Foriegn Exchange Office) is a type of WAN interface card which an analog line from a PBX or a Telephone service provider can be connected to.




(1) Create a POTS dial peer for outgoing calls

VGW(config)#dial-peer voice 100 pots
VGW(config-dial-peer)#destination-pattern ..........
VGW(config-dial-peer)#port 0/0/0

Destination pattern .......... matches any number with 10 digits. port 0/0/0 is the physical analog port connected to the analog line.

(2) Configure an extension to ring for incoming calls

VGW(config)#voice-port 0/0/0
VGW(config-voiceport)#connection plar opx 1111
VGW(config-voiceport)#caller-id enable

This is configured to ring 1111 extension. Last command is to identify the caller's number.

Above configuration is enough to make calls out and receive calls in. Following command will show an active incoming call on port 0/0/0 as off-hook.

VGW# show voice port summary





Now let's say if you have 2 or more analog lines connected to several ports. You can create a trunk group and assign it to voice ports.

VGW(config)#trunk group PSTN
VGW(config-trunk-group)#hunt-scheme round-robin

VGW(config)#voice-port 0/0/0
VGW(config-voiceport)#trunk-group PSTN 1

VGW(config)#voice-port 0/0/1
VGW(config-voiceport)#trunk-group PSTN 2

In above configuration, Line choosing method is round robin which means if one line is busy it will go to the other line. 1 in the trunk-group sub command states it is the preferred line.

Note:-

show call active voice and debug voip dialpeer commands will be useful in troubleshooting.

6 comments:

  1. I'm curious to find out what blog system you have been working with?
    I'm experiencing some small security issues with my latest site and I'd like to find something
    more safe. Do you have any recommendations?

    ReplyDelete
  2. Thank you, I've just been searching for information approximately this subject
    for a while and yours is the best I've discovered so far.
    But, what about the bottom line? Are you positive about the source?

    ReplyDelete
  3. It's amazing to pay a quick visit this site and reading the views of all friends regarding this post, while
    I am also eager of getting know-how.

    ReplyDelete
  4. What a data of un-ambiguity and preserveness of valuable experience about unexpected emotions.

    ReplyDelete
  5. Hello, I read your blog on a regular basis. Your writing
    style is witty, keep doing what you're doing!

    ReplyDelete
  6. Hi everyone, it's my first pay a quick visit at this web site, and paragraph is actually fruitful for me, keep up posting these posts.

    ReplyDelete