Wednesday, July 13, 2011

SIP UA to SIP Provider on IOS

IOS configuration for SIP UA connectivity to a SIP provider.



!
! No configuration change since last restart
!
version 12.4
service compress-config
!
hostname voiprtr
!
boot-start-marker
boot-end-marker
!
ip domain name fake.local
ip host sip.broadvoice.com 147.135.8.128
ip name-server 4.2.2.1
ip name-server 4.2.2.6
!
!
voice service voip
!
!
voice class codec 1
 codec preference 1 g711ulaw
 codec preference 2 g711alaw
 codec preference 3 g729r8
!
!
voice register pool  1
!
!
voice translation-rule 1
 rule 1 /^.*/ /7145551212/
!
voice translation-rule 3
 rule 1 /^.*/ /7145551213/
!
!
voice translation-profile broadvoice-out
 translate calling 3
!
!
interface FastEthernet0/0
 description $FW_INSIDE$
 ip address 192.168.100.66 255.255.255.0
 ip nat inside
 no ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet0/1
 description out to ISP
 ip address dhcp

 duplex auto
 speed auto

!

ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 dhcp
!
ip dns server
ip dns spoofing
!
!
voice-port 1/1/0
 mwi
 description line 1 cordless
 caller-id enable
!

!
!
mgcp behavior g729-variants static-pt
!
!
!
dial-peer voice 1 voip
 translation-profile outgoing broadvoice-out
 preference 1
 destination-pattern 1..........
 voice-class codec 1
 session protocol sipv2
 session target dns:sip.broadvoice.com
 dtmf-relay rtp-nte
 fax protocol cisco
 ip qos dscp cs5 media
 no vad
!
dial-peer voice 86 voip
 translation-profile outgoing broadvoice-out
 destination-pattern *86
 session protocol sipv2
 session target dns:sip.broadvoice.com
 dtmf-relay rtp-nte
 codec g711ulaw
 ip qos dscp cs5 media
 no vad
!
dial-peer voice 2 voip
 translation-profile outgoing broadvoice-out
 destination-pattern .T
 voice-class codec 1
 session protocol sipv2
 session target dns:sip.broadvoice.com
 dtmf-relay rtp-nte
 ip qos dscp cs5 media
 no vad
!
dial-peer voice 20 pots
 preference 1
 destination-pattern 7145551111
 incoming called-number 7145551111
 port 1/1/0
!
!
sip-ua
 authentication username 7145551111 password 00714555123412341111 realm BroadWorks
 no remote-party-id
 retry register 10
 mwi-server dns:sip.broadvoice.com expires 3600 port 5060 transport udp unsolicited
 registrar dns:sip.broadvoice.com expires 3600
 sip-server dns:sip.broadvoice.com
!
!
!



end

1 comment:

Herb said...

Sorry for the super late reply. You could do this for a business, but with multiple lines it is difficult to manage.

The Network