cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
452
Views
0
Helpful
1
Replies

Cisco VOIP Gateway with Multiple Number (voice port)

a.aljiledi
Level 1
Level 1

Hello everyone,, 

 

i have Cisco 2900 running as a VOIP gateway that connected to E1 interface that provide ISDN service ,, and connected to the 3cx server as SIP gateway,, 

 

i need to add another E1 interface to use another voice number ,, so how i can configure 2 voice port and 2 sip gateway to the 3CX ,, and how i can route the calls ,,,

 

the phone number that already running = 3660009  & short number = 0901

the new phone number that = 3660010

 

the current configuration for 1 voice port on the following :

 

 

controller E1 0/1/1   
pri-group timeslots 1-31

 

 

interface Serial0/1/1:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn calling-number 3660009

 

 

 

 

voice-port 0/1/1:15
connection plar 0901

 

dial-peer voice 3 pots
description Outgoing calls to PSTN
destination-pattern 09........
port 0/1/1:15
forward-digits all
!
dial-peer voice 1 pots
description incoming calls from PSTN
incoming called-number .
direct-inward-dial
!
dial-peer voice 4 voip works
description Outgoing calls to 3CX
destination-pattern 0901
signaling forward none
session protocol sipv2
session target ipv4:10.10.10.1
voice-class sip rel1xx supported "100rel"
no voice-class sip pass-thru content unsupp
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 5 pots
description Outgoing calls to PSTN-Service
destination-pattern 1300
port 0/1/1:15
forward-digits all
!
dial-peer voice 2 voip
description incoming calls from FREEPBX
translation-profile incoming AutoAttendant
session protocol sipv2
session target ipv4:10.10.10.1
incoming called-number .%
voice-class sip rel1xx supported "100rel"
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
!
gateway
timer receive-rtp 1200
!
sip-ua
no remote-party-id
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
sip-server ipv4:10.10.10.1

 

 

 

---   

 

the configuration on 3CX,,,

 

Trunk Port defined the Router IP and Port  only,,,

 

 

waiting for any advice,,,

 

Thanks

 

1 Reply 1

You should not need to create an additional trunk in the 3CX system for this. Based on the shared information I think that something similar to this should do the trick for you.

controller E1 0/1/? 
pri-group timeslots 1-31
!
interface Serial0/1/?:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn calling-number 3660010
!
voice-port 0/1/?:15
connection plar <number you want to use for PLAR>
!
voice class uri 3CX sip
host ipv4:10.10.10.1
host ipv4:<any other IP that the 3CX system might have>
!
voice class e164-pattern-map 1
description E164 Pattern Map for called number to 3CX
e164 0901
e164 <any other directory number that you have on 3CX that you want to send calls to from the gateway>
!
voice class server-group 1
ipv4 10.10.10.1 preference 1
ipv4 <any other IP that the 3CX system might have> preference 2
description Inbound calls to 3CX
!
voice class sip-options-keepalive 1
description Used for Server Group SIP OPTIONS PING
!
dial-peer voice 30 pots
description Outgoing calls to PSTN
destination-pattern <any pattern to use for your new E1 for outbound calls to PSTN>
port 0/1/?:15
forward-digits all

!As an option to add dial-peer 30 you could reconfigure dial-peer 3 to use a trunk group instead of individual a port
!
dial-peer voice 4 voip
description Outgoing calls to 3CX
no destination-pattern 0901
destination e164-pattern-map 1
signaling forward none
session protocol sipv2
no session target ipv4:10.10.10.1
session server-group 1
voice-class sip options-keepalive profile 1
voice-class sip rel1xx supported "100rel"
no voice-class sip pass-thru content unsupp
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 2 voip
description Incoming calls from 3CX
translation-profile incoming AutoAttendant
session protocol sipv2
no session target ipv4:10.10.10.1 !This is an outbound dial-peer setting, no need to have on an inbound dial-peer
no incoming called-number .%
incoming uri via 3CX !Better match than what you had before with incoming called-number
voice-class sip rel1xx supported "100rel"
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
codec g711ulaw
no vad
!

All this depends on the version of IOS you have, for your gateway model my recommendation would be to use version 15.7(3)M8.

For additional in-dept information on IOS call routing have a look at this marvelous document.



Response Signature