cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
871
Views
30
Helpful
11
Replies

Configuration for H323 Voice Gateway with 5 FXO Ports

VOIP323ps
Level 1
Level 1

I have a working configuration for 1x FXO ports and now I need to add 4x FXO ports to the gateway. I need to know the easiest way to configure it. I know I can create a truck group and add all FXO ports into it and add it to each dial-peer. My question is what about the voice translation-rule, voice translation-profile, and dial-peer? Please see below for my 5x phone lines and my configuration for 1x FXO port.

Phone (234)567-8900 to ext500 port 0/0/0
Phone (234)678-9000 to ext501 port 0/0/1
Phone (234)456-7890 to ext502 port 0/0/2
Phone (234)321-4789 to ext503 port 0/0/3
Phone (234)234-5678 to ext504 port 0/0/4

------------------------------------------------------------------

voice translation-rule 1

rule 1 /2345678900/ /500/

 

voice translation-rule 2

rule 2 /500/ /2345678900/

------------------------------------------------------------------

voice translation-profile INCOMING_8900

translate called 1

 

voice translation-profile OUTOGING_8900

translate calling 2

------------------------------------------------------------------

voice-port 0/0/0

translation-profile incoming INCOMING_8900

translation-profile outgoing OUTGOING_8900

description line 2345678900

caller-id enable

connection plar opx 500

trunk-group FXO1

-------------------------------------------------------------------

dial-peer voice 11 voip

description *** CUCM Peer ***

destination-pattern 500$

Voice-class codec 1

Voice-class h323 1

Session target ipv4: 10.0.0.2

dtmf-relay h245-signal h245-alphanumeric

ip qos dscp cs3 signaling

no vad

----------------------------------------------------------------------

  • Should I create 2 voice translation rules for each line? So total of 10 voice translation rules?
  • Should I create 2 voice translation-profile for each line? So total of 10 translation-profiles?
  • Should I create new dial-peer voice voip for each ext such as destination-pattern 500$, destination-pattern 501$ and so on…?

Thank you all in advance!

11 Replies 11

islam.kamal
Level 10
Level 10

Hello

1- For Incoming calls , just do "connection plar opx 5XX" under voice-port. So you can easily manage your incoming calls by using this command to match incoming calls , wihout using translation-rule for incoming.

2-For Outgoing calls , No need for outgoing translation rules. You can do the below to match using ANI to forward the call to correct FXO port based on your design.

dial-peer voice 500 pots

destination-patter 9[2-9]......

forward-digits 7

answer-address 500         /See the call with 500 will go using 0/0/0 , you need to do for others exts.

port 0/0/0

 

dial-peer voice 501 pots

destination-patter 9[2-9]......

forward-digits 7

answer-address 501         /See the call with 501 will go using 0/0/1 , you need to do for others exts.

port 0/0/1

3-For sure no need o create for each ext specific dial-peer , you can only use the below

dial-peer voice 11 voip

destination-patter 5..     /5.. will match all incoming exts/

 

Thanks

please rate all useful information

Islam,

Thank you very much. Let me confirm with you again.

1. I don't need to use any voice translation-rule or voice translation-profile if I do the following on very voice port right? Such as:

voice-port 0/0/0
description line 2345678900
caller-id enable
connection plar opx 5XX
trunk-group FXO1

voice-port 0/0/1
description line 2346789000
caller-id enable
connection plar opx 5XX
trunk-group FXO1

voice-port 0/0/2
description line 2344567890
caller-id enable
connection plar opx 5XX
trunk-group FXO1

and so on.....
-------------------------------------------------------------------
2. You mean I need to do this for all outgoing calls dial-peer? I thought I can just add everything to a trunk-group FXO1 and put trunk-group FXO1 on every dial-peer voice pots such as:

# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# trunk-group FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# trunk-group FXO1

-----------------------------------------------------------------------

3. Got it. I just need one voip dial-peer right? Can you double check the following?

dial-peer voice 11 voip
description *** CUCM Peer ***
destination-pattern 5..
Voice-class codec 1
Voice-class h323 1
Session target ipv4: 10.0.0.2
dtmf-relay h245-signal h245-alphanumeric
ip qos dscp cs3 signaling
no vad

 

Hello

