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
This commit is contained in:
parent
31aff20175
commit
b1e6049694
4
Makefile
4
Makefile
|
@ -295,12 +295,12 @@ clean:
|
|||
rm -f $(LCR) $(LCRADMIN) $(CHAN_LCR) $(LCRWATCH) $(GEN) $(GENW) $(GENRC) $(GENEXT)
|
||||
rm -f *.o
|
||||
rm -f .*.c.sw* .*.cpp.sw* .*.h.sw*
|
||||
rm -f bla nohup.out
|
||||
rm -f bla nohup.out a.out
|
||||
rm -f debug*.log
|
||||
|
||||
tar:
|
||||
make clean
|
||||
cd .. && tar -cvzf lcr_`date +%Y%m%d`.tar.gz lcr
|
||||
cd .. && tar --exclude=.git -cvzf lcr_`date +%Y%m%d`.tar.gz lcr
|
||||
|
||||
start: $(LCR)
|
||||
sync
|
||||
|
|
4
README
4
README
|
@ -413,3 +413,7 @@ Changes in Version 0.3
|
|||
- Fixed minor audio gain bug.
|
||||
- Moved timeout setting from extension to interface.conf.
|
||||
|
||||
Changes in Version 0.3
|
||||
- Complete set of EFI samples
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
2
main.h
2
main.h
|
@ -13,7 +13,7 @@
|
|||
|
||||
#define DEFAULT_ENDPOINT_APP EndpointAppPBX
|
||||
|
||||
#define VERSION_STRING "0.3 (December 2007)"
|
||||
#define VERSION_STRING "0.4 (Spring 2007)"
|
||||
|
||||
extern int memuse;
|
||||
extern int mmemuse;
|
||||
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue