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 voipip address trusted listipv4 14.238.2.0 255.255.255.0ipv4 10.0.0.0 255.0.0.0ipv4 172.16.10.0 255.255.255.0mode border-elementallow-connections h323 to h323allow-connections h323 to sipallow-connections sip to h323allow-connections sip to sipno supplementary-service sip moved-temporarilyno supplementary-service sip referno supplementary-service sip handle-replacesfax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback nonesipbind control source-interface Dialer1bind media source-interface Dialer1header-passingerror-passthruregistrar server expires max 600 min 60no call service stop!voice class uri 2 siphost ipv4:14.238.2.146host ipv4:10.99.12.83voice class codec 2codec preference 1 g711alawcodec preference 2 g711ulaw!voice class codec 3codec preference 1 g711ulawcodec preference 2 g711alaw!voice register globalmode cmesource-address 222.253.41.119 port 5060max-dn 4max-pool 4authenticate registerauthenticate realm 222.253.41.119file textcreate profileauto-register!voice register dn 1number 101call-forward b2bua busy 102call-forward b2bua noan 102 timeout 30!voice register dn 2number 102call-forward b2bua noan 101 timeout 10!voice register pool 1busy-trigger-per-button 2id mac 5488.DECE.ADDBsession-transport udptype 8841number 1 dn 1no digit collect kpmldtmf-relay rtp-nteusername 101 password 101codec g711ulaw!voice register pool 2busy-trigger-per-button 2id mac 40F0.7855.DE0Asession-transport udptype 8832number 1 dn 2no digit collect kpmldtmf-relay rtp-nteusername 102 password 102codec g711ulaw!voice hunt-group 1 sequentialfinal 103list 101,102timeout 12pilot 111 secondary 02838120130!voice translation-rule 4rule 1 /^.*/ /02838120130/!voice translation-rule 5rule 1 /^.*/ /999/!voice translation-profile SipTrunk_Incomingtranslate called 5!voice translation-profile SipTrunk_Outgoingtranslate calling 4!interface GigabitEthernet0/0/0ip address 172.16.10.1 255.255.255.0ip nat inside!interface GigabitEthernet0/0/1description **Connect to VNPT**no ip addressip tcp adjust-mss 1452negotiation autopppoe enable group globalno cdp enablepppoe-client dial-pool-number 1!interface Dialer1ip address negotiatedip nat outsideencapsulation pppip tcp adjust-mss 1452dialer pool 1dialer-group 1no cdp enableppp authentication pap chap callinppp chap hostname jennielab.asiappp chap password 0 xepd6kmnppp pap sent-username jennielab.asia password 0 xepd6kmnip virtual-reassembly!no ip nat service sip tcp port 5060no ip nat service sip udp port 5060ip nat inside source list NatTraffic interface Dialer1 overloadip route 0.0.0.0 0.0.0.0 Dialer1ip access-list extended NatTrafficpermit ip host 172.16.10.254 any!dialer-list 1 protocol ip permit!telephony-serviceno auto-reg-ephonemax-ephones 2max-dn 2ip source-address 222.253.41.119 port 2000timeouts interdigit 5cnf-file perphonemax-conferences 8 gain -6moh enable-g711 "flash:/TCLscript/en_bacd_music_on_hold.au"transfer-digit-collect orig-calltransfer-system full-consulttransfer-pattern 0Tcreate cnf-files version-stamp Jan 01 2002 00:00:00!dial-peer voice 999 voipservice callcenter_aadestination-pattern 999session protocol sipv2session target ipv4:222.253.41.119incoming called-number 999dtmf-relay rtp-ntecodec g711ulawno vad!dial-peer voice 41 voiptranslation-profile outgoing SipTrunk_Outgoingdestination-pattern 0[1-9]Tsession protocol sipv2session target ipv4:14.238.2.146session transport udpvoice-class codec 2voice-class sip bind control source-interface Dialer1voice-class sip bind media source-interface Dialer1dtmf-relay rtp-nteclid network-number 02838120130no vad!dial-peer voice 42 voiptranslation-profile incoming SipTrunk_Incomingredirect ip2ipno modem passthroughsession protocol sipv2session transport udpincoming called-number .incoming uri via 2voice-class codec 3no voice-class sip early-offer forcedno voice-class sip pass-thru content custom-sdpvoice-class sip bind control source-interface Dialer1voice-class sip bind media source-interface Dialer1dtmf-relay rtp-nteno vad!dial-peer voice 40 voiptranslation-profile outgoing SipTrunk_Outgoingdestination-pattern 1900Tsession protocol sipv2session target ipv4:14.238.2.146session transport udpvoice-class codec 2voice-class sip bind control source-interface Dialer1voice-class sip bind media source-interface Dialer1dtmf-relay rtp-nteclid network-number 02838120130no 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.
0 comments