Dynamic payload range is 96-127.  Codecs below 96 are assigned to specific codecs so would only match if 84 is assigned to speex, which it is not.

See the IANA assignments for pt here:

http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-1


On Sep 28, 2016, at 6:16 PM, Dave Horton <daveh@beachdognet.com> wrote:

I am trying to connect an incoming call to freeswitch using speech wideband, but freeswitch is returning a 488 Not Acceptable here.  It seems like freeswitch, which is using dynamic payload 99 for speex is unable to match that up to the fact that the remote side (client) is using payload 84.  If so, this would seem to be a bug.

Relevant log snippets / details:

1. Freeswitch version
FreeSWITCH Version 1.6.9+git~20160613T181044Z~d574870720~64bit (git d574870 2016-06-13 18:10:44Z 64bit)

2. speex seems to be enabled...

show codecs

type,name,ikey
…
codec,Speex,CORE_SPEEX_MODULE
…

3. Log snippets from call

2016-09-28 18:09:56.592985 [DEBUG] sofia.c:6943 Remote SDP:
v=0
o=- 1475100596518739 1 IN IP4 10.0.1.7
s=Bria 4 release 4.4.0 stamp 79957
c=IN IP4 10.0.1.7
t=0 0
m=audio 50218 RTP/AVP 84 101
a=rtpmap:84 speex/16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

EXECUTE sofia/internal/1000@srf-qa-02.drachtio.org answer()
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4365 Audio Codec Compare [speex:84:16000:20:0:1]/[opus:116:48000:20:0:1]
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4365 Audio Codec Compare [speex:84:16000:20:0:1]/[G722:9:8000:20:64000:1]
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4365 Audio Codec Compare [speex:84:16000:20:0:1]/[SPEEX:99:16000:20:42200:1]
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4365 Audio Codec Compare [speex:84:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4365 Audio Codec Compare [speex:84:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4281 Set telephone-event payload to 101@8000
2016-09-28 18:09:56.592985 [DEBUG] switch_core_media.c:4693 sofia/internal/1000@srf-qa-02.drachtio.org Set 2833 dtmf send payload to 101 recv payload to 101
2016-09-28 18:09:56.592985 [NOTICE] switch_channel.c:3809 Hangup sofia/internal/1000@srf-qa-02.drachtio.org [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]'

send 949 bytes to tcp/[198.0.151.126]:39915 at 18:09:56.612541:
  ------------------------------------------------------------------------
  SIP/2.0 488 Not Acceptable Here


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org