Cisco & Asterisk Integration Guide.
Posted: Wednesday, April 16, 2014 by Unknown in Labels: CISCO & Asterisk Integration.
0
Networking |VOIP |INFO Security |And More !
chan_sip.c: sip_write: Asked to transmit frame type g729, while native formats is (ulaw) read/write = ulaw/ulaw
channel.c: ast_write: Codec mismatch on channel SIP/9000 setting write format to g729 from ulaw native formats (ulaw)
channel.c: set_format: Unable to find a codec translation path from (ulaw) to (g729)
Note:Call
routing is a two way configuration process so to get your calls routed
to CUCM you should configure and outbound route that will use the SIP
trunk to forward calls to CUCM if the dialed number matches the CUCM
dial plan.localhost*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
192.168.1.100 1001 f9672200-326114 (g729) No Tx: ACK Trunk To CUCM
192.168.1.10 9000 48d6b123328728a (ulaw) No Rx: ACK 9000
CME(config)#voice service voip
CME(conf-voi-serv)#allow-connections sip to sip
CME(conf-voi-serv)#sip
CME(config)#voice class codec 1
CME(config-class)#codec preference 1 g711ulaw
CME(config-class)#codec preference 2 g711alaw
CME(config)#dial-peer voice 1 voip
CME(config-dial-peer)#destination-pattern .T
CME(config-dial-peer)#session protocol sipv2
CME(config-dial-peer)#session target ipv4:192.168.1.200
CME(config-dial-peer)#voice-class codec 1
CME(config-dial-peer)#dtmf-relay sip-notify rtp-nte
CME(config-dial-peer)#no shut
CME(config)#sip-ua
CME(config-sip-ua)#credentials username CMEUSER password CMEPASS realm 192.168.1.200
CME(config-sip-ua)#authentication username CMEUSER password CMEPASS
CME(config-sip-ua)#registrar ipv4:192.168.1.200 expires 3600
CME(config-sip-ua)#sip-server ipv4:192.168.1.200:5060
CME(config-sip-ua)#keepalive target ipv4:192.168.1.200
CME#sh sip-ua register status
Line peer expires(sec) registered
============ ============= ============ ===========
CMEUSER -1 2745 yes
Asterisk*CLI> sip show users
Username Secret Accountcode Def.Context ACL ForcerPort
CMEUSER CMEPASS from-trunk-sip- No Yes
CME(config)#voice service voip
CME(conf-voi-serv)# sip
CME(conf-serv-sip)#bind all source-interface fastEthernet 0/0
CME(conf-serv-sip)#registrar server
CME(config)#voice register global
CME(config-register-global)#max-dn 2
CME(config-register-global)#max-pool 2
CME(config)#voice register pool 1
CME(config-register-pool)# id ip 192.168.1.200
CME(config)#username 12345 password 0 ASTERISKPASS
Asterisk*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.100:5060 N 12345 105 Registered Sun, 17 Nov 2013 07:47:21
1 SIP registrations.
CME#sh voice register pool 1
Pool Tag 1
Config:
Ip address is 192.168.1.200, Mask is 0.0.0.0
Proxy Ip address is 0.0.0.0
DTMF Relay is disabled
kpml signal is enabled
Statistics:
Active registrations : 1
Total Registration Statistics
Registration requests : 3
Registration success : 3
Registration failed : 0
unRegister requests : 2
unRegister success : 2
unRegister failed : 0
Verify the entire configuration in the FreePBX GUI.
-The "IP Trunk Online" represents the incoming trunk from CME to Asterisk.
-The "IP Trunk Registrations" represents the outgoing trunk from Asterisk to CME .