• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Cấu hình router CME trunking với nhà cung cấp dịch vụ SIP (SIP Trunking)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cấu hình router CME trunking với nhà cung cấp dịch vụ SIP (SIP Trunking)

    Dưới đây là một cấu hình mẫu đã được kiểm tra và chạy tốt. Router CME cấu hình SIP trunking với nhà cung cấp dịch vụ SIP. Trong bài lab này, số 5199165286 là số DID do nhà cung cấp dịch vụ ITSP cung cấp.

    vnpro#sh run
    Building configuration...
    Current configuration : 9239 bytes
    !
    version 15.1
    !
    hostname vnpro
    !
    boot-start-marker
    boot system flash:c2800nm-adventerprisek9_ivs-mz.151-4.M9.bin <--sử dụng phiên bản 15.1.
    !
    logging buffered 4000000 <-- bật buffer để dễ theo dõi log file.
    no logging console
    !
    ip cef
    !
    ip dhcp excluded-address 192.168.8.1 192.168.8.40
    ip dhcp excluded-address 192.168.7.1 192.168.7.40
    !
    ip dhcp pool vlan 71 <---tạo ra dhcp pool cho vlan voice.
    network 192.168.7.0 255.255.255.0
    default-router 192.168.7.1 255.255.255.0
    option 150 ip 192.168.7.1 <-- địa chỉ của TFTP server.
    dns-server 8.8.8.8
    !
    ip dhcp pool vlan81
    network 192.168.8.0 255.255.255.0
    default-router 192.168.8.1 255.255.255.0
    !
    !
    ip name-server 8.8.8.8
    ip name-server 4.4.4.2
    !
    voice service voip
    ip address trusted list <-- chỉ ra những địa chỉ có thể thực hiện kết nối
    ipv4 192.168.6.0
    ipv4 192.168.3.0
    ipv4 192.168.7.0
    ipv4 184.75.215.106
    ipv4 184.75.215.114
    ipv4 184.75.213.210
    gcid
    clid substitute name
    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
    bind control source-interface FastEthernet0/1
    bind media source-interface FastEthernet0/1
    e911
    registrar server expires max 600 min 60
    asserted-id ppi
    localhost dns:vnpro
    authenticate redirecting-number
    midcall-signaling passthru
    no call service stop
    !
    voice class codec 1
    codec preference 1 g711ulaw
    codec preference 2 g729r8
    codec preference 3 ilbc
    !
    !
    voice register global <-- dùng cho các sip phones đăng ký
    mode cme
    source-address 192.168.7.1 port 5060 <--địa chỉ voice vlan
    max-dn 144
    max-pool 42
    load 9971 sip9971.9-4-2SR1-2
    timezone 24
    time-format 24
    date-format D/M/Y
    mwi stutter
    voicemail 6800
    url authentication http://192.168.7.1/CCMCIP/authenticate.asp
    tftp-path flash:
    create profile sync 0080128243824339
    ntp-server 192.168.6.1 mode directedbroadcast
    camera
    video
    !
    voice translation-rule 1
    rule 1 /5199165286/ /7123/
    !
    voice translation-rule 4 <--đổi từ số nội bộ sang số DID.
    rule 1 /^.*/ /5199165286/
    !
    voice translation-rule 7 <---cắt số 9 khi gọi ra
    rule 1 /^9\([2-9].........$\)/ /\1/
    !
    !
    voice translation-profile TRANSLATE_PSTN_INBOUND
    translate called 1
    !
    voice translation-profile TRANSLATE_PSTN_OUTBOUND
    translate calling 4
    translate called 7
    !
    !
    voice-card 0
    dspfarm
    dsp services dspfarm
    !
    license udi pid CISCO2811 sn FTX0941A0TS
    username vnpro privilege 15 password XXXXXXXXXXXXXXX
    !
    redundancy
    !
    interface Loopback0
    ip address 192.168.9.1 255.255.255.0
    !
    interface Service-Engine0/1
    ip unnumbered Vlan7
    service-module ip address 192.168.7.2 255.255.255.0
    service-module ip default-gateway 192.168.7.1
    !
    interface FastEthernet0/1
    description connect to ISP
    ip address dhcp
    ip nat outside
    ip virtual-reassembly in
    duplex auto
    speed auto
    !
    interface FastEthernet0/3/1
    description connect to cisco Phone 7961
    switchport access vlan 7
    switchport voice vlan 7
    no ip address
    !
    interface FastEthernet0/3/2
    no ip address
    !
    interface FastEthernet0/3/3
    description connect to 9971 phone
    switchport voice vlan 7
    no ip address
    !
    interface Vlan7
    ip address 192.168.7.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly in
    !
    interface Vlan8
    ip address 192.168.8.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly in
    !
    router ospf 1
    network 192.168.7.0 0.0.0.255 area 0
    network 192.168.8.0 0.0.0.255 area 0
    network 192.168.9.0 0.0.0.255 area 0
    !
    ip forward-protocol nd
    ip http server
    ip http authentication local
    no ip http secure-server
    ip http path flash:
    !
    !
    ip nat inside source list NAT interface FastEthernet0/1 overload
    ip route 192.168.7.2 255.255.255.255 Service-Engine0/1
    !
    ip access-list extended NAT
    permit ip any any
    !
    !
    ixi transport http
    response size 64
    no shutdown
    request outstanding 1
    !
    ixi application cme
    no shutdown
    !
    tftp-server flash:term61.default.loads
    tftp-server flash:term41.default.loads
    tftp-server flash:SCCP41.9-4-2-1S.loads
    tftp-server flash:jar41sccp.9-4-2TH1-1.sbn
    tftp-server flash:dsp41.9-4-2TH1-1.sbn
    tftp-server flash:cnu41.9-4-2TH1-1.sbn
    tftp-server flash:apps41.9-4-2TH1-1.sbn
    tftp-server flash:skern9971.022809R2-9-4-2SR1-2.sebn
    tftp-server flash:sip9971.9-4-2SR1-2.loads
    tftp-server flash:sboot9971.031610R1-9-4-2SR1-2.sebn
    tftp-server flash:rootfs9971.9-4-2SR1-2.sebn
    tftp-server flash:kern9971.9-4-2SR1-2.sebn
    tftp-server flash:dkern9971.100609R2-9-4-2SR1-2.sebn
    !
    control-plane
    !
    mgcp profile default
    !
    !
    dial-peer voice 2 voip
    destination-pattern [2-9]..[2-9]......
    session protocol sipv2
    session target ipv4:184.75.213.210
    voice-class codec 1
    no voice-class sip early-offer forced
    voice-class sip bind control source-interface FastEthernet0/1
    voice-class sip bind media source-interface FastEthernet0/1
    dtmf-relay rtp-nte sip-notify
    no vad
    !
    dial-peer voice 3 voip
    destination-pattern 1[2-9]..[2-9]......
    session protocol sipv2
    session target ipv4:184.75.213.210
    no voice-class sip early-offer forced
    voice-class sip bind control source-interface FastEthernet0/1
    voice-class sip bind media source-interface FastEthernet0/1
    dtmf-relay rtp-nte cisco-rtp sip-kpml sip-notify
    codec g711ulaw
    no vad
    !
    dial-peer voice 4 voip
    translation-profile incoming TRANSLATE_PSTN_INBOUND
    session protocol sipv2
    session target ipv4:184.75.213.210
    incoming called-number .
    voice-class sip bind control source-interface FastEthernet0/1
    voice-class sip bind media source-interface FastEthernet0/1
    dtmf-relay cisco-rtp rtp-nte sip-notify
    codec g711ulaw
    no vad
    !
    dial-peer voice 5 voip
    translation-profile outgoing TRANSLATE_PSTN_OUTBOUND
    destination-pattern 9T
    session protocol sipv2
    session target ipv4:184.75.213.210
    no voice-class sip early-offer forced
    voice-class sip bind control source-interface FastEthernet0/1
    voice-class sip bind media source-interface FastEthernet0/1
    codec g711ulaw
    no vad
    !
    dial-peer voice 1 voip
    huntstop
    destination-pattern 5199165286
    session protocol sipv2
    session target ipv4:24.55.233.91
    dtmf-relay cisco-rtp rtp-nte
    codec g711ulaw
    no vad
    !
    dial-peer voice 6 voip
    translation-profile outgoing TRANSLATE_PSTN_OUTBOUND
    destination-pattern 91..........
    session protocol sipv2
    session target sip-server
    dtmf-relay rtp-nte
    codec g711ulaw
    no vad
    !
    !
    sip-ua
    credentials username vnpro123 password 7 XXXXXXXXXXXXXX realm toronto4.voip.ms
    authentication username vnpro123 password 7 033473592C3A0F realm toronto4.voip.ms
    no remote-party-id
    retry invite 2
    retry response 3
    retry bye 2
    retry cancel 2
    retry prack 6
    timers trying 100
    timers expires 300000
    mwi-server ipv4:192.168.7.1 expires 3600 port 5060 transport udp
    registrar 1 dns:toronto4.voip.ms expires 300
    sip-server dns:toronto4.voip.ms
    host-registrar
    presence enable
    !
    !
    !
    gatekeeper
    shutdown
    !
    !
    telephony-service
    sdspfarm units 10
    sdspfarm tag 1 R3-CONF
    conference hardware
    video
    no auto-reg-ephone
    authentication credential admin vnpro
    max-ephones 5
    max-dn 15
    ip source-address 192.168.7.1 port 2000
    system message VnPro Training Center
    cnf-file location flash:
    cnf-file perphone
    load 7961 SCCP41.9-4-2-1S.loads
    time-zone 24
    time-format 24
    date-format dd-mm-yy
    voicemail 3800
    mwi relay
    max-conferences 8 gain -6
    call-park system application
    web admin system name admin password vnpro
    transfer-system full-consult
    fac custom dpark-retrieval *#
    create cnf-files version-stamp Jan 01 2002 00:00:00
    !
    !
    ephone-dn 1
    number 7123 no-reg primary
    !
    !
    ephone 1
    device-security-mode none
    mac-address 0015.C65C.629F
    type 7960
    button 1:1
    !
    end
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

    Email : dangquangminh@vnpro.org
    https://www.facebook.com/groups/vietprofessional/
Working...
X