mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Version 0.1.11 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -476,8 +476,14 @@ static int oss_hangup(struct ast_channel *c)
|
|||||||
needhangup = 0;
|
needhangup = 0;
|
||||||
needanswer = 0;
|
needanswer = 0;
|
||||||
if (hookstate) {
|
if (hookstate) {
|
||||||
res = 2;
|
if (autoanswer) {
|
||||||
write(sndcmd[1], &res, sizeof(res));
|
/* Assume auto-hangup too */
|
||||||
|
hookstate = 0;
|
||||||
|
} else {
|
||||||
|
/* Make congestion noise */
|
||||||
|
res = 2;
|
||||||
|
write(sndcmd[1], &res, sizeof(res));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -77,7 +77,7 @@
|
|||||||
#define ADSI_SWITCH_TO_DATA2 0x92 /* Switch CPE to data mode */
|
#define ADSI_SWITCH_TO_DATA2 0x92 /* Switch CPE to data mode */
|
||||||
#define ADSI_SWITCH_TO_VOICE2 0x93 /* Switch CPE to voice mode */
|
#define ADSI_SWITCH_TO_VOICE2 0x93 /* Switch CPE to voice mode */
|
||||||
#define ADSI_DISP_CALL_BUF 0x94 /* Display specified call buffer */
|
#define ADSI_DISP_CALL_BUF 0x94 /* Display specified call buffer */
|
||||||
#define ADSI_CLEAR_CALL_BUF 0x95 /* Clear specified call buffer */
|
#define ADSI_CLEAR_CALL_B 0x95 /* Clear specified call buffer */
|
||||||
|
|
||||||
#ifdef __ADSI_CPE
|
#ifdef __ADSI_CPE
|
||||||
/* These messages are reserved for the ADSI CPE only */
|
/* These messages are reserved for the ADSI CPE only */
|
||||||
|
Reference in New Issue
Block a user