mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Repair // comments to /* */ comments (bug #3347)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#define INT2ALAW(x) int2alaw[(x>>4)+4096]
|
||||
|
||||
|
||||
// table to convert unsigned a-law bytes to signed linear integers
|
||||
/* table to convert unsigned a-law bytes to signed linear integers */
|
||||
|
||||
static const int alaw2int[256] = {
|
||||
-5504,5504,-344,344,-22016,22016,-1376,1376,-2752,2752,-88,88,-11008,11008,
|
||||
@@ -46,9 +46,9 @@ static const int alaw2int[256] = {
|
||||
};
|
||||
|
||||
|
||||
// table to convert linear shorts to a-law bytes
|
||||
// shift the integer to be 12+1 bit first, then add 4096 to get
|
||||
// the right index
|
||||
/* table to convert linear shorts to a-law bytes */
|
||||
/* shift the integer to be 12+1 bit first, then add 4096 to get */
|
||||
/* the right index */
|
||||
|
||||
static const unsigned char int2alaw[8192] = {
|
||||
84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,
|
||||
|
@@ -157,7 +157,7 @@ static int phone_digit(struct ast_channel *ast, char digit)
|
||||
case '#':
|
||||
outdigit = 12;
|
||||
break;
|
||||
case 'f': //flash
|
||||
case 'f': /*flash*/
|
||||
case 'F':
|
||||
ioctl(p->fd, IXJCTL_PSTN_SET_STATE, PSTN_ON_HOOK);
|
||||
usleep(320000);
|
||||
@@ -337,7 +337,7 @@ static int phone_setup(struct ast_channel *ast)
|
||||
ast_log(LOG_WARNING, "Failed to start recording\n");
|
||||
return -1;
|
||||
}
|
||||
//set the DTMF times (the default is too short)
|
||||
/* set the DTMF times (the default is too short) */
|
||||
ioctl(p->fd, PHONE_SET_TONE_ON_TIME, 300);
|
||||
ioctl(p->fd, PHONE_SET_TONE_OFF_TIME, 200);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user