summaryrefslogtreecommitdiff
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2002-03-11 02:00:09 +0000
committerMark Spencer <markster@digium.com>2002-03-11 02:00:09 +0000
commitf62f33ce935e9566769107b908a4682cde78057d (patch)
tree78d528bcaca113ed0535d8fce47c1ae11b4641a0 /channels/chan_phone.c
parent4b75f411fcf87e84ba81f8ca026b8a2223dcdb5c (diff)
Version 0.1.11 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rwxr-xr-xchannels/chan_phone.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index c481abb99..7300646b6 100755
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -588,6 +588,8 @@ static struct ast_channel *phone_new(struct phone_pvt *i, int state, char *conte
tmp->fds[0] = i->fd;
/* XXX Switching formats silently causes kernel panics XXX */
tmp->nativeformats = prefformat;
+ tmp->pvt->rawreadformat = prefformat;
+ tmp->pvt->rawwriteformat = prefformat;
tmp->state = state;
if (state == AST_STATE_RING)
tmp->rings = 1;
@@ -911,7 +913,7 @@ static struct phone_pvt *mkif(char *iface, int mode, int txgain, int rxgain)
ast_log(LOG_DEBUG, "Unable to set port to PSTN\n");
} else {
if (ioctl(tmp->fd, IXJCTL_PORT, PORT_POTS))
- ast_log(LOG_DEBUG, "Unable to set port to PSTN\n");
+ ast_log(LOG_DEBUG, "Unable to set port to POTS\n");
}
ioctl(tmp->fd, PHONE_PLAY_STOP);
ioctl(tmp->fd, PHONE_REC_STOP);
@@ -1088,7 +1090,7 @@ int load_module()
ast_pthread_mutex_unlock(&iflock);
/* Make sure we can register our Adtranphone channel type */
if (ast_channel_register(type, tdesc,
- AST_FORMAT_G723_1 | AST_FORMAT_SLINEAR | AST_FORMAT_ULAW, phone_request)) {
+ AST_FORMAT_G723_1 | AST_FORMAT_SLINEAR | AST_FORMAT_ULAW, phone_request)) {
ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
ast_destroy(cfg);
unload_module();