Loading module from different version of asterisk

A friend sent me a channel/driver module compiled for asterisk- When I tried to load it to an asterisk-, I got the following error messages:

OpenWrt*CLI> module load chan_xxx.so Unable to load module chan_xxx.so Command 'module load chan_xxx.so' failed.Is there a way to load a channel/driver module compiled for other version asterisk?

You were lucky. Normally the module loads and then you get a segmentation violation.

It is unsafe to do this and is one of the main causes of crashes on startup.