- I CIO e le spese ambiziose per l’AI nel 2025. E oltre
- Lumma Stealer on the Rise: How Telegram Channels Are Fueling Malware Proliferation | McAfee Blog
- HPE, 美 로렌스 리버모어 국립연구소에 DLC 엑사스케일 슈퍼컴퓨터 '엘 캐피탄' 구축
- Threads lets you create your own custom feeds now, just like Bluesky - here's how
- 미 법무부, 구글에 크롬 매각 압박…구글 아성 무너질까
CME Configuration Example: SIP Trunks to Viatalk and VoIP.ms
CME Configuration Example: SIP Trunks to Viatalk and VoIP.ms
I thought I’d drop this in tonight to help those out who are trying to make this happen. This configuration is not complete nor is it as clean as I’d like – I’ll be playing around with it for weeks to come, I’m sure. But it is working – here’s the high points of what this example shows:
1. Configuring CME to work with multiple SIP trunk providers (Viatalk and VoIP.ms shown here)
2. Configuring basic outgoing calling. I have one line on my IP Phone
(1005) that uses VoIP.ms while the other line (1006) uses Viatalk.
CORLists are used to manage this.
3. Configuring basic incoming calling. I have a DID with both SIP
trunking providers – when the call comes in on the DID, the translation
profiles direct it to the correct line on my IP Phone.
Here we go:
UC520#sh run
Building configuration…
Current configuration : 9442 bytes
version 15.1
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname UC520
!
voice service voip
ip address trusted list
ipv4 0.0.0.0 0.0.0.0
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
sip
registrar server expires max 250 min 200
no call service stop
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
!
!
voice register global
max-dn 56
max-pool 14
!
!
!
voice translation-rule 2
rule 1 /9602+/ /602/
rule 2 /9480+/ /480/
rule 3 /9623+/ /623/
!
voice translation-rule 4
rule 1 /91+/ /1/
!
voice translation-rule 5
rule 1 /9011+/ /011/
!
voice translation-rule 7
rule 1 /1005/ /16025551313/
rule 2 /1006/ /16025551212/
!
voice translation-rule 5551212
rule 1 /16025551212/ /1006/
rule 2 /16025551313/ /1005/
!
voice translation-profile Caller-ID
translate calling 7
!
voice translation-profile INCOMING
translate called 5551212
!
voice translation-profile International
translate calling 7
translate called 5
!
voice translation-profile Local10
translate calling 7
translate called 2
!
voice translation-profile LongDistance
translate calling 7
translate called 4
!
dial-peer cor custom
name Business2_10Digit
name Business2_11Digit
name Business1_10Digit
name Business1_11Digit
!
dial-peer cor list Business2-Line
member Business2_10Digit
member Business2_11Digit
!
dial-peer cor list Business2-11Digit
member Business2_11Digit
!
dial-peer cor list Business1-11Digit
member Business1_11Digit
!
dial-peer cor list Business1-Line
member Business1_10Digit
member Business1_11Digit
!
dial-peer cor list Business2-10Digit
member Business2_10Digit
!
dial-peer voice 2000 voip
destination-pattern 2…
session protocol sipv2
session target ipv4:172.30.100.12
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 10 voip
corlist outgoing Business1-11Digit
description Business1 11-Digit Outgoing
translation-profile outgoing LongDistance
destination-pattern 91……….
session protocol sipv2
session target ipv4:losangeles.voip.ms
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 11 voip
corlist outgoing Business1-10Digit
translation-profile outgoing Local10
destination-pattern 9[^1]..[2-9]……
session protocol sipv2
session target ipv4:losangeles.voip.ms
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 12 voip
translation-profile outgoing International
destination-pattern 9011T
session protocol sipv2
session target ipv4:losangeles.voip.ms
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 13 voip
destination-pattern *97
session protocol sipv2
session target ipv4:losangeles.voip.ms
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 30 voip
corlist outgoing Business2-11Digit
translation-profile outgoing LongDistance
destination-pattern 91……….
session protocol sipv2
session target dns:chicago-1a.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 31 voip
corlist outgoing Business2-10Digit
translation-profile incoming INCOMING
translation-profile outgoing Local10
destination-pattern 9[^1]..[2-9]……
session protocol sipv2
session target dns:chicago-1a.vtnoc.net
incoming called-number .
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
!
sip-ua
credentials username <omitted> password 7 <omitted> realm losangeles.voip.ms !Used for authenticating to SIP proxy (incoming calls) – make sure realm matches what the remote server expects (debug ccsip messages to verify)
credentials username <omitted> password 7 <omitted> realm chicago-1a.vtnoc.net
authentication username <omitted> password 7 <omitted> realm losangeles.voip.ms !Used for authenticating outgoing calls – make sure realm matches what the remote server expects (debug ccsip messages to verify)
authentication username <omitted> password 7 <omitted> realm chicago-1a.vtnoc.net
no remote-party-id
retry invite 3
retry register 3
timers register 150
registrar 1 dns:losangeles.voip.ms expires 200
registrar 2 dns:chicago-1a.vtnoc.net expires 300
sip-server dns:losangeles.voip.ms
!
!
!
telephony-service
no auto-reg-ephone
max-ephones 14
max-dn 56
ip source-address 172.30.100.1 port 2000
voicemail 2000
max-conferences 4 gain -6
transfer-system full-consult
secondary-dialtone 9
create cnf-files version-stamp 7960 Sep 10 2010 17:13:30
!
ephone-dn 1 dual-line
number 1005 secondary 16025551313 no-reg primary
label Business1 (1005)
name Neo
corlist incoming Business1-Line
!
!
ephone-dn 2 dual-line
number 1010 no-reg primary
name Morpheus
!
!
ephone-dn 3 dual-line
number 1006 secondary 16025551212 no-reg primary
label Business2 (1006)
corlist incoming Business2-Line
!
!
ephone 1
device-security-mode none
mac-address 0014.A89E.F845
button 1:1 2:3
!
ephone 2
device-security-mode none
mac-address 0014.1C48.E6D1
button 1:2