dect
/
asterisk
Archived
13
0
Fork 0

Fix build on chan_zap

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@894 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-04-23 21:46:29 +00:00
parent 0e923b2a74
commit b4c69d1f75
1 changed files with 2 additions and 1 deletions

View File

@ -5532,7 +5532,8 @@ static void *pri_dchannel(void *vpri)
int law;
/* Set to audio mode at this poitn mode */
law = 1;
ast_channel_setoption(tmp,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
if (ioctl(pri->pvt[chan]->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &law) == -1)
ast_log(LOG_WARNING, "Unable to set audio mode on channel %d to %d\n", pri->pvt[chan]->channel, law);
if (e->ring.layer1 == PRI_LAYER_1_ALAW)
law = ZT_LAW_ALAW;
else