关于G729集成PJSIP [英] Regarding G729 integration in pjsip
问题描述
我对这个查询,因为我不是一个C专家。看到如果有一个谁也围绕它的工作可能help.I我在PJSIP LIB整合G729和我从的此处。这里是我的步骤我都遵循:
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 :
首先,我已经注册了G729的'pjmedia / src目录/ pjmedia- codeC / audio_ codecs.c通过把这种
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
现在我有两个文件pj_g729.c'和'pj_g729.h,我在PJSIP LIB复制按我的知识。 所以,我在pjmedia / src目录/ pjmedia- codeC'复制'pj_g729.c &放大器;在pj_g729.h''/根/ PJSIP / trunk_2_allloweversionsuccess_and_widssl_g729 / pjmedia /有/ pjmedia- codeC'。
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'.
在这样做我正在做它给错误:在状态不确定的基准= pjmedia_ codec_g729_init(endpt);
After doing this I am running make it is giving error :' undefined reference at status = pjmedia_codec_g729_init(endpt);'.
另外我有疑问PJMEDIA_HAS_G729_ codeC',因为我还没有找到这个变量library.So宣布我必须声明它?我挣扎过了很长一段time.Any帮助会AP preciable。
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.
推荐答案
您需要包括pj_g729.h到pjmedia- codec.h。
You need to include pj_g729.h into pjmedia-codec.h .
#include <pjmedia-codec/pj_g729.h>
这将包括G729的头文件到pjmedia- codec.h头,并避免在情况不确定的基准= pjmedia_ codec_g729_init(endpt)错误;
This will include g729 header file into pjmedia-codec.h header and will avoid the error of undefined reference at status = pjmedia_codec_g729_init(endpt);'.
这篇关于关于G729集成PJSIP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!