For chan_lcr with Asterisk 1.8, set the codec type of a frame into the correct
authorArnold Schulz <arnysch@gmx.net>
Tue, 8 Nov 2011 15:14:57 +0000 (16:14 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Tue, 8 Nov 2011 15:14:57 +0000 (16:14 +0100)
commit77bacac2bd6eaeb33b280458e0839b772f9ad18c
tree59bb8c2f97601d18a8c9b1edb378729e2e5b4645
parent92b9d54385a64aa30400d5ccfe6374565bfe8e04
For chan_lcr with Asterisk 1.8, set the codec type of a frame into the correct
union member ast_frame_subclass::codec (instead of ast_frame_subclass::integer).

The old code caused an error in some environments, eg big endian Arm (armeb):
"__ast_read: Dropping incompatible voice frame on lcr/1 of format alaw ..."

Signed-off-by: Arnold Schulz <arnysch@gmx.net>
Signed-off-by: Andreas Eversberg <andreas@eversberg.eu>
chan_lcr.c