I'm trying out the option to have FS play trusted MiTM for ZRTP.
I just compiled Master from Git and tried calling the 9787 extension from my softphone with ZRTP.
I see in the dialplan that the script appears to get executed, however I don't hear anything at all and after a little while the call hangs up.
It's not a codec issue because calling the IVR works fine.
So how do I set this globally so that FS always negotiates ZRTP with enabled clients? Or do I need to set that up in the dialplan?
98529894-b6c9-11e3-9ebf-efdbe42c5e9a Dialplan: sofia/internal/
1000@my.domain.com Regex (PASS) [zrtp_enrollement] destination_number(9787) =~ /^9787$/ break=on-false
98529894-b6c9-11e3-9ebf-efdbe42c5e9a Dialplan: sofia/internal/
1000@my.domain.com Action lua(zrtp_agent.lua)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_state_machine.c:214 (sofia/internal/
1000@my.domain.com) State Change CS_ROUTING -> CS_EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_session.c:1385 Send signal sofia/internal/
1000@my.domain.com [BREAK]
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_state_machine.c:523 (sofia/internal/
1000@my.domain.com) State ROUTING going to sleep
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_state_machine.c:467 (sofia/internal/
1000@my.domain.com) Running State Change CS_EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_state_machine.c:530 (sofia/internal/
1000@my.domain.com) State EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] mod_sofia.c:178 sofia/internal/
1000@my.domain.com SOFIA EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_core_state_machine.c:256 sofia/internal/
1000@my.domain.com Standard EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000@my.domain.com hash(insert/my.domain.com-spymap/1000/98529894-b6c9-11e3-9ebf-efdbe42c5e9a)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000@my.domain.com hash(insert/my.domain.com-last_dial/1000/9787)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000@my.domain.com hash(insert/my.domain.com-last_dial/global/98529894-b6c9-11e3-9ebf-efdbe42c5e9a)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000@my.domain.com export(RFC2822_DATE=Fri, 28 Mar 2014 22:37:51 +0000)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.375885 [DEBUG] switch_channel.c:1245 EXPORT (export_vars) [RFC2822_DATE]=[Fri, 28 Mar 2014 22:37:51 +0000]
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000@my.domain.com lua(zrtp_agent.lua)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.471868 [DEBUG] switch_core_media.c:343 Found audio zrtp-hash; setting r_sdp_audio_zrtp_hash=1.10 d873ef12ce3143ba4ee41295c1b3199f49a89a78249ef454b3333a784d77acfd
98529894-b6c9-11e3-9ebf-efdbe42c5e9a 2014-03-28 22:37:51.471868 [DEBUG] switch_core_media.c:3389 Audio Codec Compare [opus:111:48000:20:0]/[opus:116:48000:20:0]