Using wideband speex in asterisk

Hi,

I’m trying to use speex codec in iax client to connect to asterisk (all last version)
It seems that when I use speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB))
Instead of speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB))
Asterisk is failing in speex_samples and issue the warning “Not enough bits remaining after wide band for speex samples.”

Please advice,
ofer