asterisk-chan-dongle: sync up with master, fix endian issue