Hello Guys, So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled: <action application="bridge" data="{sip_secure_media=true,sdp_secure_savp_only=true,absolute_codec_string=^^:PCMA:PCMU}sofia/external/${destination_number}@myserver;transport=tcp" /> But the sdp is being went without srtp, what am I missing? Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 ᐧ
All RTP related channel vars were renamed from sip_ to rtp_. Try rtp_secure_media. Best, Colin On Fri, May 12, 2017 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Guys,
So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled:
<action application="bridge" data="{sip_secure_media=true,sdp_secure_savp_only=true,absolute_codec_string=^^:PCMA:PCMU}sofia/external/${destination_number}@myserver;transport=tcp" />
But the sdp is being went without srtp, what am I missing?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 ᐧ _________________________________________________________________________ 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
Hello, yeah I had completely forgotten that! At least now it's offering SAVP, but for some reason the negotiation fails... Can you give me a hand? I can't find where the issue might lie... Here's the log... 2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 76) send 2024 bytes to tcp/[1.2.3.153[gw]]:5111 at 10:52:25.441911: ------------------------------------------------------------------------ INVITE sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B Max-Forwards: 68 From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Contact: <sip:mod_sofia@1.2.3.43[fs]:5111;transport=tcp> User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bit Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, path, replaces Allow-Events: talk, hold, conference, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 1073 p-time: 396889 p-ident: afac52cc2fd51e1110a06d4f9d44c80d P-Application: SOLUTO X-Src: 0;8.8.0.24[client-ip];1.2.3.25[registrar-kamailio] X-FS-Support: update_display,send_info Remote-Party-ID: "soluto" <sip:soluto@1.2.3.43 [fs]>;party=calling;screen=yes;privacy=off v=0 o=FreeSWITCH 1494558991 1494558992 IN IP4 1.2.3.43[fs] s=FreeSWITCH c=IN IP4 1.2.3.43[fs] t=0 0 m=audio 27354 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:1 AEAD_AES_256_GCM_8 inline:2/QJPmYA6js+Vo2N5Z/iowwd4IKAwXOgVdmy3trDM56ys2vm/1pViViAtiE a=crypto:2 AEAD_AES_128_GCM_8 inline:O8Ib9toXNXjxAVAH5uI/xcZRvpgz4bLbtFPsQA a=crypto:3 AES_CM_256_HMAC_SHA1_80 inline:QMeDgbL1fXf1Q4pAUpG6EtQa95cceubGFgM7WIfiR6YfUe+aOHSitl+ZuPAdoQ a=crypto:4 AES_CM_192_HMAC_SHA1_80 inline:8JFbH6JihbqIriChDZba/dGKiViieJAQW6SKZ9QvX7HKXedRpzo a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:0SNbzrAEs4rSTY+K0oeEqL26/K5UvRv9/8Yw1LFP a=crypto:6 AES_CM_256_HMAC_SHA1_32 inline:z0DO9vlMLqHU2ATq9FJDGD6V8DVIYubt2KhCbrZ84zKiPmnSzxt2P8MtU3OHbA a=crypto:7 AES_CM_192_HMAC_SHA1_32 inline:IHXpuYGvEuJE/0coHGAIhMMuQnzJb/J7kTJBT54uVoyVlByAeqY a=crypto:8 AES_CM_128_HMAC_SHA1_32 inline:8um9NRNdmXJcOU8ymod3ohf0tnrh1rBjIEigQOLW a=crypto:9 AES_CM_128_NULL_AUTH inline:1cDItzdQZ0Z8whBwb0w7z2ZbY52Kzy4EroNQwJWd a=ptime:20 ------------------------------------------------------------------------ tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer nta.c:8304 outgoing_send() nta: sent INVITE (106957108) to tcp/1.2.3.153 [gw]:5111 tport.c:4160 tport_pend() tport_pend(0x7fa14000a110): pending 0x7fa140019990 for tcp/1.2.3.153[gw]:5111 (already 0) nua_session.c:4139 signal_call_state_change() nua(0x7fa100006de0): call state changed: init -> calling, sent offer soa.c:1270 soa_get_local_sdp() soa_get_local_sdp(static::0x7fa14000f210, [0x7fa16690eab0], [0x7fa16690eab8], [(nil)]) called nua_stack.c:269 nua_stack_event() nua(0x7fa100006de0): event i_state INVITE sent 2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:662 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State CONSUME_MEDIA 2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:662 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State CONSUME_MEDIA going to sleep nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.432321 [DEBUG] sofia.c:7048 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 entering state [calling][0] nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering tport.c:2773 tport_wakeup() tport_wakeup(0x7fa14000a110): events IN tport.c:2864 tport_recv_event() tport_recv_event(0x7fa14000a110) tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7fa14000a110) msg 0x7fa140016780 from (tcp/1.2.3.153[gw]:5111) has 369 bytes, veclen = 1 recv 369 bytes from tcp/[1.2.3.153[gw]]:5111 at 10:52:25.447037: ------------------------------------------------------------------------ SIP/2.0 100 trying -- your call is important to us Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Server: kamailio (4.2.8 (x86_64/linux)) Content-Length: 0 ------------------------------------------------------------------------ tport.c:3023 tport_deliver() tport_deliver(0x7fa14000a110): msg 0x7fa140016780 (369 bytes) from tcp/1.2.3.153[gw]:5111/sip next=(nil) nta.c:3299 agent_recv_response() nta: received 100 trying -- your call is important to us for INVITE (106957108) nta.c:3366 agent_recv_response() nta: 100 trying -- your call is important to us is going to a transaction nta.c:9564 outgoing_estimate_delay() nta_outgoing: RTT is 5.235 ms tport.c:4222 tport_release() tport_release(0x7fa14000a110): 0x7fa140019990 by 0x7fa1400132d0 with 0x7fa140016780 (preliminary) tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer tport.c:2773 tport_wakeup() tport_wakeup(0x7fa14000a110): events IN tport.c:2864 tport_recv_event() tport_recv_event(0x7fa14000a110) tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7fa14000a110) msg 0x7fa140016780 from (tcp/1.2.3.153[gw]:5111) has 1125 bytes, veclen = 1 recv 1125 bytes from tcp/[1.2.3.153[gw]]:5111 at 10:52:25.597905: ------------------------------------------------------------------------ SIP/2.0 180 Ringing Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B From: "soluto" <sip:soluto@1.2.3.165[gw-rtp-ip]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.165 [gw-rtp-ip]:5111;transport=tcp>;tag=SDbqa6299-801c7bd26943e712b98591536c00 Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Record-Route: <sip:1.2.3.153[gw]:5061;transport=tls;r2=on;lr> Record-Route: <sip:1.2.3.153[gw]:5111;transport=tcp;r2=on;lr> P-Asserted-Identity: <sip:6151920015@asurtel.asurion.com> P-AV-Message-Id: 1_2 Server: Avaya CM/R016x.03.0.124.0 AVAYA-SM-7.0.0.0.700007 Contact: <sip:1.2.3.165[gw-rtp-ip]:5061;gsid=159598f0-3701-11e7-97d8-000c292eaf17;transport=tls> Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, NOTIFY, REFER, INFO, UPDATE Supported: histinfo, join, replaces, timer Content-Type: application/sdp Content-Length: 282 v=0 o=- 2716084251 2 IN IP4 1.2.3.165[gw-rtp-ip] s=- c=IN IP4 1.2.3.165[gw-rtp-ip] b=AS:64 t=0 0 m=audio 14974 RTP/SAVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=sendrecv a=ptime:20 a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE ------------------------------------------------------------------------ tport.c:3023 tport_deliver() tport_deliver(0x7fa14000a110): msg 0x7fa140016780 (1125 bytes) from tcp/1.2.3.153[gw]:5111/sip next=(nil) nta.c:3299 agent_recv_response() nta: received 180 Ringing for INVITE (106957108) nta.c:3366 agent_recv_response() nta: 180 Ringing is going to a transaction tport.c:4222 tport_release() tport_release(0x7fa14000a110): 0x7fa140019990 by 0x7fa1400132d0 with 0x7fa140016780 (preliminary) soa.c:1171 soa_set_remote_sdp() soa_set_remote_sdp(static::0x7fa14000f210, (nil), 0x7fa14001638b, 282) called soa.c:1595 soa_process_answer() soa_process_answer(static::0x7fa14000f210) called soa_static.c:1148 offer_answer_step() soa_static_offer_answer_action(0x7fa14000f210, soa_process_answer): called soa_static.c:1029 soa_sdp_mode_set() soa_sdp_mode_set(0x7fa140010c50, 0x7fa14001d5c0, ""): called soa_static.c:1304 offer_answer_step() soa_static(0x7fa14000f210, soa_process_answer): upgrade codecs with remote description soa_static.c:1446 offer_answer_step() soa_static(0x7fa14000f210, soa_process_answer): storing local description soa.c:1730 soa_activate() soa_activate(static::0x7fa14000f210, (nil)) called nua_session.c:988 nua_session_client_response() nua(0x7fa100006de0): INVITE: processed SDP answer in 180 Ringing nua_stack.c:271 nua_stack_event() nua(0x7fa100006de0): event r_invite 180 Ringing nua_session.c:4139 signal_call_state_change() nua(0x7fa100006de0): call state changed: calling -> proceeding, received answer soa.c:1098 soa_get_remote_sdp() soa_get_remote_sdp(static::0x7fa14000f210, [0x7fa16690e310], [0x7fa16690e318], [(nil)]) called soa.c:616 soa_get_params() soa_get_params(static::0x7fa14000f210, ...) called nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua_stack.c:271 nua_stack_event() nua(0x7fa100006de0): event i_state 180 Ringing tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [INFO] sofia.c:1279 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Update Callee ID to "Outbound Call" <6151920015> nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [DEBUG] sofia.c:7048 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 entering state [proceeding][180] 2017-05-12 10:52:25.592332 [DEBUG] sofia.c:7058 Remote SDP: v=0 o=- 2716084251 2 IN IP4 1.2.3.165[gw-rtp-ip] s=- c=IN IP4 1.2.3.165[gw-rtp-ip] b=AS:64 t=0 0 m=audio 14974 RTP/SAVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=ptime:20 a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AEAD_AES_256_GCM_8] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AEAD_AES_128_GCM_8] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_256_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_192_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_128_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1396 Found suite AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1462 Set Remote Key [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4491 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4352 Set telephone-event payload to 101@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:3056 Set Codec sofia/external/%2B16151920015@1.2.3.153[gw]:5111 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2017-05-12 10:52:25.592332 [DEBUG] switch_core_codec.c:111 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Original read codec set to PCMU:0 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4695 Set telephone-event payload to 101@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4754 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf send payload to 101 recv payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:6865 AUDIO RTP [sofia/external/%2B16151920015@1.2.3.153[gw]:5111] 1.2.3.43[fs] port 27354 -> 1.2.3.165[gw-rtp-ip] port 14974 codec: 0 ms: 20 2017-05-12 10:52:25.592332 [DEBUG] switch_rtp.c:4096 Starting timer [soft] 160 bytes per 20ms 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7166 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf send payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7173 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf receive payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7196 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Set rtp dtmf delay to 40 2017-05-12 10:52:25.592332 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND 2017-05-12 10:52:25.592332 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV 2017-05-12 10:52:25.592332 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/%2B16151920015@1.2.3.153[gw]:5111! 2017-05-12 10:52:25.592332 [DEBUG] switch_channel.c:3473 (sofia/external/% 2B16151920015@1.2.3.153[gw]:5111) Callstate Change DOWN -> EARLY nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [INFO] switch_ivr_originate.c:3639 Sending early media 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[G722:9:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[PCMU:0:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[PCMA:8:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4352 Set telephone-event payload to 96@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4754 sofia/external/ soluto@1.2.3.25[registrar-kamailio] Set 2833 dtmf send payload to 96 recv payload to 96 2017-05-12 10:52:25.592332 [ERR] mod_sofia.c:2342 CODEC NEGOTIATION ERROR. SDP: v=0 o=- 3703575145 3703575145 IN IP4 192.168.1.171 s=pjmedia b=AS:84 t=0 0 a=X-nat:0 m=audio 33228 RTP/SAVP 107 96 c=IN IP4 67.205.173.126 b=TIAS:64000 a=rtpmap:107 opus/48000/2 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-16 a=rtcp:33229 a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:4h3KXpeuR1qSWxR4+/XCLDtCO3UGqrO5gXK6HIGF a=setup:actpass a=fingerprint:sha-1 7B:5A:DF:A5:CC:88:FD:CA:88:C2:A8:D1:73:1F:3A:D8:29:9F:B3:D0 a=ice-ufrag:T0L06kG3 a=ice-pwd:uLNAX5ppVlJmXAdY7E4SZKsSKd a=candidate:eTePfBnNsoctce5m 1 UDP 2130706431 67.205.173.126 33228 typ host a=candidate:eTePfBnNsoctce5m 2 UDP 2130706430 67.205.173.126 33229 typ host 2017-05-12 10:52:25.592332 [NOTICE] switch_channel.c:3514 Hangup sofia/external/soluto@1.2.3.25[registrar-kamailio] [CS_EXECUTE] [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_ivr_originate.c:3646 sofia/external/soluto@1.2.3.25[registrar-kamailio] Media Establishment Failed. 2017-05-12 10:52:25.592332 [NOTICE] switch_ivr_originate.c:3648 Hangup sofia/external/%2B16151920015@1.2.3.153[gw]:5111 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_ivr_originate.c:3833 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_HANGUP (Cur 2 Tot 76) 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:850 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Callstate Change EARLY -> HANGUP 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:852 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State HANGUP 2017-05-12 10:52:25.592332 [INFO] mod_dptools.c:3418 Originate Failed. Cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] mod_sofia.c:438 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 hanging up, cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/external/%2B16151920015@1.2.3.153[gw]:5111 nua.c:651 nua_cancel() nua: nua_cancel: entering nua_stack.c:529 nua_signal() nua(0x7fa100006de0): sent signal r_cancel 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:60 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Standard HANGUP, cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:852 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State HANGUP going to sleep nua_stack.c:569 nua_stack_signal() nua(0x7fa100006de0): recv signal r_cancel 2017-05-12 10:52:25.592332 [DEBUG] switch_core_session.c:2814 sofia/external/soluto@1.2.3.25[registrar-kamailio] skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:650 (sofia/external/soluto@1.2.3.25[registrar-kamailio]) State EXECUTE going to sleep soa.c:403 soa_set_params() soa_set_params(static::0x7fa14000f210, ...) called 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/soluto@1.2.3.25[registrar-kamailio]) Running State Change CS_HANGUP (Cur 2 Tot 76) 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:619 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State Change CS_HANGUP -> CS_REPORTING tport.c:4588 tport_by_name() tport(0x7fa140004b30): found 0x7fa14000a110 by name tcp/1.2.3.153[gw]:5111 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_REPORTING (Cur 2 Tot 76) tport.c:3257 tport_tsend() tport_tsend(0x7fa14000a110) tpn = tcp/1.2.3.153 [gw]:5111 tport.c:3594 tport_vsend() tport_vsend(0x7fa14000a110): 417 bytes of 417 to tcp/1.2.3.153[gw]:5111 tport.c:3492 tport_send_msg() tport_vsend returned 417 send 417 bytes to tcp/[1.2.3.153[gw]]:5111 at 10:52:25.604158: ------------------------------------------------------------------------ CANCEL sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B Max-Forwards: 68 From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:938 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State REPORTING Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 CANCEL Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION" Content-Length: 0 ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Fri, May 12, 2017 at 12:41 PM, Colin Morelli <colin.morelli@gmail.com> wrote:
All RTP related channel vars were renamed from sip_ to rtp_. Try rtp_secure_media.
Best, Colin
On Fri, May 12, 2017 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Guys,
So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled:
<action application="bridge" data="{sip_secure_media=true, sdp_secure_savp_only=true,absolute_codec_string=^^:PCMA: PCMU}sofia/external/${destination_number}@myserver;transport=tcp" />
But the sdp is being went without srtp, what am I missing?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037> ᐧ _________________________________________________________________________ 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
_________________________________________________________________________ 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
Nevermind, Opus wasn't compiled... :( ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Fri, May 12, 2017 at 1:03 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
yeah I had completely forgotten that!
At least now it's offering SAVP, but for some reason the negotiation fails... Can you give me a hand? I can't find where the issue might lie...
Here's the log...
2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 76) send 2024 bytes to tcp/[1.2.3.153[gw]]:5111 at 10:52:25.441911: ----------------------------------------------------------- ------------- INVITE sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B Max-Forwards: 68 From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Contact: <sip:mod_sofia@1.2.3.43[fs]:5111;transport=tcp> User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bit Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, path, replaces Allow-Events: talk, hold, conference, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 1073 p-time: 396889 p-ident: afac52cc2fd51e1110a06d4f9d44c80d P-Application: SOLUTO X-Src: 0;8.8.0.24[client-ip];1.2.3.25[registrar-kamailio] X-FS-Support: update_display,send_info Remote-Party-ID: "soluto" <sip:soluto@1.2.3.43[fs]>; party=calling;screen=yes;privacy=off
v=0 o=FreeSWITCH 1494558991 1494558992 IN IP4 1.2.3.43[fs] s=FreeSWITCH c=IN IP4 1.2.3.43[fs] t=0 0 m=audio 27354 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:1 AEAD_AES_256_GCM_8 inline:2/QJPmYA6js+Vo2N5Z/ iowwd4IKAwXOgVdmy3trDM56ys2vm/1pViViAtiE a=crypto:2 AEAD_AES_128_GCM_8 inline:O8Ib9toXNXjxAVAH5uI/ xcZRvpgz4bLbtFPsQA a=crypto:3 AES_CM_256_HMAC_SHA1_80 inline: QMeDgbL1fXf1Q4pAUpG6EtQa95cceubGFgM7WIfiR6YfUe+aOHSitl+ZuPAdoQ a=crypto:4 AES_CM_192_HMAC_SHA1_80 inline:8JFbH6JihbqIriChDZba/ dGKiViieJAQW6SKZ9QvX7HKXedRpzo a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:0SNbzrAEs4rSTY+ K0oeEqL26/K5UvRv9/8Yw1LFP a=crypto:6 AES_CM_256_HMAC_SHA1_32 inline: z0DO9vlMLqHU2ATq9FJDGD6V8DVIYubt2KhCbrZ84zKiPmnSzxt2P8MtU3OHbA a=crypto:7 AES_CM_192_HMAC_SHA1_32 inline:IHXpuYGvEuJE/ 0coHGAIhMMuQnzJb/J7kTJBT54uVoyVlByAeqY a=crypto:8 AES_CM_128_HMAC_SHA1_32 inline: 8um9NRNdmXJcOU8ymod3ohf0tnrh1rBjIEigQOLW a=crypto:9 AES_CM_128_NULL_AUTH inline:1cDItzdQZ0Z8whBwb0w7z2ZbY52Kzy 4EroNQwJWd a=ptime:20 ----------------------------------------------------------- ------------- tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer nta.c:8304 outgoing_send() nta: sent INVITE (106957108) to tcp/1.2.3.153 [gw]:5111 tport.c:4160 tport_pend() tport_pend(0x7fa14000a110): pending 0x7fa140019990 for tcp/1.2.3.153[gw]:5111 (already 0) nua_session.c:4139 signal_call_state_change() nua(0x7fa100006de0): call state changed: init -> calling, sent offer soa.c:1270 soa_get_local_sdp() soa_get_local_sdp(static::0x7fa14000f210, [0x7fa16690eab0], [0x7fa16690eab8], [(nil)]) called nua_stack.c:269 nua_stack_event() nua(0x7fa100006de0): event i_state INVITE sent 2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:662 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State CONSUME_MEDIA 2017-05-12 10:52:25.432321 [DEBUG] switch_core_state_machine.c:662 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State CONSUME_MEDIA going to sleep nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.432321 [DEBUG] sofia.c:7048 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 entering state [calling][0] nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering tport.c:2773 tport_wakeup() tport_wakeup(0x7fa14000a110): events IN tport.c:2864 tport_recv_event() tport_recv_event(0x7fa14000a110) tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7fa14000a110) msg 0x7fa140016780 from (tcp/1.2.3.153[gw]:5111) has 369 bytes, veclen = 1 recv 369 bytes from tcp/[1.2.3.153[gw]]:5111 at 10:52:25.447037: ----------------------------------------------------------- ------------- SIP/2.0 100 trying -- your call is important to us Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Server: kamailio (4.2.8 (x86_64/linux)) Content-Length: 0
----------------------------------------------------------- ------------- tport.c:3023 tport_deliver() tport_deliver(0x7fa14000a110): msg 0x7fa140016780 (369 bytes) from tcp/1.2.3.153[gw]:5111/sip next=(nil) nta.c:3299 agent_recv_response() nta: received 100 trying -- your call is important to us for INVITE (106957108) nta.c:3366 agent_recv_response() nta: 100 trying -- your call is important to us is going to a transaction nta.c:9564 outgoing_estimate_delay() nta_outgoing: RTT is 5.235 ms tport.c:4222 tport_release() tport_release(0x7fa14000a110): 0x7fa140019990 by 0x7fa1400132d0 with 0x7fa140016780 (preliminary) tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer tport.c:2773 tport_wakeup() tport_wakeup(0x7fa14000a110): events IN tport.c:2864 tport_recv_event() tport_recv_event(0x7fa14000a110) tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7fa14000a110) msg 0x7fa140016780 from (tcp/1.2.3.153[gw]:5111) has 1125 bytes, veclen = 1 recv 1125 bytes from tcp/[1.2.3.153[gw]]:5111 at 10:52:25.597905: ----------------------------------------------------------- ------------- SIP/2.0 180 Ringing Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B From: "soluto" <sip:soluto@1.2.3.165[gw-rtp-ip]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.165[gw-rtp-ip]:5111;transport=tcp> ;tag=SDbqa6299-801c7bd26943e712b98591536c00 Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 INVITE Record-Route: <sip:1.2.3.153[gw]:5061;transport=tls;r2=on;lr> Record-Route: <sip:1.2.3.153[gw]:5111;transport=tcp;r2=on;lr> P-Asserted-Identity: <sip:6151920015@asurtel.asurion.com> P-AV-Message-Id: 1_2 Server: Avaya CM/R016x.03.0.124.0 AVAYA-SM-7.0.0.0.700007 Contact: <sip:1.2.3.165[gw-rtp-ip]:5061;gsid=159598f0-3701-11e7- 97d8-000c292eaf17;transport=tls> Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, NOTIFY, REFER, INFO, UPDATE Supported: histinfo, join, replaces, timer Content-Type: application/sdp Content-Length: 282
v=0 o=- 2716084251 2 IN IP4 1.2.3.165[gw-rtp-ip] s=- c=IN IP4 1.2.3.165[gw-rtp-ip] b=AS:64 t=0 0 m=audio 14974 RTP/SAVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=sendrecv a=ptime:20 a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/ taRBRyBGFbsggE ----------------------------------------------------------- ------------- tport.c:3023 tport_deliver() tport_deliver(0x7fa14000a110): msg 0x7fa140016780 (1125 bytes) from tcp/1.2.3.153[gw]:5111/sip next=(nil) nta.c:3299 agent_recv_response() nta: received 180 Ringing for INVITE (106957108) nta.c:3366 agent_recv_response() nta: 180 Ringing is going to a transaction tport.c:4222 tport_release() tport_release(0x7fa14000a110): 0x7fa140019990 by 0x7fa1400132d0 with 0x7fa140016780 (preliminary) soa.c:1171 soa_set_remote_sdp() soa_set_remote_sdp(static::0x7fa14000f210, (nil), 0x7fa14001638b, 282) called soa.c:1595 soa_process_answer() soa_process_answer(static::0x7fa14000f210) called soa_static.c:1148 offer_answer_step() soa_static_offer_answer_action(0x7fa14000f210, soa_process_answer): called soa_static.c:1029 soa_sdp_mode_set() soa_sdp_mode_set(0x7fa140010c50, 0x7fa14001d5c0, ""): called soa_static.c:1304 offer_answer_step() soa_static(0x7fa14000f210, soa_process_answer): upgrade codecs with remote description soa_static.c:1446 offer_answer_step() soa_static(0x7fa14000f210, soa_process_answer): storing local description soa.c:1730 soa_activate() soa_activate(static::0x7fa14000f210, (nil)) called nua_session.c:988 nua_session_client_response() nua(0x7fa100006de0): INVITE: processed SDP answer in 180 Ringing nua_stack.c:271 nua_stack_event() nua(0x7fa100006de0): event r_invite 180 Ringing nua_session.c:4139 signal_call_state_change() nua(0x7fa100006de0): call state changed: calling -> proceeding, received answer soa.c:1098 soa_get_remote_sdp() soa_get_remote_sdp(static::0x7fa14000f210, [0x7fa16690e310], [0x7fa16690e318], [(nil)]) called soa.c:616 soa_get_params() soa_get_params(static::0x7fa14000f210, ...) called nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua_stack.c:271 nua_stack_event() nua(0x7fa100006de0): event i_state 180 Ringing tport.c:2296 tport_set_secondary_timer() tport(0x7fa14000a110): reset timer nua_stack.c:359 nua_application_event() nua: nua_application_event: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [INFO] sofia.c:1279 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Update Callee ID to "Outbound Call" <6151920015> nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [DEBUG] sofia.c:7048 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 entering state [proceeding][180] 2017-05-12 10:52:25.592332 [DEBUG] sofia.c:7058 Remote SDP: v=0 o=- 2716084251 2 IN IP4 1.2.3.165[gw-rtp-ip] s=- c=IN IP4 1.2.3.165[gw-rtp-ip] b=AS:64 t=0 0 m=audio 14974 RTP/SAVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=ptime:20 a=crypto:5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/ taRBRyBGFbsggE
2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AEAD_AES_256_GCM_8] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/ 0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AEAD_AES_128_GCM_8] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/ 0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_256_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_192_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1391 looking for crypto suite [AES_CM_128_HMAC_SHA1_80] in [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1396 Found suite AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:1462 Set Remote Key [5 AES_CM_128_HMAC_SHA1_80 inline:NE/0Ttf1pbNEUyUUxxILCBQGC/ taRBRyBGFbsggE] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4491 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4352 Set telephone-event payload to 101@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:3056 Set Codec sofia/external/%2B16151920015@1.2.3.153[gw]:5111 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2017-05-12 10:52:25.592332 [DEBUG] switch_core_codec.c:111 sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 Original read codec set to PCMU:0 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4695 Set telephone-event payload to 101@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4754 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf send payload to 101 recv payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:6865 AUDIO RTP [sofia/external/%2B16151920015@1.2.3.153[gw]:5111] 1.2.3.43[fs] port 27354 -> 1.2.3.165[gw-rtp-ip] port 14974 codec: 0 ms: 20 2017-05-12 10:52:25.592332 [DEBUG] switch_rtp.c:4096 Starting timer [soft] 160 bytes per 20ms 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7166 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf send payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7173 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Set 2833 dtmf receive payload to 101 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:7196 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Set rtp dtmf delay to 40 2017-05-12 10:52:25.592332 [INFO] switch_rtp.c:3908 Activating audio Secure RTP SEND 2017-05-12 10:52:25.592332 [INFO] switch_rtp.c:3886 Activating audio Secure RTP RECV 2017-05-12 10:52:25.592332 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [DEBUG] switch_core_sqldb.c:2617 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80 2017-05-12 10:52:25.592332 [NOTICE] sofia_media.c:92 Pre-Answer sofia/external/%2B16151920015@1.2.3.153[gw]:5111! 2017-05-12 10:52:25.592332 [DEBUG] switch_channel.c:3473 (sofia/external/% 2B16151920015@1.2.3.153[gw]:5111) Callstate Change DOWN -> EARLY nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering 2017-05-12 10:52:25.592332 [INFO] switch_ivr_originate.c:3639 Sending early media 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[G722:9:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[PCMU:0:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4436 Audio Codec Compare [opus:107:48000:20:0:2]/[PCMA:8:8000:20:64000:1] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4352 Set telephone-event payload to 96@8000 2017-05-12 10:52:25.592332 [DEBUG] switch_core_media.c:4754 sofia/external/ soluto@1.2.3.25[registrar-kamailio] Set 2833 dtmf send payload to 96 recv payload to 96 2017-05-12 10:52:25.592332 [ERR] mod_sofia.c:2342 CODEC NEGOTIATION ERROR. SDP: v=0 o=- 3703575145 3703575145 IN IP4 192.168.1.171 s=pjmedia b=AS:84 t=0 0 a=X-nat:0 m=audio 33228 RTP/SAVP 107 96 c=IN IP4 67.205.173.126 b=TIAS:64000 a=rtpmap:107 opus/48000/2 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-16 a=rtcp:33229 a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:4h3KXpeuR1qSWxR4+/ XCLDtCO3UGqrO5gXK6HIGF a=setup:actpass a=fingerprint:sha-1 7B:5A:DF:A5:CC:88:FD:CA:88:C2: A8:D1:73:1F:3A:D8:29:9F:B3:D0 a=ice-ufrag:T0L06kG3 a=ice-pwd:uLNAX5ppVlJmXAdY7E4SZKsSKd a=candidate:eTePfBnNsoctce5m 1 UDP 2130706431 67.205.173.126 33228 typ host a=candidate:eTePfBnNsoctce5m 2 UDP 2130706430 67.205.173.126 33229 typ host
2017-05-12 10:52:25.592332 [NOTICE] switch_channel.c:3514 Hangup sofia/external/soluto@1.2.3.25[registrar-kamailio] [CS_EXECUTE] [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_ivr_originate.c:3646 sofia/external/soluto@1.2.3.25[registrar-kamailio] Media Establishment Failed. 2017-05-12 10:52:25.592332 [NOTICE] switch_ivr_originate.c:3648 Hangup sofia/external/%2B16151920015@1.2.3.153[gw]:5111 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_ivr_originate.c:3833 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION] 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_HANGUP (Cur 2 Tot 76) 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:850 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Callstate Change EARLY -> HANGUP 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:852 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State HANGUP 2017-05-12 10:52:25.592332 [INFO] mod_dptools.c:3418 Originate Failed. Cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] mod_sofia.c:438 Channel sofia/external/% 2B16151920015@1.2.3.153[gw]:5111 hanging up, cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] mod_sofia.c:502 Sending CANCEL to sofia/external/%2B16151920015@1.2.3.153[gw]:5111 nua.c:651 nua_cancel() nua: nua_cancel: entering nua_stack.c:529 nua_signal() nua(0x7fa100006de0): sent signal r_cancel 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:60 sofia/external/%2B16151920015@1.2.3.153[gw]:5111 Standard HANGUP, cause: INCOMPATIBLE_DESTINATION 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:852 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State HANGUP going to sleep nua_stack.c:569 nua_stack_signal() nua(0x7fa100006de0): recv signal r_cancel 2017-05-12 10:52:25.592332 [DEBUG] switch_core_session.c:2814 sofia/external/soluto@1.2.3.25[registrar-kamailio] skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:650 (sofia/external/soluto@1.2.3.25[registrar-kamailio]) State EXECUTE going to sleep soa.c:403 soa_set_params() soa_set_params(static::0x7fa14000f210, ...) called 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/soluto@1.2.3.25[registrar-kamailio]) Running State Change CS_HANGUP (Cur 2 Tot 76) 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:619 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State Change CS_HANGUP -> CS_REPORTING tport.c:4588 tport_by_name() tport(0x7fa140004b30): found 0x7fa14000a110 by name tcp/1.2.3.153[gw]:5111 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:584 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) Running State Change CS_REPORTING (Cur 2 Tot 76) tport.c:3257 tport_tsend() tport_tsend(0x7fa14000a110) tpn = tcp/1.2.3.153 [gw]:5111 tport.c:3594 tport_vsend() tport_vsend(0x7fa14000a110): 417 bytes of 417 to tcp/1.2.3.153[gw]:5111 tport.c:3492 tport_send_msg() tport_vsend returned 417 send 417 bytes to tcp/[1.2.3.153[gw]]:5111 at 10:52:25.604158: ----------------------------------------------------------- ------------- CANCEL sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 1.2.3.43[fs]:5111;branch=z9hG4bKyK3rSg8XK3X1B Max-Forwards: 68 From: "soluto" <sip:soluto@1.2.3.43[fs]>;tag=Ua2NXSa4mF7rD To: <sip:+16151920015@1.2.3.153[gw]:5111;transport=tcp> 2017-05-12 10:52:25.592332 [DEBUG] switch_core_state_machine.c:938 (sofia/external/%2B16151920015@1.2.3.153[gw]:5111) State REPORTING Call-ID: ecef602a-b1a3-1235-749f-0cc47a205c6e CSeq: 106957108 CANCEL Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION" Content-Length: 0
ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037>
On Fri, May 12, 2017 at 12:41 PM, Colin Morelli <colin.morelli@gmail.com> wrote:
All RTP related channel vars were renamed from sip_ to rtp_. Try rtp_secure_media.
Best, Colin
On Fri, May 12, 2017 at 6:24 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Guys,
So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled:
<action application="bridge" data="{sip_secure_media=true,s dp_secure_savp_only=true,absolute_codec_string=^^:PCMA:PCMU} sofia/external/${destination_number}@myserver;transport=tcp" />
But the sdp is being went without srtp, what am I missing?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037> ᐧ ____________________________________________________________ _____________ 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
_________________________________________________________________________ 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
Hi, maybe you have to change sip_ to rtp_ variable ? rtp_secure_media=true On Fri, May 12, 2017 at 12:21 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Guys,
So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled:
<action application="bridge" data="{sip_secure_media=true, sdp_secure_savp_only=true,absolute_codec_string=^^:PCMA: PCMU}sofia/external/${destination_number}@myserver;transport=tcp" />
But the sdp is being went without srtp, what am I missing?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037> ᐧ
_________________________________________________________________________ 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
-- Best regards, Volodymyr
Yep, it's working great, thanks! On Fri, May 12, 2017 at 1:20 PM Volodymyr Fedorov <lexxua@gmail.com> wrote:
Hi, maybe you have to change sip_ to rtp_ variable ? rtp_secure_media=true
On Fri, May 12, 2017 at 12:21 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello Guys,
So i've got this scenario where i'm receving in TCP+SRTP(opus) and I need to send to the b-leg in TCP+STRP(PCMA)... i've enabled:
<action application="bridge" data="{sip_secure_media=true,sdp_secure_savp_only=true,absolute_codec_string=^^:PCMA:PCMU}sofia/external/${destination_number}@myserver;transport=tcp" />
But the sdp is being went without srtp, what am I missing?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 <+34%20669%2044%2083%2037> ᐧ
_________________________________________________________________________ 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
-- Best regards, Volodymyr _________________________________________________________________________ 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
participants (3)
-
Colin Morelli
-
David Villasmil
-
Volodymyr Fedorov