[Freeswitch-users] ZRTP enrollment lua script question

Peter Villeneuve petervnv1 at gmail.com
Sat Mar 29 16:18:18 MSK 2014


Hi all,

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, what else do I need to do to allow ZRTP enrollment?

I see in the wiki that I need to set <action application="set"
data="zrtp_enrollment=true"/>
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 at my.domain.com Regex (PASS) [zrtp_enrollement] destination_number(9787)
=~ /^9787$/ break=on-false
98529894-b6c9-11e3-9ebf-efdbe42c5e9a Dialplan: sofia/internal/
1000 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at my.domain.com Standard
EXECUTE
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000 at my.domain.comhash(insert/my.domain.com-spymap/1000/98529894-b6c9-11e3-9ebf-efdbe42c5e9a)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000 at my.domain.com hash(insert/my.domain.com-last_dial/1000/9787)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000 at my.domain.comhash(insert/my.domain.com-last_dial/global/98529894-b6c9-11e3-9ebf-efdbe42c5e9a)
98529894-b6c9-11e3-9ebf-efdbe42c5e9a EXECUTE sofia/internal/
1000 at 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 at 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]

Thanks,

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140329/7f3575ef/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list