cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
803
Views
0
Helpful
6
Replies

Voice class codec command not working right

Chuck Reid
Level 1
Level 1

Hello,

I am using the following on my inbound dial-peers:

voice class codec 1

codec preference 1 g729r8

codec preference 2 g711ulaw

Inbound calls all come in at g711ulaw. If I remove the codec pref 2 g711ulaw command, then calls come in g729 as both are advertised by the provider, global crossing, g729 first, then g711 second. Appears to be a bug or am I missing something?? Why aren't the calls connecting at g729r8 as that is my first preference??

Thanks,

Chuck

6 Replies 6

Hi Chuck,

Your preferences will not always be the first choice, depending on how the negotiation is done. It's also possible that you're using something like G729br8 and the provider is looking for G729r8.

This is likely something you can solve by talking with your provider, because if you're sure that voice class codec is applied to the right incoming dial peer, that is all you can do.

-nick

Hello,

I verified with provider that g729r8 is correct, I am thinking that this may a SIP Issue, this is a cube router, sip-sip, and when i do a debug ccsip all I see that :

Static payload sets g711ulaw

Preferred codec is g729r8

Dynamic payload(100) could not be reserved.

I'm thinking i need to do something with sip command to be able to choose the codec?

Chuck

Hi Chuck,

That output looks normal. You may want to use 'rtp payload nte 100' on your dial peers to prevent that last line, but so far that looks alright.

If you're using voice class codecs and CUBE, make sure you have the same one on the incoming and outgoing dial peers.

-nick

Hi, yeah, I have the payload type set already for nte 100, cant figure out why its not taking g729r8. It only takes g729 if I remove the option for G711.

Hi Chuck,

It sounds like the provider prefers G711, so that's what they're choosing.

They send the INVITE with their capabilities. We send a 200 OK with our preferences. They choose which of our preferences they want to use.

-nick

Hi Nick,

I emailed you a debug trace, didnt want to post it to the world, if you can take a quick look, Id appreciate it, the provider said they offering g729 first, then g711 second.

Thanks,

Chuck

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: