I am querying on this because I am not a C expert .See if any one who has worked around it could help.I am integrating g729 in pjsip lib and I got g729 codec files from here.Here are I steps I have followed :
First I have registered g729 in 'pjmedia/src/pjmedia-codec/audio_codecs.c' by putting this
#if PJMEDIA_HAS_G729_CODEC
/* Register G729 */
status = pjmedia_codec_g729_init(endpt);
if (status != PJ_SUCCESS){
return status;
}
#endif
Now I have two files 'pj_g729.c' and 'pj_g729.h' that I have to copy in pjsip lib as per my knowledge. So I have copied 'pj_g729.c' in 'pjmedia/src/pjmedia-codec' & 'pj_g729.h' in '/root/pjsip/trunk_2_allloweversionsuccess_and_widssl_g729/pjmedia/include/pjmedia-codec'.
After doing this I am running make it is giving error :' undefined reference at status = pjmedia_codec_g729_init(endpt);'.
Also I have doubt about 'PJMEDIA_HAS_G729_CODEC' as I haven't find this variable declared in library.So do I have to declare it ??I am struggling over it for a long time.Any help will be appreciable.