TemplateCiscoConfiguration: (Voice 01) Cấu hình SIP Trunk (VNPT) trên Interface Dialer trên ISR4321

By , 0 View

Cấu hình SIP Trunk (VNPT) trên VoiceGateway kiêm chức năng CME trên ISR4321.
voice rtp send-recv
!
voice service voip
 ip address trusted list
  ipv4 14.238.2.0 255.255.255.0
  ipv4 10.0.0.0 255.0.0.0
  ipv4 172.16.10.0 255.255.255.0
 mode border-element 
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 no supplementary-service sip handle-replaces
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
 sip
  bind control source-interface Dialer1
  bind media source-interface Dialer1
  header-passing
  error-passthru
  registrar server expires max 600 min 60
  no call service stop
!
voice class uri 2 sip
 host ipv4:14.238.2.146
 host ipv4:10.99.12.83
voice class codec 2
 codec preference 1 g711alaw
 codec preference 2 g711ulaw
!
voice class codec 3
 codec preference 1 g711ulaw
 codec preference 2 g711alaw
!
voice register global
 mode cme
 source-address 222.253.41.119 port 5060
 max-dn 4
 max-pool 4
 authenticate register
 authenticate realm 222.253.41.119
 file text
 create profile
 auto-register
!
voice register dn  1
 number 101
 call-forward b2bua busy 102  
 call-forward b2bua noan 102 timeout 30
!
voice register dn  2
 number 102
 call-forward b2bua noan 101 timeout 10
!
voice register pool  1
 busy-trigger-per-button 2
 id mac 5488.DECE.ADDB
 session-transport udp
 type 8841
 number 1 dn 1
 no digit collect kpml
 dtmf-relay rtp-nte
 username 101 password 101
 codec g711ulaw
!
voice register pool  2
 busy-trigger-per-button 2
 id mac 40F0.7855.DE0A
 session-transport udp
 type 8832
 number 1 dn 2
 no digit collect kpml
 dtmf-relay rtp-nte
 username 102 password 102
 codec g711ulaw
!
voice hunt-group 1 sequential
 final 103
 list 101,102
 timeout 12 
 pilot 111 secondary 02838120130
!
voice translation-rule 4
 rule 1 /^.*/ /02838120130/
!
voice translation-rule 5
 rule 1 /^.*/ /999/
!
voice translation-profile SipTrunk_Incoming
 translate called 5
!
voice translation-profile SipTrunk_Outgoing
 translate calling 4
!
interface GigabitEthernet0/0/0
 ip address 172.16.10.1 255.255.255.0
 ip nat inside
!
interface GigabitEthernet0/0/1
 description **Connect to VNPT**
 no ip address
 ip tcp adjust-mss 1452
 negotiation auto
 pppoe enable group global
 no cdp enable
 pppoe-client dial-pool-number 1
!
interface Dialer1
 ip address negotiated
 ip nat outside
 encapsulation ppp
 ip tcp adjust-mss 1452
 dialer pool 1
 dialer-group 1
 no cdp enable
 ppp authentication pap chap callin
 ppp chap hostname jennielab.asia
 ppp chap password 0 xepd6kmn
 ppp pap sent-username jennielab.asia password 0 xepd6kmn
 ip virtual-reassembly
!
no ip nat service sip tcp port 5060
no ip nat service sip udp port 5060
ip nat inside source list NatTraffic interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
ip access-list extended NatTraffic
 permit ip host 172.16.10.254 any
!
dialer-list 1 protocol ip permit
!
telephony-service
 no auto-reg-ephone
 max-ephones 2
 max-dn 2
 ip source-address 222.253.41.119 port 2000
 timeouts interdigit 5
 cnf-file perphone
 max-conferences 8 gain -6
 moh enable-g711 "flash:/TCLscript/en_bacd_music_on_hold.au"
 transfer-digit-collect orig-call
 transfer-system full-consult
 transfer-pattern 0T
 create cnf-files version-stamp Jan 01 2002 00:00:00
!
dial-peer voice 999 voip
 service callcenter_aa
 destination-pattern 999
 session protocol sipv2
 session target ipv4:222.253.41.119
 incoming called-number 999
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 41 voip
 translation-profile outgoing SipTrunk_Outgoing
 destination-pattern 0[1-9]T
 session protocol sipv2
 session target ipv4:14.238.2.146
 session transport udp
 voice-class codec 2  
 voice-class sip bind control source-interface Dialer1
 voice-class sip bind media source-interface Dialer1
 dtmf-relay rtp-nte
 clid network-number 02838120130
 no vad
!
dial-peer voice 42 voip
 translation-profile incoming SipTrunk_Incoming
 redirect ip2ip
 no modem passthrough
 session protocol sipv2
 session transport udp
 incoming called-number .
 incoming uri via 2
 voice-class codec 3  
 no voice-class sip early-offer forced
 no voice-class sip pass-thru content custom-sdp
 voice-class sip bind control source-interface Dialer1
 voice-class sip bind media source-interface Dialer1
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 40 voip
 translation-profile outgoing SipTrunk_Outgoing
 destination-pattern 1900T
 session protocol sipv2
 session target ipv4:14.238.2.146
 session transport udp
 voice-class codec 2  
 voice-class sip bind control source-interface Dialer1
 voice-class sip bind media source-interface Dialer1
 dtmf-relay rtp-nte
 clid network-number 02838120130
 no vad

Tham gia Club Network Engineer để có cơ hội thực hành trên thiết bị thật và chia sẻ, trao đổi kinh nghiệm nhiều hơn.

You Might Also Like

0 comments