11-19-2020 10:16 AM - edited 11-19-2020 11:21 AM
Im having an issue with inbound sip calls, the dialpeer is matched and the call is sent to a hunt queue however when the call is picked up from the phone it immediately disconnects.
Its just a simple CME setup with no CUCM.
According to the provider the codecs used are G.711a /G.711u and G.729.
Which should be covered by
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729br8
codec preference 4 g729r8
!
Which is applied to the incoming dial peer using
voice-class codec 1
ive also tried
voice-class codec 1 offer-all
Ive attached the config and syslog for debug ccsip messages and errors
Can anyone suggest what is causing this ?
11-19-2020 10:49 PM - edited 11-19-2020 10:53 PM
Looks like you are sending the call off to some external system for the hunt part. That dial peer does not have any codec list assigned to it and I would also want to know a bit more about the details on the system you sent it off to.
* Update *
Sorry I redact what I wrote earlier. Looks like I need more coffee this morning.
11-20-2020 04:32 AM
It does seem like a codec issue the logs show Disconnect Cause=47 the codec is listed as a=rtpmap:18 G729/8000 in the initial invite.
In debug ccsip error im getting the following
//-1/xxxxxxxxxxxx/SIP/Error/voipCodec_to_rtpAvpCodec:
10.0.1.10 Nov 20 12:26:03 local7 debug 220828 Unexpected VoIPCodec Type :No Codec
Even though all this should be covered by
voice class codec 1 codec preference 1 g711ulaw codec preference 2 g711alaw codec preference 3 g729r8 codec preference 4 g729br8 ! dial-peer voice 1005 voip description Incoming translation-profile incoming Hunt session protocol sipv2 session target sip-server incoming called-number 12039028475 voice-class codec 1 voice-class sip bind control source-interface GigabitEthernet0/0 voice-class sip bind media source-interface GigabitEthernet0/0 dtmf-relay sip-notify rtp-nte no vad
Ive attached debug ccsip error and debug voip ccapi inout
Really scratching my head on this one, Its just a single interface router connected to a sip provider.
11-21-2020 11:48 PM
If I’m not remembering all wrong I think you can setup a voice-class codec list to be used for your CME SIP configuration. Try that out to see if it makes any difference. Also make sure that your dead sure about what dial peer that is used for the inbound call leg from the ITSP. Based upon your configuration it looks like you might have tried a few different options for this. I’m a fan of having a clear inbound and outbound dial peer split, as that in my view gives you a much clearer sense of direction for calls when you look in either debugs or show commands. What is of upmost importance it to make sure you don’t use the dreaded built in dial peer 0 as this would always be using g729.
11-22-2020 07:26 AM - edited 11-22-2020 07:43 AM
To try and solve this ive reduced the config down as much as possible removed all my bvi's and vlans etc there is only 1 ethernet and 1 dial peer which is the incoming one. I can see in the logs its being matched and the phone rings so its getting that far.
Should i even need a transcoder ? All im trying to do is have inbound calls work ? i can see from the logs they are meant to use g729 in the initial invite but all inbound calls drop with code 47 as soon as they are answered.
11-22-2020 10:22 AM - edited 11-22-2020 10:35 AM
With correct configuration you should not need to have a transcoder. You wrote that you have 1 Ethernet connection.
Normally you would have 2 interfaces with an SBC. One connected to the ITSP and the other connected to your internal network, this is also where the phones are connected. With this setup you get a clear demarcation point between your internal network and the external service provider for ITSP services. Both signaling and RTP stream from/to the phones will flow through the SBC to/from the ITSP service provider.
Can you do a debug ccsip messages and post the result as a file so that we can check what happens?
11-22-2020 12:06 PM - edited 11-22-2020 12:18 PM
11-23-2020 08:37 AM - edited 11-23-2020 11:42 AM
I would recommend you to redo the design for your SBC to have two interfaces as I described before and to properly configure it as an SBC. You are also missing a command to turn on the Cube functionality, “address-hiding” under voice service voip.
Once you have the setup in place you should be able to test again, this time with the media and signaling being handled by you SBC and not as today direct between the endpoint and the ITSP. That's a bad design as that reveals your inside network to your service provider.
11-21-2020 12:27 PM
In addition i have configured a transcoder to try and resolve this
dspfarm profile 1 transcode universal
codec g729abr8
codec g729ar8
codec g711alaw
codec g711ulaw
codec g729br8
codec g729r8
maximum sessions 26
associate application CUBE
!
voice-card 0
dsp services dspfarm
no shutdown
!
However even with this registered the call is still dropping with code 47
11-21-2020 10:47 PM
11-21-2020 11:52 PM
What would be the reason for your recommendation to not to use a universal transcoder if one of the call legs are g711?
11-22-2020 01:54 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide