%
% anyremote configuration file
% Version for Siemens S55/S65 and BenqSiemens EL71
% thanks to Artem Zolochevskiy
%

% STATUS stable
% XTEST no
% SOUND no
% ENV no

GuiAppName=Siemens test
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=AT
GuiAppDesc=Simple example of configuration file. Tuned for Siemens phones.

[Protocol]=AT

% Green button
S=Make(disconnect);

% Red button
E=Make(exit);


(Init)=\
	Include($(CfgDir)/Utils/aliases-at.cfg);\
	Make(var,TwoWayComm,by_value,true);\
	Macro(CHECK_RFCOMM_DEVICE);\
	Make(var,ToMainMenu,by_value,E);
        
(Connect)=\
	Exec($(CfgDir)/Utils/message.sh Connected)

(Disconnect)=\
	Exec($(CfgDir)/Utils/message.sh Disconnected)

InCall($$)=\
	Exec($(CfgDir)/Utils/message.sh "A call from $(Param)");\
	Make(remote,off)

EndCall($$)=\
	Make(remote,on);\
	Exec($(CfgDir)/Utils/message.sh "Call finished");

*  * =Exec(F="$(TmpDir)/anyrem.hlp";echo "Just press buttons and inspect results" > $F);\
	Macro(SHOW_HELP);
42 42=Exec(F="$(TmpDir)/anyrem.hlp";echo "Use example-sagem.cfg instead !" > $F);\
	Macro(SHOW_HELP);

1=Exec($(CfgDir)/Utils/message.sh 1);
2=Exec($(CfgDir)/Utils/message.sh 2);
3=Exec($(CfgDir)/Utils/message.sh 3);
4=Exec($(CfgDir)/Utils/message.sh 4);
5=Exec($(CfgDir)/Utils/message.sh 5);
6=Exec($(CfgDir)/Utils/message.sh 6);
7=Exec($(CfgDir)/Utils/message.sh 7);
8=Exec($(CfgDir)/Utils/message.sh 8);
9=Exec($(CfgDir)/Utils/message.sh 9);
0=Exec($(CfgDir)/Utils/message.sh 0);
*=Exec($(CfgDir)/Utils/message.sh Star);
#=Exec($(CfgDir)/Utils/message.sh Hash);

[=Exec($(CfgDir)/Utils/message.sh SoftLeft);
]=Exec($(CfgDir)/Utils/message.sh SoftRight);

M=Exec($(CfgDir)/Utils/message.sh Record);
:O=Exec($(CfgDir)/Utils/message.sh "MyMenu/Music");

+=Exec($(CfgDir)/Utils/message.sh VolUp);
-=Exec($(CfgDir)/Utils/message.sh VolDown );
:+=Exec($(CfgDir)/Utils/message.sh VolUp);
:-=Exec($(CfgDir)/Utils/message.sh VolDown );

F=Exec($(CfgDir)/Utils/message.sh JoystickPush);
^=Exec($(CfgDir)/Utils/message.sh JoystickUp);
V=Exec($(CfgDir)/Utils/message.sh JoystickDown);
<=Exec($(CfgDir)/Utils/message.sh JoystickLeft);
>=Exec($(CfgDir)/Utils/message.sh JoystickRight);

%BenqSiemens specific
:X15=Exec($(CfgDir)/Utils/message.sh "Fast dialing key");
:P=Exec($(CfgDir)/Utils/message.sh "Camera key");
:X17=Exec($(CfgDir)/Utils/message.sh "Slider opened");
:X19=Exec($(CfgDir)/Utils/message.sh "Slider closed");
:X1D=Exec($(CfgDir)/Utils/message.sh "Play button");



[End]
