summaryrefslogtreecommitdiffstats
path: root/action_vbox.cpp
diff options
context:
space:
mode:
authorSuper User2008-01-06 12:30:37 +0100
committerSuper User2008-01-06 12:30:37 +0100
commita0beafd25e37f01f404ee0020d076d0ecc01ada8 (patch)
tree4438ee6eff55da2ed0d2cc1f071a93136f750a48 /action_vbox.cpp
parentfixes, screen in and out works, fixed release problem in mISDNuser (diff)
downloadlcr-a0beafd25e37f01f404ee0020d076d0ecc01ada8.tar.gz
lcr-a0beafd25e37f01f404ee0020d076d0ecc01ada8.tar.xz
lcr-a0beafd25e37f01f404ee0020d076d0ecc01ada8.zip
fixes
trace of vbox better beep after announcement announcements without beep recording of answering machine (vbox) works, as well as call recording. modified: README modified: action_vbox.cpp modified: port.cpp modified: port.h modified: todo.txt modified: vbox.cpp
Diffstat (limited to 'action_vbox.cpp')
-rw-r--r--action_vbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/action_vbox.cpp b/action_vbox.cpp
index d9f805a..49a91b5 100644
--- a/action_vbox.cpp
+++ b/action_vbox.cpp
@@ -267,13 +267,13 @@ void EndpointAppPBX::action_dialing_vbox_play(void)
if (e_vbox_state == VBOX_STATE_RECORD_RECORD)
{
- if (e_extdialing[0] == '1')
+ if (e_extdialing[0] == '1' || e_extdialing[0] == '0')
{
PDEBUG(DEBUG_EPOINT, "EPOINT(%d) stopping recording of announcement.\n", ea_endpoint->ep_serial);
port = find_port_id(portlist->port_id);
if (port)
- port->close_record(6000); /* append beep */
+ port->close_record((e_extdialing[0]=='1')?6000:0, 2000); /* append beep */
goto record_ask;
}
goto done;
@@ -326,8 +326,8 @@ void EndpointAppPBX::action_dialing_vbox_play(void)
port = find_port_id(portlist->port_id);
if (port)
{
- port->close_record(0);
- port->open_record(CODEC_MONO, 1, 5000, e_ext.number, 0, "", 0); /* record announcement, skip the first 5000 samples */
+ port->close_record(0,0);
+ port->open_record(CODEC_MONO, 1, 4000, e_ext.number, 0, "", 0); /* record announcement, skip the first 4000 samples */
}
e_vbox_state = VBOX_STATE_RECORD_RECORD;
if (e_ext.vbox_language)