X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=remote.cpp;h=cb6e528da1b6891470465a18937baf60759077de;hp=273779c71bf69b2026c62b565e7b57d1b10abcd5;hb=034d3a91404addedc1c7a3494862c79532b0b878;hpb=e233557e40043050c72b46d4b32b3a04cfd3d947 diff --git a/remote.cpp b/remote.cpp index 273779c..cb6e528 100644 --- a/remote.cpp +++ b/remote.cpp @@ -140,6 +140,8 @@ void Premote::message_remote(int message_type, union parameter *param) switch (message_type) { case MESSAGE_TRAFFIC: + if (p_dov_rx) + dov_rx(param->traffic.data, param->traffic.len); /* record audio */ if (p_record) record(param->traffic.data, param->traffic.len, 0); // from down @@ -154,6 +156,10 @@ void Premote::message_remote(int message_type, union parameter *param) if (p_tap) tap(param->traffic.data, param->traffic.len, 1); // from up admin_message_from_lcr(p_r_remote_id, p_r_ref, MESSAGE_TRAFFIC, param); + } else if (p_dov_tx) { + /* use receeived traffic to trigger sending DOV */ + dov_tx(param->traffic.data, param->traffic.len); + admin_message_from_lcr(p_r_remote_id, p_r_ref, MESSAGE_TRAFFIC, param); } return;