summaryrefslogtreecommitdiff
path: root/src/tapi.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/tapi.erl')
-rw-r--r--src/tapi.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tapi.erl b/src/tapi.erl
index 1d5cc4f..570368f 100644
--- a/src/tapi.erl
+++ b/src/tapi.erl
@@ -6,7 +6,8 @@
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
--export([send/1, ext/0, co/0, snapshot/1, monitor/1, button/1, dial/2]).
+-export([send/1, ext/0, co/0, snapshot/1, monitor/1, button/1,
+ dial/2, fco/1]).
-include("config.hrl").
-include("opcodes.hrl").
@@ -74,3 +75,7 @@ monitor(Device) ->
dial(From, To) ->
gen_server:cast(?SERVER, rose:invoke(?MAKECALL,
dial:encode({dialingNumber, From}, {dialingNumber, To}))).
+
+fco(Device) ->
+ gen_server:cast(?SERVER, rose:invoke(?ESCAPE,
+ escape:deviceData({dialingNumber, Device}))).