summaryrefslogtreecommitdiffstats
path: root/action_efi.cpp
diff options
context:
space:
mode:
authorSuper User2008-01-12 13:40:51 +0100
committerSuper User2008-01-12 13:40:51 +0100
commitb1e604969443a400168c98c0a032d3df80307326 (patch)
tree7dd3960c808720887bf341a8cfa9c1ec251707e3 /action_efi.cpp
parentmoved timeout settings from extenion to interface.conf (diff)
downloadlcr-b1e604969443a400168c98c0a032d3df80307326.tar.gz
lcr-b1e604969443a400168c98c0a032d3df80307326.tar.xz
lcr-b1e604969443a400168c98c0a032d3df80307326.zip
new sounds for EFI
modified: Makefile modified: README modified: action_efi.cpp modified: main.h new file: tones_efi/benutzerdefinierte.isdn modified: tones_efi/die.isdn new file: tones_efi/hello.isdn new file: tones_efi/ich_wiederhole.isdn new file: tones_efi/rufnummer_lautet.isdn new file: tones_efi/unterdrueckte.isdn
Diffstat (limited to 'action_efi.cpp')
-rw-r--r--action_efi.cpp28
1 files changed, 17 insertions, 11 deletions
diff --git a/action_efi.cpp b/action_efi.cpp
index bd24952..f22cf8a 100644
--- a/action_efi.cpp
+++ b/action_efi.cpp
@@ -19,6 +19,7 @@
#include "main.h"
enum {
+ EFI_STATE_HELLO,
EFI_STATE_DIE,
EFI_STATE_BENUTZERDEFINIERTE,
EFI_STATE_UNTERDRUECKTE,
@@ -55,8 +56,8 @@ void EndpointAppPBX::action_init_efi(void)
/* initialize the vbox */
PDEBUG(DEBUG_EPOINT, "EPOINT(%d) initializing efi\n", ea_endpoint->ep_serial);
- e_efi_state = EFI_STATE_DIE;
- set_tone_efi("die");
+ e_efi_state = EFI_STATE_HELLO;
+ set_tone_efi("hello");
e_efi_digit = 0;
}
@@ -76,6 +77,10 @@ void EndpointAppPBX::efi_message_eof(void)
switch(e_efi_state)
{
+ case EFI_STATE_HELLO:
+ e_efi_state = EFI_STATE_DIE;
+ set_tone_efi("die");
+ break;
case EFI_STATE_DIE:
if (e_callerinfo.screen==INFO_SCREEN_USER)
{
@@ -109,15 +114,16 @@ void EndpointAppPBX::efi_message_eof(void)
e_efi_digit++;
} else
{
- e_efi_state = EFI_STATE_STOP; //EFI_STATE_ICH_WIEDERHOLE;
- message = message_create(ea_endpoint->ep_serial, portlist->port_id, EPOINT_TO_PORT, MESSAGE_DISCONNECT);
- message->param.disconnectinfo.location = LOCATION_PRIVATE_LOCAL;
- message->param.disconnectinfo.cause = CAUSE_NORMAL;
- message_put(message);
- logmessage(message->type, &message->param, portlist->port_id, DIRECTION_OUT);
- new_state(EPOINT_STATE_OUT_DISCONNECT);
- set_tone(portlist,"cause_10");
-// set_tone_efi("ich_wiederhole");
+// e_efi_state = EFI_STATE_STOP;
+ e_efi_state = EFI_STATE_ICH_WIEDERHOLE;
+// message = message_create(ea_endpoint->ep_serial, portlist->port_id, EPOINT_TO_PORT, MESSAGE_DISCONNECT);
+// message->param.disconnectinfo.location = LOCATION_PRIVATE_LOCAL;
+// message->param.disconnectinfo.cause = CAUSE_NORMAL;
+// message_put(message);
+// logmessage(message->type, &message->param, portlist->port_id, DIRECTION_OUT);
+// new_state(EPOINT_STATE_OUT_DISCONNECT);
+// set_tone(portlist,"cause_10");
+ set_tone_efi("ich_wiederhole");
}
break;