We have a customer that has started to experience calls being disconnected when they perform an outbound - call for no apparent reason. The error it is not persistent. It fails around 15 times per day, but all other calls works perfectly.
When an Agent performs an outbound call then we first send an INVITE to the agent, which is accepted immediately. We then invite the intended receiver and bridge the audio within Asterisk, with no updates to the media path.
The log messages claim that the call is dropped because Asterisk isn’t able to translate media between A-law and Speex - but the only codec ever mentioned for both SIP sessions is A-law. I assume that Asterisk receives initial media packets that wrongly are interpreted as Speex audio.
Is it possible to have Asterisk simple discard these packages and wait for A-law to appear?
We are currently using Asterisk 13 at the customer - is there a known fix for this behavior in a later Asterisk versions?
When the error happens then we see these warnings in the log:
[Aug 11 11:35:08] WARNING[11114][C-000972fa] codec_builtin.c: Encountered corrupt speex frame; too many wideband frames in a row.
[Aug 11 11:35:08] WARNING[11114][C-000972fa] codec_builtin.c: Had error while reading wideband frames for speex samples
[Aug 11 11:35:08] VERBOSE[11114][C-000972fa] app_dial.c: PJSIP/1_SIPBTrunk-0011cc56 requested media update control 26, passing it to PJSIP/1_SIPBTrunk-0011cc57
[Aug 11 11:35:08] WARNING[11114][C-000972fa] channel.c: Unable to find a codec translation path: (speex) → (alaw)
[Aug 11 11:35:08] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:08] WARNING[6974] channel.c: Unable to find a codec translation path: (alaw) → (speex)
[Aug 11 11:35:08] VERBOSE[11114][C-000972fa] app_dial.c: PJSIP/1_SIPBTrunk-0011cc56 requested media update control 26, passing it to PJSIP/1_SIPBTrunk-0011cc57
[Aug 11 11:35:08] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:09] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:09] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:09] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:09] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
[Aug 11 11:35:09] WARNING[11114][C-000972fa] app_dial.c: Unable to forward frametype: 2
I have attached the SIP communication and parts of the diaplan execution in case you need it.
Any kind of hit for trouble shooting this will be greatly apprecciated.
Sip.txt (15.4 KB)