mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	More 32->64 bit codec conversions.
In the process of swapping ULAW to a place in the extended codec space, we found several unhandled cases, where a 32-bit integer was still being used to handle a codec field. Most of these have been fixed with this commit, although there is at least one case (codec_dahdi) which depends upon outside headers to be altered before a conversion can be made. (Fixes AST-278, SWP-459) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@231850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -594,7 +594,7 @@ int ooh323c_set_aliases(ooAliases * aliases) | ||||
|     | ||||
| int ooh323c_start_receive_channel(ooCallData *call, ooLogicalChannel *pChannel) | ||||
| { | ||||
|    int fmt=-1; | ||||
|    format_t fmt=-1; | ||||
|    fmt = convertH323CapToAsteriskCap(pChannel->chanCap->cap); | ||||
|    if(fmt>0) { | ||||
|       /* ooh323_set_read_format(call, fmt); */ | ||||
| @@ -608,7 +608,7 @@ int ooh323c_start_receive_channel(ooCallData *call, ooLogicalChannel *pChannel) | ||||
|  | ||||
| int ooh323c_start_transmit_channel(ooCallData *call, ooLogicalChannel *pChannel) | ||||
| { | ||||
|    int fmt=-1; | ||||
|    format_t fmt; | ||||
|    fmt = convertH323CapToAsteriskCap(pChannel->chanCap->cap); | ||||
|    if(fmt>0) { | ||||
|       switch (fmt) { | ||||
| @@ -665,7 +665,7 @@ int ooh323c_stop_transmit_datachannel(ooCallData *call, ooLogicalChannel *pChann | ||||
|    return 1; | ||||
| } | ||||
|  | ||||
| int convertH323CapToAsteriskCap(int cap) | ||||
| format_t convertH323CapToAsteriskCap(int cap) | ||||
| { | ||||
|  | ||||
|    switch(cap) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user