Point 1, and Point 3 are perfect , for Point 2 , kindly find the below:-

# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
answer-address 501                 //you have to add the number "ANI" which you need to go out from FXO 0/0/0 or FXO1// 
# forward-digits 7
# trunk-group FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
answer-address 501                 //you have to add the number "ANI" which you need to go out from FXO 0/0/0 or FXO1//
# forward-digits 3
# trunk-group FXO1

 

 

Thanks

Please rate all useful information

 

Thanks again Islam.

So you mean I will need to put "answer-address ANI" on every single dial-peers with all 5 extensions? such as the following?


-----------------------------------------------

For Ext 500


# dial-peer voice 9 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 500
# trunk-group FXO1


# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 500
# trunk-group FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 500
# trunk-group FXO1

# dial-peer voice 12 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 500
# trunk-group FXO1
-----------------------------------------------------

For Ext 501

# dial-peer voice 13 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 501
# trunk-group FXO1


# dial-peer voice 14 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 501
# trunk-group FXO1

# dial-peer voice 15 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 501
# trunk-group FXO1

# dial-peer voice 16 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 501
# trunk-group FXO1
-------------------------------------------------------

For Ext 502


# dial-peer voice 17 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 502
# trunk-group FXO1


# dial-peer voice 18 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 500
# trunk-group FXO1

# dial-peer voice 19 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 502
# trunk-group FXO1

# dial-peer voice 20 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 502
# trunk-group FXO1

-----------------------------------------------------------

and so on for other additional ext 503, 504

Hello 

 

Your configuration above meet the below:-

1-Outgoing calls will hit FXO1 trunk " so call will hit fxo 0/0/0 , if busy will hit 0/0/1 ,then 0/0/2" , so on the above configuration you will be unable to force your outgoing call from 500 to hit fxo 0/0/0 , may be sometime wil hit fxo 0/0/1 or fxo 0/0/2.

 

Thanks

please rate all useful information

Hello

This configuration if you need to do mapping to make a specific number hit specific port . Mapping to FXO , so ou can use the below:-

 

voice-port 0/0/0
description line 2345678900
caller-id enable
connection plar opx 500
trunk-group FXO1                            

voice-port 0/0/1
description line 2346789000
caller-id enable
connection plar opx 501
trunk-group FXO2

voice-port 0/0/2
description line 2344567890
caller-id enable
connection plar opx 502
trunk-group FXO3


voice-port 0/0/3
description line 2343214789
caller-id enable
connection plar opx 503
trunk-group FXO4


voice-port 0/0/4
description line 2342345678
caller-id enable
connection plar opx 504
trunk-group FXO3


For Ext 500


# dial-peer voice 9 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 500
# trunk-group FXO1                                   /500 will use fxo 0/0/0 for outgoing calls/


# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 500
# trunk-group FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 500
# trunk-group FXO1

# dial-peer voice 12 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 500
# trunk-group FXO1
-----------------------------------------------------

For Ext 501

# dial-peer voice 13 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 501
# trunk-group FXO2                         /501 will use fxo 0/0/1 for outgoing calls/

 


# dial-peer voice 14 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 501
# trunk-group FXO2

# dial-peer voice 15 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 501
# trunk-group FXO2

# dial-peer voice 16 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 501
# trunk-group FXO2
-------------------------------------------------------

For Ext 502


# dial-peer voice 17 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 502
# trunk-group FXO3                                      /502 will use fxo 0/0/2 for outgoing calls/


# dial-peer voice 18 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 502
# trunk-group FXO3

# dial-peer voice 19 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 502
# trunk-group FXO3

# dial-peer voice 20 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 502
# trunk-group FXO3

 

Thanks

please rate all useful information

Islam,

I got it for the outgoing calling. What about for incoming calling? Do I need to do something like below for different trunk-group as well too?

# dial-peer voice 1 pots
# description *** For Incoming Call Matching ***
# incoming called-number .
# direct-inward-dial
# trunk-group FXO1

# dial-peer voice 2 pots
# description *** For Incoming Call Matching ***
# incoming called-number .
# direct-inward-dial
# trunk-group FXO2

# dial-peer voice 2 pots
# description *** For Incoming Call Matching ***
# incoming called-number .
# direct-inward-dial
# trunk-group FXO3

 

and so on?

 

Hello

