You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/doc/dsm/mods
Victor Seva 2bf464e5cb
Imported Upstream version 1.6.0~20150612~a2d214df36
11 years ago
..
Readme.mod_aws.txt moved DSM module docs to doc directory 16 years ago
Readme.mod_conference.txt Imported Upstream version 1.6.0~20150612~a2d214df36 11 years ago
Readme.mod_curl.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_dlg.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_groups.txt Imported Upstream version 1.6.0~20150612~a2d214df36 11 years ago
Readme.mod_monitoring.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_mysql.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_py.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_regex.txt Imported Upstream version 1.6.0~20140819~0b6d12 12 years ago
Readme.mod_subscription.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_sys.txt DSM: sys.getTimestamp() and sys.subTimestamp() 16 years ago
Readme.mod_uri.txt Imported Upstream version 1.6.0~20140516~eaa616 12 years ago
Readme.mod_utils.txt Imported Upstream version 1.6.0~20150612~a2d214df36 11 years ago
Readme.mod_xml.txt Imported Upstream version 1.6.0~20150612~a2d214df36 11 years ago
Readme.mod_zrtp.txt Imported Upstream version 1.6.0~20150519~ae8a42 11 years ago

Readme.mod_zrtp.txt

ZRTP support module

(C) 2014 Stefan Sayer.  Parts of the development of this module was kindly sponsored by AMTEL Inc.

If SEMS is built with ZRTP support, a module mod_zrtp is created.

ZRTP may be individually enabled or disabled and configured in the DSM script by using
zrtp.setEnabled in the start event, for example
   import(mod_zrtp);
   initial state START;
   transition "start" START - start / {
    zrtp.setEnabled(false);
-- or, e.g.: zrtp.setAllowclear(false);
   } -> sess_started;
   state sess_started;

This overrides the sems.conf enable_zrtp setting. 

NOTE: The setEnabled/setAllowclear/... actions have only effect in the start event!

ZRTP specific events can be used in DSM if $enable_zrtp_events is set to true:
  set($enable_zrtp_events=true); 
Then the zrtp.protocolEvent and zrtp.securityEvent can be handled specifically.

Actions
-------
zrtp.setEnabled(bool enabled)
  e.g. zrtp.setEnabled(true) or zrtp.setEnabled(false)

zrtp.setAllowclear(bool enabled)  - set ZRTP allowclear option, see ZRTP documentation
zrtp.setAutosecure(bool enabled)  - set ZRTP autosecure option, see ZRTP documentation
zrtp.setDisclosebit(bool enabled) - set ZRTP disclose_bit option, see ZRTP documentation

zrtp.getSAS(sas1_var,sas2_var) - get SAS strings
 to be used after the stream has gone secure, e.g. 
  transition "ZRTP event IS_SECURE" sess_started - zrtp.protocolEvent(#event==ZRTP_EVENT_IS_SECURE) / {
     zrtp.getSAS($sas1,$sas2);
     log(3, $sas1);
     log(3, $sas2);
   } -> sess_started;

zrtp.getSessionInfo(varname) - get info about the session
  varname.sas_is_ready, varname.sas1, varname.sas2, varname.zid, varname.peer_zid, ...


zrtp.setVerified(string zid1, string zid2)   - set as verified
zrtp.setUnverified(string zid1, string zid2) - set as unverified

 e.g.  zrtp.getSessionInfo(zrtp);
       zrtp.setVerified($zrtp.zid,$zrtp.peer_zid);

Events
------

zrtp.protocolEvent - protocol event happened, only if enable_zrtp_events==true
 e.g. 
  zrtp.protocolEvent(#event==ZRTP_EVENT_IS_SECURE)

  #event    - event type
  #event_id - numeric event type (should not be used)
 
 see the libzrtp documentation, or /usr/include/libzrtp/zrtp_iface.h for
 event types. Important ones are
   ZRTP_EVENT_IS_SECURE, ZRTP_EVENT_NO_ZRTP, ZRTP_EVENT_IS_SECURE_DONE,
   ZRTP_EVENT_IS_CLEAR, ZRTP_EVENT_IS_PENDINGSECURE, 

  e.g. 
    transition "ZRTP event" sess_started - zrtp.protocolEvent / {
      logParams(3);
    } -> sess_started;

zrtp.securityEvent - security event happened, only if enable_zrtp_events==true
 e.g. 
  zrtp.securityEvent(#event==ZRTP_EVENT_PROTOCOL_ERROR)

  #event    - event type
  #event_id - numeric event type (should not be used)

  ZRTP_EVENT_PROTOCOL_ERROR, ZRTP_EVENT_WRONG_SIGNALING_HASH, ZRTP_EVENT_WRONG_MESSAGE_HMAC,
  ZRTP_EVENT_MITM_WARNING