[Freeswitch-users] ZRTP SAS to non ZRTP call leg UA?

Bill Ross rossbcan at gmail.com
Fri Mar 21 01:48:02 MSK 2014


Hi Brian;

So, I have remedied my ignorance displayed by my last question.

Here's a working script, attached, for your edification.

If you consider this of use, the following must be done to be ready for
prime time:

Rename to something else
Create a *.wav file that says "Security Code" for use prior to the say
module stating the SAS
Perhaps a better voice for "say" Recommendation?

Note that both legs hear the security code, even though one is insecure
(assumed to be on physically secured lan). I believe this is "of use"

Note also that the uuid_broadcast documentation on the wiki is totally
misleading. The parameters for say are:

https://wiki.freeswitch.org/wiki/Mod_commands#uuid_broadcast

uuid_broadcast 336889f2-1868-11de-81a9-3f4acc8e505e say::'en number
pronounced 12345' aleg

note the say parameters are quoted.

...not:

uuid_broadcast 336889f2-1868-11de-81a9-3f4acc8e505e
say::en\snumber\spronounced\s12345 aleg

Enjoy...
Bill Ross

-----Original Message-----
From: Bill Ross [mailto:rossbcan at gmail.com] 
Sent: March-19-14 2:44 PM
To: 'FreeSWITCH Users Help'
Subject: RE: [Freeswitch-users] ZRTP SAS to non ZRTP call leg UA?

Hi Brian;

So, I am detecting variables correctly. Now having issues with "say" not
working (modified zrtp_sas_proxy.lua) :

    if retries == 20 then
      log("debug","sending sas...")
      api:execute("say","en NAME_SPELLED iterated"..get_sas(aleg))
    end

I have verified the say function works (enabled talking clock UA)

Suspect, when in the luarun context that say requires another variable (call
leg?) or some other syntax problem. No errors logged and "sending sas"
happens.

 Help?

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian
West
Sent: March-18-14 3:35 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] ZRTP SAS to non ZRTP call leg UA?

Seems all the variables are being set properly.

variable_zrtp_passthru_active: false
variable_zrtp_secure_media: true
variable_zrtp_secure_media_confirmed_audio: true
variable_zrtp_sas1_string_audio: orca
variable_zrtp_sas2_string: belowground

I did the reverse of this with Polycom, 

See: freeswitch_public_conf_via_sip in default dialplan.  

Basically sends a display update to the polycom with the SAS so it displays
on the polycom leg, so you can do SRTP to FS then talk to a ZRTP endpoint
and see the SAS.
--
Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)













On Mar 18, 2014, at 2:16 PM, Bill Ross <rossbcan at gmail.com> wrote:

> Assuming you mean I am using the correct variables (the script is not 
> obsolete), for now, no bug report until I prove it.
> 
> ..B
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of 
> Brian West
> Sent: March-18-14 3:11 PM
> To: FreeSWITCH Users Help
> Cc: Travis Cross
> Subject: Re: [Freeswitch-users] ZRTP SAS to non ZRTP call leg UA?
> 
> You shouldn't need this, if thats not working a bug must be logged on 
> JIRA for us to fix it.
> --
> Brian West
> brian at freeswitch.org
> FreeSWITCH Solutions, LLC
> PO BOX 2531
> Brookfield, WI 53008-2531
> Twitter: @FreeSWITCH , @briankwest
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
> 
> T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
> iNUM: +883 5100 1420 9001
> ISN: 410*543
> Skype:briankwest
> PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Mar 18, 2014, at 2:02 PM, Bill Ross <rossbcan at gmail.com> wrote:
> 
>> I am aware that I must modify zrtp_sas_proxy.lua to send the SAS to 
>> the unencrypted leg.
>> 
>> Right now, stuck at lack of trigger condition above.
>> 
>> Regards;
>> Bill
> 
> 
> 
> ______________________________________________________________________
> ___ Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
>  
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use
> rs
> http://www.freeswitch.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zrtp_sas_proxy.lua
Type: application/octet-stream
Size: 4542 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140320/01a37b09/attachment.obj 


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