no , use connection-plar opx under voice-ports .Lets try to summarize the above to start test

Incoming calls 

voice-port 0/0/0
description line 2345678900
caller-id enable
connection plar opx 500                  
trunk-group FXO1

voice-port 0/0/1
description line 2346789000
caller-id enable
connection plar opx 501
trunk-group FXO2

voice-port 0/0/2
description line 2344567890
caller-id enable
connection plar opx 502
trunk-group FXO3

 

2-Outgoing calls

A- option to allow all users hit FXO ports randomly using one trunk which includes all FXO ports.

# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# trunk-group FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# trunk-group FXO1

 

B-mapping FXO to interna ext , to allow 500 go to fxo1 , 501 go to fxo2 , 502 go to fxo3. Example for 501 which will hit fxo2

For Ext 501

# dial-peer voice 13 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 501
# trunk-group FXO2                         /501 will use fxo 0/0/1 for outgoing calls/

 


# dial-peer voice 14 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 501
# trunk-group FXO2

# dial-peer voice 15 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 501
# trunk-group FXO2

# dial-peer voice 16 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 501
# trunk-group FXO2

 

Thanks

please rate all useful information

 


Islam,

Got it! You mean I don't need the dial-Peer voice 1 pots at all with direct-inward-dial right? can you please double check the following configuration? This is for direct mapping for both incoming and outgoing calls.

Thanks!

 

Phone (234)567-8900 to ext500 port 0/0/0
Phone (234)678-9000 to ext501 port 0/0/1
Phone (234)456-7890 to ext502 port 0/0/2

--------------------------------------------

voice-port 0/0/0
description line 2345678900
caller-id enable
connection plar opx 500
trunk-group FXO1                         

voice-port 0/0/1
description line 2346789000
caller-id enable
connection plar opx 501
trunk-group FXO2

voice-port 0/0/2
description line 2344567890
caller-id enable
connection plar opx 502
trunk-group FXO3
----------------------------------------------

Ext x500

# dial-peer voice 9 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 500
# trunkgroup FXO1                           

# dial-peer voice 10 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 500
# trunkgroup FXO1

# dial-peer voice 11 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 500
# trunkgroup FXO1

# dial-peer voice 12 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 500
# trunkgroup FXO1
--------------------------------------------------
Ext x501

# dial-peer voice 13 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 501
# trunkgroup FXO2                          

# dial-peer voice 14 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 501
# trunkgroup FXO2

# dial-peer voice 15 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 501
# trunkgroup FXO2

# dial-peer voice 16 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 501
# trunkgroup FXO2
----------------------------------------------------
Ext x502

# dial-peer voice 17 pots
# description *** For outgoing 9 Traffic to PSTN ***
# destination-pattern 1……….
# tone ringback alert-no-PI
# forward-digits 10
# answer-address 502
# trunkgroup FXO3                         

# dial-peer voice 18 pots
# description *** For 7 digit local calls ***
# destination-pattern [2-9]……
# tone ringback alert-no-PI
# forward-digits 7
# answer-address 502
# trunkgroup FXO3

# dial-peer voice 19 pots
# description *** For 911 Calls ***
# destination-pattern 911
# tone ringback alert-no-PI
# forward-digits 3
# answer-address 502
# trunkgroup FXO3

# dial-peer voice 20 pots
# description *** For 011 International Calls ***
# destination-pattern 011T
# no digit-strip
# tone ringback alert-no-PI
# answer-address 502
# trunkgroup FXO3
--------------------------------------------------------

dial-peer voice 1000 voip
description *** CUCM Peer ***
destination-pattern 5..
Voice-class codec 1
Voice-class h323 1
Session target ipv4: 10.0.0.2
dtmf-relay h245-signal h245-alphanumeric
ip qos dscp cs3 signaling
no vad

Hi

+5 for you . Everything is ok now . You can go to test.Do not forget for rate and correct answers.

 

Thanks

please rate all useful information

Islam,

Thanks again! Yes, that's work! One more question. How about if I want to add phone x533 which share both external incoming and outgoing call with x502? What will be the configuration looks like for that?

My main goal is phone x533 can make external calls to outside and share the same number as (234)456-7890. That is possible right?

Phone (234)456-7890 to ext502 port 0/0/2

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: