cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1477
Views
15
Helpful
2
Replies

SIP codec preference ignored with Call Manager Express

Ben Stephenson
Level 1
Level 1

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     212.9.44.249: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     212.9.44.251: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 class codec 1
 codec preference 1 g722-64
 codec preference 2 g711ulaw
 codec preference 3 g711alaw

 

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

 

 

1 Accepted Solution

Accepted Solutions

marcfuhrmann
Level 1
Level 1

Hi,

 

I had the same problem with all 8800 sip phones, and no SCCP Phone.

 

You have to add to your config:

 

telephony-service

  codec g722-64

  service phone g722CodecSupport 2

 

This is required even with no sccp phone used.

 

Hope this helps

 

Marc

 

View solution in original post

2 Replies 2

marcfuhrmann
Level 1
Level 1

Hi,

 

I had the same problem with all 8800 sip phones, and no SCCP Phone.

 

You have to add to your config:

 

telephony-service

  codec g722-64

  service phone g722CodecSupport 2

 

This is required even with no sccp phone used.

 

Hope this helps

 

Marc

 

To add to the earlier post, the configuration:

  • Causes all phones to advertise the G.722-64K codec to Cisco Unified CME
  • Cisco IP Phone firmware 8.3.1 or a later version is required to support the G.722-64K codec on G.722-capable SIP phones.

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: