[pjsip] Adding codecs & conference

Benny Prijono bennylp at pjsip.org
Tue May 13 05:50:05 EDT 2008


On Mon, May 12, 2008 at 4:05 PM, Thanh Nghiem Le <nimkgb at gmail.com> wrote:
> Hi Benny,
> Thank you so much for your quick reply!
> Actually, I have not think that the problem is because of PJSIP, also my CPU
> run around 20% (16 - 27).
>
> About the codec, I am using the one from VoiceAge, you can also have a look
> at this link http://www.voiceage.com/prodg729.php
> I am not sure that it supports multi calls or not. It is the only one that I
> can get from the internet for testing. Anyone have experiences about this
> library , please tell me!
> As I mention from the first email, I may miss something in my g729.c file, I
> build it base on gsm.c and g711.c
> Here is some main points that I concentrate on:
>
>
>
> attr->info.clock_rate = 8000;
>
> attr->info.channel_cnt = 1;
>
> attr->info.avg_bps = 31200;

Is this not supposed to be 8000?


>
> attr->info.pcm_bits_per_sample = 16;
>
> attr->info.frm_ptime = 10;
>
> attr->info.pt = PJMEDIA_RTP_PT_G729;
>
> attr->setting.frm_per_pkt = 1;
>
> attr->setting.vad = 0;
>
> Please give me some important points on this file that could lead to the
> problem.
>
> If you know any good G729 library, please also point me there, I would buy
> it if I success implement it
>

Have you looked at Intel IPP? I think it also has g729 implementation.

Cheers
 Benny


> finally, I am using 0.8 version.
>
> Thanks for your time!!!
>
> Best regards
>
>
>
> On Mon, May 12, 2008 at 6:51 PM, Benny Prijono <bennylp at pjsip.org> wrote:
>
> >
> >
> >
> >
> > On Mon, May 12, 2008 at 3:52 AM, Thanh Nghiem Le <nimkgb at gmail.com> wrote:
> > > Hi Benny,
> > >
> > > > What ports are you connecting in the bridge?
> > > Say I have 2 calls
> > > port 0 is transmiting to port 1 , 2
> > > so I do cc 1 2 and cc 2 1
> > >
> > > I try in Vista Home Premium, Ubuntu 8.04, MAC leopard 10.5 and got the
> same
> > > result
> > > I did more on reserching and found that the problem I have is exactly
> the
> > > same with the one below, I also tried the solutions that you suggest but
> non
> > > of them work.
> > >
> >
> > For now, I tend to think that the problem is with the G729 codec that
> > you're using or perhaps your wrapper implementation. Which library is
> > that? What's the CPU utilization when you have two calls? Does the
> > library support multiple calls? As Nanang said, if the implementation
> > doesn't support multiple calls (e.g. non-const global variables) then
> > something will break when more than one calls are created.
> >
> > And like you said, the audio is fine with other codecs, so I don't
> > suppose this is PJSIP problem. We also tried with Speex and iLBC (on
> > Windows), which both should be heavier than g729 in terms of
> > processing, and the audio is fine. We use the latest SVN version.
> >
> >
> >
> >
> > Cheers
> >  Benny
> >
> >
> > _______________________________________________
> > 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
> >
>
>
>
> --
> Jackal
> _______________________________________________
>  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
>
>




More information about the pjsip mailing list