SIP codec preference ignored with Call Manager Express
I'm testing a basic CME setup with all 8800 series internal endpoints and a SIP trunk to an external provider. I can make internal and external calls but, despite having a preference for g722, all internal calls default to the g711ulaw codec and external calls on the SIP trunk default to g711alaw.
As all the endpoints support g722 and my external SIP trunk provider is introducing this functionality in the near future (already in place for test calls) I want to ensure that internal calls use g722 and it is the preferred codec for calls on the SIP trunk.
My understanding from the documentation is that the endpoints should select the preferred codec so long as they support it?
If I use XLite softphone and force the codec to g722, I can call the SIP provider's test number and it works fine as seen below:
cme#Show call active voice compact (Forced g722 XLite call to SIP provider test number) <callID> A/O FAX T<sec> Codec type Peer Address IP R<ip>:<udp> VRF Total call-legs: 2 129 ANS T1 g722-64 VOIP P102 192.168.10.166:62726 NA 130 ORG T1 g722-64 VOIP P10000 126.96.36.199:20366 NA
I cannot call the internal 8800 endpoints when forcing the codec and receive a beeping tone. This leads me to believe that the 8800 phones or CME are rejecting the calls based on a codec mismatch.
With the config at the end of this post, you can see in the two calls below that calls from the 8800 endpoints never use the g722 codec.
cme#Show call active voice compact (Call to SIP provider test number from 8800 endpoint) <callID> A/O FAX T<sec> Codec type Peer Address IP R<ip>:<udp> VRF Total call-legs: 2 118 ANS T3 g711alaw VOIP P101 192.168.10.181:21510 NA 120 ORG T3 g711alaw VOIP P10000 188.8.131.52:29066 NA
cme#Show call active voice compact (8800 to 8800 internal call) <callID> A/O FAX T<sec> Codec type Peer Address IP R<ip>:<udp> VRF Total call-legs: 2 83 ANS T209 g711ulaw VOIP P101 192.168.10.181:29258 NA 85 ORG T209 g711ulaw VOIP P102 192.168.10.166:63518 NA
voice register pool 1 busy-trigger-per-button 2 id mac 0038.DF00.9504 type 8865 number 1 dn 1 template 1 presence call-list dtmf-relay rtp-nte sip-notify voice-class codec 1 username 1234 password XXXX description Office no vad ! voice register pool 2 id mac 9457.A5DB.EDC1 number 1 dn 2 voice-class codec 1 username xlite password XXXX camera video !
dial-peer voice 1 voip description **INCOMING from Sipgate** preference 1 service session session protocol sipv2 session target dns:sipgate.co.uk session transport udp incoming called-number .% voice-class codec 1 voice-class sip profiles 1 dtmf-relay sip-notify ip qos dscp cs5 media ip qos dscp cs4 signaling no vad ! dial-peer voice 2 voip description **OUTBOUND to Sipgate** destination-pattern 0.......... session protocol sipv2 session target dns:sipgate.co.uk session transport udp voice-class codec 1 voice-class sip profiles 1 dtmf-relay rtp-nte no vad ! dial-peer voice 3 voip description **Internal Calls** destination-pattern [1-8].. session protocol sipv2 session target sip-server session transport udp voice-class codec 1 dtmf-relay rtp-nte no vad
Configuring Cloud Connected PSTN (CCP) – Easy as 1-2-3!
STEP 1: PREPARE
Before you can configure your CCP in Control Hub, you must procure PSTN services from an authorized Webex Calling CCP Partn...
To participate in this event, please use the button to ask your questions
This topic is a chance to discuss more about how to read Cisco Unified Communications trace files. In this session, Cisco D...