mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix build on chan_zap
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user