dslreports logo
site
spacer

spacer
 
    All FAQs Site FAQ DSL FAQ Cable Tech About DSL Distance DSL Hurdles »»
spc

spacer




how-to block ads



Here is a config template to use to configure a Cisco router to access a SIP VoIP provider. Link to the full config description

voice translation-rule 2
rule 1 /614xxxxxxx/ /xxxxxxx/
!
voice translation-rule 7
rule 1 /^2../ /614xxxxxxx/
!
voice translation-rule 8
rule 1 /^9\(1..........\)/ /\1/
rule 2 /^9614\(.......\)/ /\1/
rule 3 /^9\(.......\)/ /\1/
rule 4 /^9\(011.*\)/ /\1/
rule 5 /^9\([2-9]11\)/ /\1/
!
voice translation-rule 9
rule 1 /^8\(1..........\)/ /\1/
rule 2 /^8614\(.......\)/ /\1/
rule 3 /^8\(.......\)/ /\1/
rule 4 /^8\(011.*\)/ /\1/
rule 5 /^8\([2-9]11\)/ /\1/
!
voice translation-rule 91
rule 1 /^614\(.*\)/ /9\1/
rule 2 /^\(..........\)/ /91\1/
rule 3 /^\(.*\)/ /9\1/
!
!
voice translation-profile SIP
translate calling 7
translate called 8
!
voice translation-profile cid_fix
translate calling 91
!
voice translation-profile default
translate called 1
!
voice translation-profile strip_9_out
translate called 9
!
voice translation-profile voip
translate called 2
!
class-map match-any voice-signaling
match dscp af31
class-map match-any voice-udp
description Class Mapping for VoIP RTP
match dscp ef
!
policy-map voice-qos
description VoIP QoS
class voice-udp
priority 256
class voice-signaling
bandwidth 128
class class-default
fair-queue
!
interface Dialer1
service-policy output voice-qos
!
dial-peer voice 800 voip
translation-profile outgoing SIP
destination-pattern 9[2-9]11
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 801 voip
translation-profile outgoing SIP
destination-pattern 9614.......
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 802 voip
translation-profile outgoing SIP
destination-pattern 9[2-9]......
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 803 voip
translation-profile outgoing SIP
destination-pattern 1[2-9].........
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 804 voip
translation-profile outgoing SIP
destination-pattern 9011T
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 799 voip
translation-profile incoming voip
translate-outgoing calling 91
incoming called-number 614xxxxxxx
!
dial-peer voice 806 voip
translation-profile outgoing SIP
destination-pattern 1614.......
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 807 voip
translation-profile outgoing SIP
destination-pattern 614.......
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 808 voip
translation-profile outgoing SIP
destination-pattern 1[2-9].........
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 809 voip
translation-profile outgoing SIP
destination-pattern 011T
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 810 voip
translation-profile outgoing SIP
destination-pattern *..
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 811 voip
translation-profile outgoing SIP
destination-pattern *1
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 812 voip
translation-profile outgoing SIP
destination-pattern *67.......
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 813 voip
translation-profile outgoing SIP
destination-pattern *671..........
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay sip-notify rtp-nte
codec g711ulaw
!
dial-peer voice 814 voip
translation-profile outgoing SIP
destination-pattern *123
session protocol sipv2
session target dns:neptune.vtnoc.net
dtmf-relay rtp-nte
codec g711ulaw
!
!
sip-ua
authentication username 1614xxxxxxx password xxxxxxxxxxxxxxxxxxx
no remote-party-id
retry invite 4
retry response 3
retry bye 2
retry cancel 2
retry register 5
timers register 250
mwi-server dns:neptune.vtnoc.net expires 3600 port 5060 transport udp unsolicited
registrar dns:neptune.vtnoc.net expires 3600
sip-server dns:neptune.vtnoc.net
!
telephony-service
load 7960-7940 P00308000100
max-ephones 48
max-dn 192
ip source-address 192.168.2.1 port 2000
auto assign 1 to 1
service phone displayIdleTimeout 00:30
service phone displayOnDuration 1:00
timeouts interdigit 8
system message CME 4.0
url services »phone-xml.berbee.com/menu.xml
time-zone 12
time-format 24
voicemail *123
max-conferences 8 gain -6
call-forward pattern .T
moh music-on-hold.au
transfer-system full-consult
transfer-pattern .T
after-hours block pattern 1 1900 7-24
after-hours block pattern 2 1976 7-24
!
ephone-dn 30 dual-line
number 1614xxxxxxx
label VoIP 614-xxx-xxxx
!
ephone 1
mac-address XXXX.XXXX.XXXX
paging-dn 31
type 7960
button 1:21 2:29 3:30
!

Feedback received on this FAQ entry:
  • voice translation-rule 8 rule 1 /^[8,9]\(1..........\)/ /\1/ rule 2 /^[8,9]614\(.......\)/ /\1/ rule 3 /^[8,9]\(.......\)/ /\1/ rule 4 /^[8,9]\(011.*\)/ /\1/ rule 5 /^[8,9]\([2-9]11\)/ /\1/ ! no voice translation-rule 9

    2009-10-28 09:27:17



Expand got feedback?

by rolande See Profile edited by Macy See Profile
last modified: 2006-05-22 04:55:31