Open vbog1 opened 3 years ago
This is the most unusual case I've seen before. I rewrote the dialplan as follows
<extension name="sipnet_test">
<condition field="destination_number" expression="^5(00000|00)$">
<action application="set" data="effective_caller_id_name=0012345678"/>
<action application="set" data="effective_caller_id_number=0012345678"/>
<action application="export" data="absolute_codec_string=PCMA,PCMU"/>
<action application="export" data="rtp_secure_media=mandatory:AES_CM_128_HMAC_SHA1_80:AEAD_AES_256_GCM_8"/>
<action application="bridge" data="sofia/gateway/sipnet_ipv6/$1"/>
</condition>
</extension>
and FreeSwich started to include the line "a=crypto: 1 AEAD_AES_256_GCM_8" in the SDP. I didn't make any more changes.
2021-07-11 08:58:12.817579 [DEBUG] sofia_glue.c:1624 sofia/sipnet-ipv6/00000 sending invite version: 1.10.6-release git 1ff9d0a 2021-03-25 13:16:09Z 64bit
Local SDP:
v=0
o=FreeSWITCH 1625950786 1625950787 IN IP6 2a02:1c41:3e5a:6a7b::3
s=FreeSWITCH
c=IN IP6 2a02:1c41:3e5a:6a7b::3
t=0 0
m=audio 32306 RTP/SAVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=crypto:7 AES_CM_128_HMAC_SHA1_80 inline:FXD6qrhVugkvVitP8oJcPIFkWo3a2SJsmCZnb+ux
a=crypto:1 AEAD_AES_256_GCM_8 inline:SC0xbPLWan2gC2jNqCohFU3hDXfETwNtz5SYYyWYGynyHUYUeNlttM14tkA=
a=ptime:20
a=sendrecv
The previous dialplan was like this
<extension name="sipnet_test">
<condition field="destination_number" expression="^5(00000|00)$">
<action application="export" data="nolocal:absolute_codec_string=PCMA,PCMU"/>
<action application="set" data="rtp_secure_media=mandatory:AES_CM_128_HMAC_SHA1_80"/>
<action application="export" data="nolocal:rtp_secure_media=mandatory"/>
<action application="export" data="nolocal:rtp_secure_media_suites=AES_CM_256_HMAC_SHA1_80"/>
<action application="bridge" data="{ignore_sdp_ice=true}[sip_cid_type=pid]sofia/gateway/sipnet_ipv6/$1"/>
</condition>
</extension>
I don't see any fatal errors here.
We are also facing this issue.
The fix is to use AES_256_CM_HMAC_SHA180 instead of AESCM_256_HMAC_SHA1_80, the docu is just wrong.
The problem I wrote here is not fixed in version 1.10.6. Freeswitch does not include line "a=crypto:" in SDP if "rtp_secure_media_suites=AES_CM_256_HMAC_SHA1_80" (or AEAD_AES_256_GCM_8) is set in dialplan. INVALID SUITE SUPPLIED