[Freeswitch-users] ERR has no write codec. [INCOMPATIBLE_DESTINATION]

David Dean david at net-work.net
Fri Nov 8 12:47:16 UTC 2019


Hi

I wonder if anybody can help. We are getting an error creeping in on a 
production system. It is happening randomly which of course makes it 
difficult to track down.

A call to a SIP registered endpoint (VoIP handset) randomly fails, it 
rings, then when it is answered the call fails. It could be to any of 
the end points on our system, it doesn't happen every call, in fact it 
only happens on prepositionally very few calls. If we restart the 
Freeswitch service the frequency of calls effected reduces to nothing 
and then builds up again.

Logs show (I have replaced our IP address with {IP ADDRESS})

freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
2019-11-08 10:01:02.857442 [DEBUG] mod_sofia.c:646 SOFIA EXCHANGE_MEDIA
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
2019-11-08 10:01:02.897441 [ERR] switch_core_media.c:15418 
sofia/internal/5033305@{IP ADDRESS}:38532 has no write codec.
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
2019-11-08 10:01:02.897441 [NOTICE] switch_core_media.c:15419 Hangup 
sofia/internal/5033305@{IP ADDRESS}:38532 [CS_EXCHANGE_MEDIA] 
[INCOMPATIBLE_DESTINATION]
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
2019-11-08 10:01:02.897441 [DEBUG] switch_ivr_bridge.c:1881 
sofia/internal/5033305@{IP ADDRESS}:38532 skip receive message 
[UNBRIDGE] (channel is hungup already)

freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
2019-11-08 10:01:02.837454 [DEBUG] sofia.c:7301 Remote SDP:
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
v=0
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
o=5033305 38480 137 IN IP4 51.148.123.105
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
s=Mapping
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
c=IN IP4 51.148.123.105
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
t=0 0
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
m=audio 38480 RTP/AVP 0 101
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=rtpmap:0 PCMU/8000
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=rtpmap:101 telephone-event/8000
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=fmtp:101 0-16
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=ptime:20
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437

freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
Local SDP:
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
v=0
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
o=FreeSWITCH 1573174674 1573174675 IN IP4 178.128.173.117
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
s=FreeSWITCH
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
c=IN IP4 178.128.173.117
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
t=0 0
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
m=audio 32570 RTP/AVP 0 101 13
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=rtpmap:0 PCMU/8000
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=rtpmap:101 telephone-event/8000
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=fmtp:101 0-16
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=rtpmap:13 CN/8000
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=ptime:20
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437 
a=sendrecv
freeswitch.log.2019-11-08-10-15-53.1:7ea8711f-40c3-4cfc-b927-fc99fc9b7437

Any ideas would be appreciated.

David J Dean





More information about the FreeSWITCH-users mailing list