"So you're missing the parts of the log that would clarify the situation, the parts where its doing all the codec compares." On Aug 19, 2014, at 6:31 PM, Kamrul Khan <dodul@live.com> wrote:
Hello Brian,
Thanks for your reply. I initially tried without the rtp_secire_media; I added rtp_secure_media = true after going through this page:
https://wiki.freeswitch.org/wiki/Secure_RTP
Probably I misunderstood it. So what is actually the issue and how to fix this. Please help ... Thanks in advanced!
BR//Kamrul
From: dodul@live.com To: freeswitch-users@lists.freeswitch.org Subject: Freeswitch srtp rejecting SRTP with 488 Date: Wed, 20 Aug 2014 03:22:03 +0600
Hi,
Below is my dialplan:
<extension name="cext"> <condition field="destination_number" expression="^(2000)$"> <action application="set" data="rtp_secure_media=true"/> <action application="bridge" data="user/bob"/> </condition> <condition field="destination_number" expression="^(3000)$"> <action application="set" data="rtp_secure_media=true"/> <action application="bridge" data="user/bob"/> </condition> </extension> </context>
You can see I have rtp_secure_media=true for both extension. However, when I try to call I get rejected with 488 Not acceptable here. In my freeswitch console log I find sofia/internal/alice@192.168.146.133 Standard REPORTING, cause:INCOMPATIBLE_DESTINATION. What should I do to fix this?
Below is my complete console log:
2014-07-22 19:51:32.572499 [DEBUG] sofia.c:5847 IP 192.168.146.133 Rejected by acl "domains". Falling back to Digest auth. 2014-07-22 19:51:32.707332 [DEBUG] sofia.c:5847 IP 192.168.146.133 Rejected by acl "domains". Falling back to Digest auth. 2014-07-22 19:51:32.724263 [NOTICE] switch_channel.c:669 New Channel sofia/internal/alice@192.168.146.133 [4101d950-1214-11e4-933c-61443ed3c9c7] 2014-07-22 19:51:32.725481 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/alice@192.168.146.133) Running State Change CS_NEW 2014-07-22 19:51:32.725481 [DEBUG] switch_core_state_machine.c:320 (sofia/internal/alice@192.168.146.133) State NEW 2014-07-22 19:51:32.762327 [DEBUG] sofia.c:4153 Channel sofia/internal/alice@192.168.146.133 entering state [received][100] 2014-07-22 19:51:32.762327 [DEBUG] sofia.c:4164 Remote SDP: v=0 o=Mozilla-SIPUA-31.0 12934 1 IN IP4 0.0.0.0 s=Doubango Telecom - firefox t=0 0 a=ice-ufrag:5e3a0151 a=ice-pwd:9df6e8f0963f033e8573a23e4ce62298 a=fingerprint:sha-256 90:BD:D7:9C:DE:66:5D:86:D4:8A:61:89:75:07:EF:F9:9A:06:AE:29:C8:1D:BD:C3:BD:C0:41:12:01:B5:45:FD m=audio 56772 UDP/TLS/RTP/SAVPF 109 0 8 101 c=IN IP4 184.69.59.132 a=rtpmap:109 opus/48000/2 a=ptime:20 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=setup:actpass a=candidate:0 1 UDP 2128609535 172.16.1.188 56772 typ host a=candidate:2 1 UDP 1692467199 184.69.59.132 56772 typ srflx raddr 172.16.1.188 rport 56772 a=candidate:5 1 UDP 2128543999 192.168.56.1 56773 typ host a=candidate:10 1 UDP 2128478463 192.168.232.1 56774 typ host a=candidate:15 1 UDP 2128412927 192.168.146.1 56775 typ host a=candidate:0 2 UDP 2128609534 172.16.1.188 56776 typ host a=candidate:1 2 UDP 1692467198 184.69.59.132 56776 typ srflx raddr 172.16.1.188 rport 56776 a=candidate:5 2 UDP 2128543998 192.168.56.1 56777 typ host a=candidate:10 2 UDP 2128478462 192.168.232.1 56778 typ host a=candidate:15 2 UDP 2128412926 192.168.146.1 56779 typ host a=rtcp-mux
2014-07-22 19:51:32.762327 [NOTICE] sofia.c:4354 Hangup sofia/internal/alice@192.168.146.133 [CS_NEW] [INCOMPATIBLE_DESTINATION] 2014-07-22 19:51:32.762327 [DEBUG] switch_channel.c:2102 Send signal sofia/internal/alice@192.168.146.133 [KILL] 2014-07-22 19:51:32.762327 [DEBUG] switch_core_session.c:1021 Send signal sofia/internal/alice@192.168.146.133 [BREAK] 2014-07-22 19:51:32.762327 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/alice@192.168.146.133) Running State Change CS_HANGUP 2014-07-22 19:51:32.762327 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/alice@192.168.146.133) State HANGUP 2014-07-22 19:51:32.762327 [DEBUG] mod_sofia.c:414 Channel sofia/internal/alice@192.168.146.133 hanging up, cause: INCOMPATIBLE_DESTINATION 2014-07-22 19:51:32.780344 [DEBUG] mod_sofia.c:476 Responding to INVITE with: 488 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:46 sofia/internal/alice@192.168.146.133 Standard HANGUP, cause: INCOMPATIBLE_DESTINATION 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/alice@192.168.146.133) State HANGUP going to sleep 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:333 (sofia/internal/alice@192.168.146.133) State Change CS_HANGUP -> CS_REPORTING 2014-07-22 19:51:32.780344 [DEBUG] switch_core_session.c:1021 Send signal sofia/internal/alice@192.168.146.133 [BREAK] 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/alice@192.168.146.133) Running State Change CS_REPORTING 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/alice@192.168.146.133) State REPORTING 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:53 sofia/internal/alice@192.168.146.133 Standard REPORTING, cause: INCOMPATIBLE_DESTINATION 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/alice@192.168.146.133) State REPORTING going to sleep 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:327 (sofia/internal/alice@192.168.146.133) State Change CS_REPORTING -> CS_DESTROY 2014-07-22 19:51:32.780344 [DEBUG] switch_core_session.c:1021 Send signal sofia/internal/alice@192.168.146.133 [BREAK] 2014-07-22 19:51:32.780344 [DEBUG] switch_core_session.c:1164 Session 138 (sofia/internal/alice@192.168.146.133) Locked, Waiting on external entities 2014-07-22 19:51:32.780344 [NOTICE] switch_core_session.c:1182 Session 138 (sofia/internal/alice@192.168.146.133) Ended 2014-07-22 19:51:32.780344 [NOTICE] switch_core_session.c:1184 Close Channel sofia/internal/alice@192.168.146.133 [CS_DESTROY] 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:428 (sofia/internal/alice@192.168.146.133) Running State Change CS_DESTROY 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:439 (sofia/internal/alice@192.168.146.133) State DESTROY 2014-07-22 19:51:32.780344 [DEBUG] mod_sofia.c:341 sofia/internal/alice@192.168.146.133 SOFIA DESTROY 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:60 sofia/internal/alice@192.168.146.133 Standard DESTROY 2014-07-22 19:51:32.780344 [DEBUG] switch_core_state_machine.c:439 (sofia/internal/alice@192.168.146.133) State DESTROY going to sleep