Hi Ramzi, Here are some notes from the log file: 1. The log file says the call was using G.722 codec which may not be preferred. To completely disable G.722 please specify "#define PJMEDIA_HAS_G722_CODEC 0" for WINCE build in the config_site.h/config_site_sample.h, or you can always lower the priority of G.722 using pjsua_codec_set_priority() in the pjsua_wince.cpp. 2. There seems to be a bug in g722.c (error PJMEDIA_CODEC_EFAILED), the patch below should fix it (please try it and drop some feedback, since I haven't been able to reproduce the error). Moreover, assumed caller and callee share the same source code: 3. The caller was not offering PCMU/PCMA in the INVITE, it seems to be disabled on purpose since it is enabled by default. 4. GSM seems to be there, it just had a lower priority than G.722, so it was not chosen. ---- begin of patch ---- Index: pjmedia/src/pjmedia-codec/g722.c =================================================================== --- pjmedia/src/pjmedia-codec/g722.c (revision 1964) +++ pjmedia/src/pjmedia-codec/g722.c (working copy) @@ -568,6 +568,7 @@ } /* Encode to temporary buffer */ + output->size = output_buf_len; status = g722_enc_encode(&g722_data->encoder, (pj_int16_t*)input->buf, SAMPLES_PER_FRAME, output->buf, &output->size); if (status != PJ_SUCCESS) { ---- end of patch ---- Thanks for the report. Regards, nanang 2008/5/26 Ramzi Touma <rtt00 at aub.edu.lb>: > Hi, > > I am trying to work with the latest SVN (wince_demos project). I am not > being able to use any of the GSM, PCMU, PCMA codecs (I was able to do so > with no problems using the 0.8.0 package and a couple of later SVN versions > (few weeks ago not sure when exactly)). Anyway, currently I am getting the > following in the pjsua log file: > > > > strm002980A4 Codec encode() error: Codec internal creation error > (PJMEDIA_CODEC_EFAILED) [err:220081] > > > > (I am currently working with SVN of today but the problem was encountered > throughout past week) > > > > Attached is the complete log file of this scenario. > > > > Thanks, > > Ramzi > > > > > > Ramzi T. Touma > > Electrical and Computer Engineering > > American University of Beirut > > P.O. Box 11-0236/ 5555 > > Riad el Solh Square 1107 - 2020 > > Email: rtt00 at aub.edu.lb > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >