g729 codec

SM
S. M. Nazmul Hasan (Opu)
Wed, Oct 29, 2008 12:11 PM

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

      Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

Hi Benny, I am trying to add voice-age g729 codec with PJSIP for symbian. but i am getting some difficulties while following the gsm.c file. 1. while creating g729 codec private data what should i declare in replace of // struct gsm_state *encoder; // struct gsm_state *decoder; in "l16.c" its only use the frame size .. 2. in Generate default attribute. i have changed the value to this. is it ok? attr->info.clock_rate = 8000; attr->info.channel_cnt = 1; attr->info.avg_bps = 8000; attr->info.max_bps = 8000; attr->info.pcm_bits_per_sample = 16; attr->info.frm_ptime = 10; 3. In gsm.c there is some hard coding in *gsm_codec_parse(* -- what will be the value in replace of "33" here 4. frame_size and sample_per_frame are also not clear to me.. Sorry for lot of questions and may be those are lot easier to ask.. but really i am not good in codec.. waiting for reply. Thanks S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
RI
Rawshan Iajdani
Wed, Oct 29, 2008 9:43 PM

Well.. your attribute settings seems fine. For the 33 it will be 20. And in
place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

      Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

Well.. your attribute settings seems fine. For the 33 it will be 20. And in place of 320, it will be 160.. hope this will give u a jump start.. Rawshan Iajdani From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of S. M. Nazmul Hasan (Opu) Sent: Wednesday, October 29, 2008 6:12 PM To: pjsip list Subject: [pjsip] g729 codec Hi Benny, I am trying to add voice-age g729 codec with PJSIP for symbian. but i am getting some difficulties while following the gsm.c file. 1. while creating g729 codec private data what should i declare in replace of // struct gsm_state *encoder; // struct gsm_state *decoder; in "l16.c" its only use the frame size .. 2. in Generate default attribute. i have changed the value to this. is it ok? attr->info.clock_rate = 8000; attr->info.channel_cnt = 1; attr->info.avg_bps = 8000; attr->info.max_bps = 8000; attr->info.pcm_bits_per_sample = 16; attr->info.frm_ptime = 10; 3. In gsm.c there is some hard coding in gsm_codec_parse( -- what will be the value in replace of "33" here 4. frame_size and sample_per_frame are also not clear to me.. Sorry for lot of questions and may be those are lot easier to ask.. but really i am not good in codec.. waiting for reply. Thanks S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
SM
S. M. Nazmul Hasan (Opu)
Sat, Nov 1, 2008 12:01 PM

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am getting
the using codec (payload) is always PCMU/8000. even after changing the
g729 for highest priority.

        pj_str_t codec_id = pj_str("g729");
        pjmedia_codec_mgr_set_codec_priority(
            pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
            &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to *PJMEDIA_CODEC_PRIO_LOWEST  *the result was same. even
after disabling all the codecs and after deleting all g711 files and related
fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.comwrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And
in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:
pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

Thanks Lajdani. My jumped start is running well. I am using Brekeke sip server to check the active session. and i am getting the using codec (payload) is always *PCMU/8000*. even after changing the g729 for highest priority. pj_str_t codec_id = pj_str("g729"); pjmedia_codec_mgr_set_codec_priority( pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); when i changed it to *PJMEDIA_CODEC_PRIO_LOWEST *the result was same. even after disabling all the codecs and after deleting all g711 files and related fields it showed the payload is *PCMU/8000*. How can i easily disable all the codecs except g729. Thanks On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com>wrote: > Well.. your attribute settings seems fine. For the 33 it will be 20. And > in place of 320, it will be 160.. hope this will give u a jump start.. > > > > > > > > Rawshan Iajdani > > > > > > *From:* pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu) > *Sent:* Wednesday, October 29, 2008 6:12 PM > *To:* pjsip list > *Subject:* [pjsip] g729 codec > > > > > Hi Benny, > > I am trying to add voice-age g729 codec with PJSIP for symbian. but i am > getting some difficulties while following the gsm.c file. > > 1. while creating g729 codec private data > what should i declare in replace of > // struct gsm_state *encoder; > // struct gsm_state *decoder; > > in "l16.c" its only use the frame size .. > > 2. in Generate default attribute. > > i have changed the value to this. is it ok? > attr->info.clock_rate = 8000; > attr->info.channel_cnt = 1; > attr->info.avg_bps = 8000; > attr->info.max_bps = 8000; > attr->info.pcm_bits_per_sample = 16; > attr->info.frm_ptime = 10; > > 3. In gsm.c there is some hard coding in *gsm_codec_parse(* > -- what will be the value in replace of "33" here > > 4. frame_size and sample_per_frame are also not clear to me.. > > Sorry for lot of questions and may be those are lot easier to ask.. but > really i am not good in codec.. > > waiting for reply. > > Thanks > > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
RI
Rawshan Iajdani
Mon, Nov 3, 2008 9:17 AM

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h file.
Good luck.

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am getting
the using codec (payload) is always PCMU/8000. even after changing the g729
for highest priority.

        pj_str_t codec_id = pj_str("g729");
        pjmedia_codec_mgr_set_codec_priority( 
            pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
            &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same. even
after disabling all the codecs and after deleting all g711 files and related
fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And in
place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

      Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

You should be able to do that in pjlib/include/pj/config_site.h and pjmedia/include/pjmedia-codec/config.h file. But always remember config_site.h settings will overwrite any settings done in config.h file. Good luck. From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of S. M. Nazmul Hasan (Opu) Sent: Saturday, November 01, 2008 6:01 PM To: pjsip list Subject: Re: [pjsip] g729 codec Thanks Lajdani. My jumped start is running well. I am using Brekeke sip server to check the active session. and i am getting the using codec (payload) is always PCMU/8000. even after changing the g729 for highest priority. pj_str_t codec_id = pj_str("g729"); pjmedia_codec_mgr_set_codec_priority( pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. even after disabling all the codecs and after deleting all g711 files and related fields it showed the payload is PCMU/8000. How can i easily disable all the codecs except g729. Thanks On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> wrote: Well.. your attribute settings seems fine. For the 33 it will be 20. And in place of 320, it will be 160.. hope this will give u a jump start.. Rawshan Iajdani From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of S. M. Nazmul Hasan (Opu) Sent: Wednesday, October 29, 2008 6:12 PM To: pjsip list Subject: [pjsip] g729 codec Hi Benny, I am trying to add voice-age g729 codec with PJSIP for symbian. but i am getting some difficulties while following the gsm.c file. 1. while creating g729 codec private data what should i declare in replace of // struct gsm_state *encoder; // struct gsm_state *decoder; in "l16.c" its only use the frame size .. 2. in Generate default attribute. i have changed the value to this. is it ok? attr->info.clock_rate = 8000; attr->info.channel_cnt = 1; attr->info.avg_bps = 8000; attr->info.max_bps = 8000; attr->info.pcm_bits_per_sample = 16; attr->info.frm_ptime = 10; 3. In gsm.c there is some hard coding in gsm_codec_parse( -- what will be the value in replace of "33" here 4. frame_size and sample_per_frame are also not clear to me.. Sorry for lot of questions and may be those are lot easier to ask.. but really i am not good in codec.. waiting for reply. Thanks S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764 _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
SM
S. M. Nazmul Hasan (Opu)
Tue, Nov 4, 2008 1:42 PM

Dear Rawshan,

Can you please check the file if it is ok to add voiceage g729 in pjsip for
symbian. i am trying this for several days but i can get it working for me.

Help from anyone would be great appretiable.

Thanks

On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani iajdani@provati.com wrote:

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h file.
Good luck…

From: pjsip-bounces@lists.pjsip.org [mailto:
pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am
getting  the using codec (payload) is always PCMU/8000. even after
changing the g729 for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to *PJMEDIA_CODEC_PRIO_LOWEST  *the result was same.
even after disabling all the codecs and after deleting all g711 files and
related fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And in
place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:
pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

Dear Rawshan, Can you please check the file if it is ok to add voiceage g729 in pjsip for symbian. i am trying this for several days but i can get it working for me. Help from anyone would be great appretiable. Thanks On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani <iajdani@provati.com> wrote: > You should be able to do that in pjlib/include/pj/config_site.h and > pjmedia/include/pjmedia-codec/config.h file. But always remember > config_site.h settings will overwrite any settings done in config.h file. > Good luck… > > > > > > > > > > *From:* pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu) > *Sent:* Saturday, November 01, 2008 6:01 PM > *To:* pjsip list > *Subject:* Re: [pjsip] g729 codec > > > > Thanks Lajdani. My jumped start is running well. > > I am using Brekeke sip server to check the active session. and i am > getting the using codec (payload) is always *PCMU/8000*. even after > changing the g729 for highest priority. > > pj_str_t codec_id = pj_str("g729"); > pjmedia_codec_mgr_set_codec_priority( > pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), > &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); > > when i changed it to *PJMEDIA_CODEC_PRIO_LOWEST *the result was same. > even after disabling all the codecs and after deleting all g711 files and > related fields it showed the payload is *PCMU/8000*. > > How can i easily disable all the codecs except g729. > > Thanks > > > > On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> > wrote: > > Well.. your attribute settings seems fine. For the 33 it will be 20. And in > place of 320, it will be 160.. hope this will give u a jump start.. > > > > > > > > Rawshan Iajdani > > > > > > *From:* pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] *On Behalf Of *S. M. Nazmul Hasan (Opu) > *Sent:* Wednesday, October 29, 2008 6:12 PM > *To:* pjsip list > *Subject:* [pjsip] g729 codec > > > > > Hi Benny, > > I am trying to add voice-age g729 codec with PJSIP for symbian. but i am > getting some difficulties while following the gsm.c file. > > 1. while creating g729 codec private data > what should i declare in replace of > // struct gsm_state *encoder; > // struct gsm_state *decoder; > > in "l16.c" its only use the frame size .. > > 2. in Generate default attribute. > > i have changed the value to this. is it ok? > attr->info.clock_rate = 8000; > attr->info.channel_cnt = 1; > attr->info.avg_bps = 8000; > attr->info.max_bps = 8000; > attr->info.pcm_bits_per_sample = 16; > attr->info.frm_ptime = 10; > > 3. In gsm.c there is some hard coding in *gsm_codec_parse(* > -- what will be the value in replace of "33" here > > 4. frame_size and sample_per_frame are also not clear to me.. > > Sorry for lot of questions and may be those are lot easier to ask.. but > really i am not good in codec.. > > waiting for reply. > > Thanks > > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > -- > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
NI
Nanang Izzuddin
Tue, Nov 4, 2008 4:02 PM

Hi,

Just in case, please make sure that your codec is registered to the
pjmedia endpoint, as you can see in pjsua_media.c there is
pjmedia_codec_speex_init() for registering Speex. And please remember
to unregister it.

Regards,
nanang

On Sat, Nov 1, 2008 at 7:01 PM, S. M. Nazmul Hasan (Opu)
apus29@gmail.com wrote:

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am getting
the using codec (payload) is always PCMU/8000. even after changing the g729
for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same. even
after disabling all the codecs and after deleting all g711 files and related
fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And
in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, Just in case, please make sure that your codec is registered to the pjmedia endpoint, as you can see in pjsua_media.c there is pjmedia_codec_speex_init() for registering Speex. And please remember to unregister it. Regards, nanang On Sat, Nov 1, 2008 at 7:01 PM, S. M. Nazmul Hasan (Opu) <apus29@gmail.com> wrote: > Thanks Lajdani. My jumped start is running well. > > I am using Brekeke sip server to check the active session. and i am getting > the using codec (payload) is always PCMU/8000. even after changing the g729 > for highest priority. > > pj_str_t codec_id = pj_str("g729"); > pjmedia_codec_mgr_set_codec_priority( > pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), > &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); > > when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. even > after disabling all the codecs and after deleting all g711 files and related > fields it showed the payload is PCMU/8000. > > How can i easily disable all the codecs except g729. > > Thanks > > > > > On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> > wrote: >> >> Well.. your attribute settings seems fine. For the 33 it will be 20. And >> in place of 320, it will be 160.. hope this will give u a jump start.. >> >> >> >> >> >> >> >> Rawshan Iajdani >> >> >> >> >> >> From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] >> On Behalf Of S. M. Nazmul Hasan (Opu) >> Sent: Wednesday, October 29, 2008 6:12 PM >> To: pjsip list >> Subject: [pjsip] g729 codec >> >> >> >> Hi Benny, >> >> I am trying to add voice-age g729 codec with PJSIP for symbian. but i am >> getting some difficulties while following the gsm.c file. >> >> 1. while creating g729 codec private data >> what should i declare in replace of >> // struct gsm_state *encoder; >> // struct gsm_state *decoder; >> >> in "l16.c" its only use the frame size .. >> >> 2. in Generate default attribute. >> >> i have changed the value to this. is it ok? >> attr->info.clock_rate = 8000; >> attr->info.channel_cnt = 1; >> attr->info.avg_bps = 8000; >> attr->info.max_bps = 8000; >> attr->info.pcm_bits_per_sample = 16; >> attr->info.frm_ptime = 10; >> >> 3. In gsm.c there is some hard coding in gsm_codec_parse( >> -- what will be the value in replace of "33" here >> >> 4. frame_size and sample_per_frame are also not clear to me.. >> >> Sorry for lot of questions and may be those are lot easier to ask.. but >> really i am not good in codec.. >> >> waiting for reply. >> >> Thanks >> >> S. M. Nazmul Hasan Opu >> Software Engineer >> R & D Application >> Dhaka, Bangladesh >> Mob: +880 1712 901 764 >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > > -- > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
NI
Nanang Izzuddin
Tue, Nov 4, 2008 4:18 PM

Hi,

Just did a quick skimming, things I can found so far:

  1. For 8000kbps and 10ms frame time, the encoded frame size should be
    10 bytes, not 20 bytes.
  2. this line:
    pcm_in += 160;
    should be:
    pcm_in += 80;

Numbers in a codec wrapper are very important, so please check and
recheck carefully.

Regards,
nanang

On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu)
apus29@gmail.com wrote:

Dear Rawshan,

Can you please check the file if it is ok to add voiceage g729 in pjsip for
symbian. i am trying this for several days but i can get it working for me.

Help from anyone would be great appretiable.

Thanks

On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani iajdani@provati.com wrote:

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h file.
Good luck…

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am
getting  the using codec (payload) is always PCMU/8000. even after changing
the g729 for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same. even
after disabling all the codecs and after deleting all g711 files and related
fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And
in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org]
On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, Just did a quick skimming, things I can found so far: 1. For 8000kbps and 10ms frame time, the encoded frame size should be 10 bytes, not 20 bytes. 2. this line: pcm_in += 160; should be: pcm_in += 80; Numbers in a codec wrapper are very important, so please check and recheck carefully. Regards, nanang On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu) <apus29@gmail.com> wrote: > Dear Rawshan, > > Can you please check the file if it is ok to add voiceage g729 in pjsip for > symbian. i am trying this for several days but i can get it working for me. > > Help from anyone would be great appretiable. > > Thanks > > On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani <iajdani@provati.com> wrote: >> >> You should be able to do that in pjlib/include/pj/config_site.h and >> pjmedia/include/pjmedia-codec/config.h file. But always remember >> config_site.h settings will overwrite any settings done in config.h file. >> Good luck… >> >> >> >> >> >> >> >> >> >> From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] >> On Behalf Of S. M. Nazmul Hasan (Opu) >> Sent: Saturday, November 01, 2008 6:01 PM >> To: pjsip list >> Subject: Re: [pjsip] g729 codec >> >> >> >> Thanks Lajdani. My jumped start is running well. >> >> I am using Brekeke sip server to check the active session. and i am >> getting the using codec (payload) is always PCMU/8000. even after changing >> the g729 for highest priority. >> >> pj_str_t codec_id = pj_str("g729"); >> pjmedia_codec_mgr_set_codec_priority( >> pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), >> &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); >> >> when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. even >> after disabling all the codecs and after deleting all g711 files and related >> fields it showed the payload is PCMU/8000. >> >> How can i easily disable all the codecs except g729. >> >> Thanks >> >> >> >> On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> >> wrote: >> >> Well.. your attribute settings seems fine. For the 33 it will be 20. And >> in place of 320, it will be 160.. hope this will give u a jump start.. >> >> >> >> >> >> >> >> Rawshan Iajdani >> >> >> >> >> >> From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] >> On Behalf Of S. M. Nazmul Hasan (Opu) >> Sent: Wednesday, October 29, 2008 6:12 PM >> To: pjsip list >> Subject: [pjsip] g729 codec >> >> >> >> Hi Benny, >> >> I am trying to add voice-age g729 codec with PJSIP for symbian. but i am >> getting some difficulties while following the gsm.c file. >> >> 1. while creating g729 codec private data >> what should i declare in replace of >> // struct gsm_state *encoder; >> // struct gsm_state *decoder; >> >> in "l16.c" its only use the frame size .. >> >> 2. in Generate default attribute. >> >> i have changed the value to this. is it ok? >> attr->info.clock_rate = 8000; >> attr->info.channel_cnt = 1; >> attr->info.avg_bps = 8000; >> attr->info.max_bps = 8000; >> attr->info.pcm_bits_per_sample = 16; >> attr->info.frm_ptime = 10; >> >> 3. In gsm.c there is some hard coding in gsm_codec_parse( >> -- what will be the value in replace of "33" here >> >> 4. frame_size and sample_per_frame are also not clear to me.. >> >> Sorry for lot of questions and may be those are lot easier to ask.. but >> really i am not good in codec.. >> >> waiting for reply. >> >> Thanks >> >> S. M. Nazmul Hasan Opu >> Software Engineer >> R & D Application >> Dhaka, Bangladesh >> Mob: +880 1712 901 764 >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> -- >> S. M. Nazmul Hasan Opu >> Software Engineer >> R & D Application >> Dhaka, Bangladesh >> Mob: +880 1712 901 764 >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > > -- > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
SM
S. M. Nazmul Hasan (Opu)
Wed, Nov 5, 2008 6:39 AM

Nanag,

I think so Nanang, may be its not registering because i am getting response
488(Not acceptable here). But i did it register and unregister in
pjsua_media.c.

Can you please see these files.

Thanks

Opu

On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

Just did a quick skimming, things I can found so far:

  1. For 8000kbps and 10ms frame time, the encoded frame size should be
    10 bytes, not 20 bytes.
  2. this line:
    pcm_in += 160;
    should be:
    pcm_in += 80;

Numbers in a codec wrapper are very important, so please check and
recheck carefully.

Regards,
nanang

On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu)
apus29@gmail.com wrote:

Dear Rawshan,

Can you please check the file if it is ok to add voiceage g729 in pjsip

for

symbian. i am trying this for several days but i can get it working for

me.

Help from anyone would be great appretiable.

Thanks

On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani iajdani@provati.com

wrote:

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h

file.

Good luck…

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am
getting  the using codec (payload) is always PCMU/8000. even after

changing

the g729 for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same.

even

after disabling all the codecs and after deleting all g711 files and

related

fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20. And
in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i am
getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

Nanag, I think so Nanang, may be its not registering because i am getting response 488(Not acceptable here). But i did it register and unregister in pjsua_media.c. Can you please see these files. Thanks Opu On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin <nanang@pjsip.org> wrote: > Hi, > > Just did a quick skimming, things I can found so far: > 1. For 8000kbps and 10ms frame time, the encoded frame size should be > 10 bytes, not 20 bytes. > 2. this line: > pcm_in += 160; > should be: > pcm_in += 80; > > Numbers in a codec wrapper are very important, so please check and > recheck carefully. > > Regards, > nanang > > > On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu) > <apus29@gmail.com> wrote: > > Dear Rawshan, > > > > Can you please check the file if it is ok to add voiceage g729 in pjsip > for > > symbian. i am trying this for several days but i can get it working for > me. > > > > Help from anyone would be great appretiable. > > > > Thanks > > > > On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani <iajdani@provati.com> > wrote: > >> > >> You should be able to do that in pjlib/include/pj/config_site.h and > >> pjmedia/include/pjmedia-codec/config.h file. But always remember > >> config_site.h settings will overwrite any settings done in config.h > file. > >> Good luck… > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> From: pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] > >> On Behalf Of S. M. Nazmul Hasan (Opu) > >> Sent: Saturday, November 01, 2008 6:01 PM > >> To: pjsip list > >> Subject: Re: [pjsip] g729 codec > >> > >> > >> > >> Thanks Lajdani. My jumped start is running well. > >> > >> I am using Brekeke sip server to check the active session. and i am > >> getting the using codec (payload) is always PCMU/8000. even after > changing > >> the g729 for highest priority. > >> > >> pj_str_t codec_id = pj_str("g729"); > >> pjmedia_codec_mgr_set_codec_priority( > >> pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), > >> &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); > >> > >> when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. > even > >> after disabling all the codecs and after deleting all g711 files and > related > >> fields it showed the payload is PCMU/8000. > >> > >> How can i easily disable all the codecs except g729. > >> > >> Thanks > >> > >> > >> > >> On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> > >> wrote: > >> > >> Well.. your attribute settings seems fine. For the 33 it will be 20. And > >> in place of 320, it will be 160.. hope this will give u a jump start.. > >> > >> > >> > >> > >> > >> > >> > >> Rawshan Iajdani > >> > >> > >> > >> > >> > >> From: pjsip-bounces@lists.pjsip.org [mailto: > pjsip-bounces@lists.pjsip.org] > >> On Behalf Of S. M. Nazmul Hasan (Opu) > >> Sent: Wednesday, October 29, 2008 6:12 PM > >> To: pjsip list > >> Subject: [pjsip] g729 codec > >> > >> > >> > >> Hi Benny, > >> > >> I am trying to add voice-age g729 codec with PJSIP for symbian. but i am > >> getting some difficulties while following the gsm.c file. > >> > >> 1. while creating g729 codec private data > >> what should i declare in replace of > >> // struct gsm_state *encoder; > >> // struct gsm_state *decoder; > >> > >> in "l16.c" its only use the frame size .. > >> > >> 2. in Generate default attribute. > >> > >> i have changed the value to this. is it ok? > >> attr->info.clock_rate = 8000; > >> attr->info.channel_cnt = 1; > >> attr->info.avg_bps = 8000; > >> attr->info.max_bps = 8000; > >> attr->info.pcm_bits_per_sample = 16; > >> attr->info.frm_ptime = 10; > >> > >> 3. In gsm.c there is some hard coding in gsm_codec_parse( > >> -- what will be the value in replace of "33" here > >> > >> 4. frame_size and sample_per_frame are also not clear to me.. > >> > >> Sorry for lot of questions and may be those are lot easier to ask.. but > >> really i am not good in codec.. > >> > >> waiting for reply. > >> > >> Thanks > >> > >> S. M. Nazmul Hasan Opu > >> Software Engineer > >> R & D Application > >> Dhaka, Bangladesh > >> Mob: +880 1712 901 764 > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > >> > >> -- > >> S. M. Nazmul Hasan Opu > >> Software Engineer > >> R & D Application > >> Dhaka, Bangladesh > >> Mob: +880 1712 901 764 > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip@lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > > > > > > > > -- > > S. M. Nazmul Hasan Opu > > Software Engineer > > R & D Application > > Dhaka, Bangladesh > > Mob: +880 1712 901 764 > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -- S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764
SA
Salahuddin Ahmed
Wed, Nov 5, 2008 9:16 AM

Hello Opu,
I have a query to you...
Is there available any VA G729 codec for symbian platform?

regards,

On Wed, Nov 5, 2008 at 7:39 AM, S. M. Nazmul Hasan (Opu)
apus29@gmail.comwrote:

Nanag,

I think so Nanang, may be its not registering because i am getting response
488(Not acceptable here). But i did it register and unregister in
pjsua_media.c.

Can you please see these files.

Thanks

Opu

On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

Just did a quick skimming, things I can found so far:

  1. For 8000kbps and 10ms frame time, the encoded frame size should be
    10 bytes, not 20 bytes.
  2. this line:
    pcm_in += 160;
    should be:
    pcm_in += 80;

Numbers in a codec wrapper are very important, so please check and
recheck carefully.

Regards,
nanang

On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu)
apus29@gmail.com wrote:

Dear Rawshan,

Can you please check the file if it is ok to add voiceage g729 in pjsip

for

symbian. i am trying this for several days but i can get it working for

me.

Help from anyone would be great appretiable.

Thanks

On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani iajdani@provati.com

wrote:

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h

file.

Good luck…

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am
getting  the using codec (payload) is always PCMU/8000. even after

changing

the g729 for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same.

even

after disabling all the codecs and after deleting all g711 files and

related

fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani iajdani@provati.com
wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20.

And

in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i

am

getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask.. but
really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Salahuddin Ahmed

Hello Opu, I have a query to you... Is there available any VA G729 codec for symbian platform? regards, On Wed, Nov 5, 2008 at 7:39 AM, S. M. Nazmul Hasan (Opu) <apus29@gmail.com>wrote: > Nanag, > > I think so Nanang, may be its not registering because i am getting response > 488(Not acceptable here). But i did it register and unregister in > pjsua_media.c. > > Can you please see these files. > > Thanks > > Opu > > > On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin <nanang@pjsip.org> wrote: > >> Hi, >> >> Just did a quick skimming, things I can found so far: >> 1. For 8000kbps and 10ms frame time, the encoded frame size should be >> 10 bytes, not 20 bytes. >> 2. this line: >> pcm_in += 160; >> should be: >> pcm_in += 80; >> >> Numbers in a codec wrapper are very important, so please check and >> recheck carefully. >> >> Regards, >> nanang >> >> >> On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu) >> <apus29@gmail.com> wrote: >> > Dear Rawshan, >> > >> > Can you please check the file if it is ok to add voiceage g729 in pjsip >> for >> > symbian. i am trying this for several days but i can get it working for >> me. >> > >> > Help from anyone would be great appretiable. >> > >> > Thanks >> > >> > On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani <iajdani@provati.com> >> wrote: >> >> >> >> You should be able to do that in pjlib/include/pj/config_site.h and >> >> pjmedia/include/pjmedia-codec/config.h file. But always remember >> >> config_site.h settings will overwrite any settings done in config.h >> file. >> >> Good luck… >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> From: pjsip-bounces@lists.pjsip.org [mailto: >> pjsip-bounces@lists.pjsip.org] >> >> On Behalf Of S. M. Nazmul Hasan (Opu) >> >> Sent: Saturday, November 01, 2008 6:01 PM >> >> To: pjsip list >> >> Subject: Re: [pjsip] g729 codec >> >> >> >> >> >> >> >> Thanks Lajdani. My jumped start is running well. >> >> >> >> I am using Brekeke sip server to check the active session. and i am >> >> getting the using codec (payload) is always PCMU/8000. even after >> changing >> >> the g729 for highest priority. >> >> >> >> pj_str_t codec_id = pj_str("g729"); >> >> pjmedia_codec_mgr_set_codec_priority( >> >> pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), >> >> &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); >> >> >> >> when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. >> even >> >> after disabling all the codecs and after deleting all g711 files and >> related >> >> fields it showed the payload is PCMU/8000. >> >> >> >> How can i easily disable all the codecs except g729. >> >> >> >> Thanks >> >> >> >> >> >> >> >> On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com> >> >> wrote: >> >> >> >> Well.. your attribute settings seems fine. For the 33 it will be 20. >> And >> >> in place of 320, it will be 160.. hope this will give u a jump start.. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Rawshan Iajdani >> >> >> >> >> >> >> >> >> >> >> >> From: pjsip-bounces@lists.pjsip.org [mailto: >> pjsip-bounces@lists.pjsip.org] >> >> On Behalf Of S. M. Nazmul Hasan (Opu) >> >> Sent: Wednesday, October 29, 2008 6:12 PM >> >> To: pjsip list >> >> Subject: [pjsip] g729 codec >> >> >> >> >> >> >> >> Hi Benny, >> >> >> >> I am trying to add voice-age g729 codec with PJSIP for symbian. but i >> am >> >> getting some difficulties while following the gsm.c file. >> >> >> >> 1. while creating g729 codec private data >> >> what should i declare in replace of >> >> // struct gsm_state *encoder; >> >> // struct gsm_state *decoder; >> >> >> >> in "l16.c" its only use the frame size .. >> >> >> >> 2. in Generate default attribute. >> >> >> >> i have changed the value to this. is it ok? >> >> attr->info.clock_rate = 8000; >> >> attr->info.channel_cnt = 1; >> >> attr->info.avg_bps = 8000; >> >> attr->info.max_bps = 8000; >> >> attr->info.pcm_bits_per_sample = 16; >> >> attr->info.frm_ptime = 10; >> >> >> >> 3. In gsm.c there is some hard coding in gsm_codec_parse( >> >> -- what will be the value in replace of "33" here >> >> >> >> 4. frame_size and sample_per_frame are also not clear to me.. >> >> >> >> Sorry for lot of questions and may be those are lot easier to ask.. but >> >> really i am not good in codec.. >> >> >> >> waiting for reply. >> >> >> >> Thanks >> >> >> >> S. M. Nazmul Hasan Opu >> >> Software Engineer >> >> R & D Application >> >> Dhaka, Bangladesh >> >> Mob: +880 1712 901 764 >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> >> >> >> -- >> >> S. M. Nazmul Hasan Opu >> >> Software Engineer >> >> R & D Application >> >> Dhaka, Bangladesh >> >> Mob: +880 1712 901 764 >> >> >> >> _______________________________________________ >> >> Visit our blog: http://blog.pjsip.org >> >> >> >> pjsip mailing list >> >> pjsip@lists.pjsip.org >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> >> > >> > >> > >> > -- >> > S. M. Nazmul Hasan Opu >> > Software Engineer >> > R & D Application >> > Dhaka, Bangladesh >> > Mob: +880 1712 901 764 >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > > > > -- > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Salahuddin Ahmed
SM
S. M. Nazmul Hasan (Opu)
Wed, Nov 5, 2008 9:39 AM

you have to purchase it from them.

On Wed, Nov 5, 2008 at 3:16 PM, Salahuddin Ahmed bd.rubel@gmail.com wrote:

Hello Opu,
I have a query to you...
Is there available any VA G729 codec for symbian platform?

regards,

On Wed, Nov 5, 2008 at 7:39 AM, S. M. Nazmul Hasan (Opu) <apus29@gmail.com

wrote:

Nanag,

I think so Nanang, may be its not registering because i am getting
response 488(Not acceptable here). But i did it register and unregister in
pjsua_media.c.

Can you please see these files.

Thanks

Opu

On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin nanang@pjsip.orgwrote:

Hi,

Just did a quick skimming, things I can found so far:

  1. For 8000kbps and 10ms frame time, the encoded frame size should be
    10 bytes, not 20 bytes.
  2. this line:
    pcm_in += 160;
    should be:
    pcm_in += 80;

Numbers in a codec wrapper are very important, so please check and
recheck carefully.

Regards,
nanang

On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu)
apus29@gmail.com wrote:

Dear Rawshan,

Can you please check the file if it is ok to add voiceage g729 in pjsip

for

symbian. i am trying this for several days but i can get it working for

me.

Help from anyone would be great appretiable.

Thanks

On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani iajdani@provati.com

wrote:

You should be able to do that in pjlib/include/pj/config_site.h and
pjmedia/include/pjmedia-codec/config.h file. But always remember
config_site.h settings will overwrite any settings done in config.h

file.

Good luck…

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Saturday, November 01, 2008 6:01 PM
To: pjsip list
Subject: Re: [pjsip] g729 codec

Thanks Lajdani. My jumped start is running well.

I am using Brekeke sip server to check the active session. and i am
getting  the using codec (payload) is always PCMU/8000. even after

changing

the g729 for highest priority.

         pj_str_t codec_id = pj_str("g729");
         pjmedia_codec_mgr_set_codec_priority(
             pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt),
             &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST);

when i changed it to PJMEDIA_CODEC_PRIO_LOWEST  the result was same.

even

after disabling all the codecs and after deleting all g711 files and

related

fields it showed the payload is PCMU/8000.

How can i easily disable all the codecs except g729.

Thanks

On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com

wrote:

Well.. your attribute settings seems fine. For the 33 it will be 20.

And

in place of 320, it will be 160.. hope this will give u a jump start..

Rawshan Iajdani

From: pjsip-bounces@lists.pjsip.org [mailto:

On Behalf Of S. M. Nazmul Hasan (Opu)
Sent: Wednesday, October 29, 2008 6:12 PM
To: pjsip list
Subject: [pjsip] g729 codec

Hi Benny,

I am trying to add voice-age g729 codec with PJSIP for symbian. but i

am

getting some difficulties while following the gsm.c file.

  1. while creating g729 codec private data
    what should i declare in replace of
    //    struct gsm_state    *encoder;
    //    struct gsm_state    *decoder;

in "l16.c" its only use the frame size ..

  1. in Generate default attribute.

i have changed the value to this. is it ok?
attr->info.clock_rate = 8000;
attr->info.channel_cnt = 1;
attr->info.avg_bps = 8000;
attr->info.max_bps = 8000;
attr->info.pcm_bits_per_sample = 16;
attr->info.frm_ptime = 10;

  1. In gsm.c there is some hard coding in gsm_codec_parse(
    -- what will be the value in replace of "33" here

  2. frame_size and sample_per_frame are also not clear to me..

Sorry for lot of questions and may be those are lot easier to ask..

but

really i am not good in codec..

waiting for reply.

       Thanks

S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
S. M. Nazmul Hasan Opu
Software Engineer
R & D Application
Dhaka, Bangladesh
Mob: +880 1712 901 764

you have to purchase it from them. On Wed, Nov 5, 2008 at 3:16 PM, Salahuddin Ahmed <bd.rubel@gmail.com> wrote: > Hello Opu, > I have a query to you... > Is there available any VA G729 codec for symbian platform? > > regards, > > > On Wed, Nov 5, 2008 at 7:39 AM, S. M. Nazmul Hasan (Opu) <apus29@gmail.com > > wrote: > >> Nanag, >> >> I think so Nanang, may be its not registering because i am getting >> response 488(Not acceptable here). But i did it register and unregister in >> pjsua_media.c. >> >> Can you please see these files. >> >> Thanks >> >> Opu >> >> >> On Tue, Nov 4, 2008 at 10:18 PM, Nanang Izzuddin <nanang@pjsip.org>wrote: >> >>> Hi, >>> >>> Just did a quick skimming, things I can found so far: >>> 1. For 8000kbps and 10ms frame time, the encoded frame size should be >>> 10 bytes, not 20 bytes. >>> 2. this line: >>> pcm_in += 160; >>> should be: >>> pcm_in += 80; >>> >>> Numbers in a codec wrapper are very important, so please check and >>> recheck carefully. >>> >>> Regards, >>> nanang >>> >>> >>> On Tue, Nov 4, 2008 at 8:42 PM, S. M. Nazmul Hasan (Opu) >>> <apus29@gmail.com> wrote: >>> > Dear Rawshan, >>> > >>> > Can you please check the file if it is ok to add voiceage g729 in pjsip >>> for >>> > symbian. i am trying this for several days but i can get it working for >>> me. >>> > >>> > Help from anyone would be great appretiable. >>> > >>> > Thanks >>> > >>> > On Mon, Nov 3, 2008 at 3:17 PM, Rawshan Iajdani <iajdani@provati.com> >>> wrote: >>> >> >>> >> You should be able to do that in pjlib/include/pj/config_site.h and >>> >> pjmedia/include/pjmedia-codec/config.h file. But always remember >>> >> config_site.h settings will overwrite any settings done in config.h >>> file. >>> >> Good luck… >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> From: pjsip-bounces@lists.pjsip.org [mailto: >>> pjsip-bounces@lists.pjsip.org] >>> >> On Behalf Of S. M. Nazmul Hasan (Opu) >>> >> Sent: Saturday, November 01, 2008 6:01 PM >>> >> To: pjsip list >>> >> Subject: Re: [pjsip] g729 codec >>> >> >>> >> >>> >> >>> >> Thanks Lajdani. My jumped start is running well. >>> >> >>> >> I am using Brekeke sip server to check the active session. and i am >>> >> getting the using codec (payload) is always PCMU/8000. even after >>> changing >>> >> the g729 for highest priority. >>> >> >>> >> pj_str_t codec_id = pj_str("g729"); >>> >> pjmedia_codec_mgr_set_codec_priority( >>> >> pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), >>> >> &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST); >>> >> >>> >> when i changed it to PJMEDIA_CODEC_PRIO_LOWEST the result was same. >>> even >>> >> after disabling all the codecs and after deleting all g711 files and >>> related >>> >> fields it showed the payload is PCMU/8000. >>> >> >>> >> How can i easily disable all the codecs except g729. >>> >> >>> >> Thanks >>> >> >>> >> >>> >> >>> >> On Thu, Oct 30, 2008 at 3:43 AM, Rawshan Iajdani <iajdani@provati.com >>> > >>> >> wrote: >>> >> >>> >> Well.. your attribute settings seems fine. For the 33 it will be 20. >>> And >>> >> in place of 320, it will be 160.. hope this will give u a jump start.. >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> Rawshan Iajdani >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> From: pjsip-bounces@lists.pjsip.org [mailto: >>> pjsip-bounces@lists.pjsip.org] >>> >> On Behalf Of S. M. Nazmul Hasan (Opu) >>> >> Sent: Wednesday, October 29, 2008 6:12 PM >>> >> To: pjsip list >>> >> Subject: [pjsip] g729 codec >>> >> >>> >> >>> >> >>> >> Hi Benny, >>> >> >>> >> I am trying to add voice-age g729 codec with PJSIP for symbian. but i >>> am >>> >> getting some difficulties while following the gsm.c file. >>> >> >>> >> 1. while creating g729 codec private data >>> >> what should i declare in replace of >>> >> // struct gsm_state *encoder; >>> >> // struct gsm_state *decoder; >>> >> >>> >> in "l16.c" its only use the frame size .. >>> >> >>> >> 2. in Generate default attribute. >>> >> >>> >> i have changed the value to this. is it ok? >>> >> attr->info.clock_rate = 8000; >>> >> attr->info.channel_cnt = 1; >>> >> attr->info.avg_bps = 8000; >>> >> attr->info.max_bps = 8000; >>> >> attr->info.pcm_bits_per_sample = 16; >>> >> attr->info.frm_ptime = 10; >>> >> >>> >> 3. In gsm.c there is some hard coding in gsm_codec_parse( >>> >> -- what will be the value in replace of "33" here >>> >> >>> >> 4. frame_size and sample_per_frame are also not clear to me.. >>> >> >>> >> Sorry for lot of questions and may be those are lot easier to ask.. >>> but >>> >> really i am not good in codec.. >>> >> >>> >> waiting for reply. >>> >> >>> >> Thanks >>> >> >>> >> S. M. Nazmul Hasan Opu >>> >> Software Engineer >>> >> R & D Application >>> >> Dhaka, Bangladesh >>> >> Mob: +880 1712 901 764 >>> >> >>> >> _______________________________________________ >>> >> Visit our blog: http://blog.pjsip.org >>> >> >>> >> pjsip mailing list >>> >> pjsip@lists.pjsip.org >>> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >>> >> >>> >> -- >>> >> S. M. Nazmul Hasan Opu >>> >> Software Engineer >>> >> R & D Application >>> >> Dhaka, Bangladesh >>> >> Mob: +880 1712 901 764 >>> >> >>> >> _______________________________________________ >>> >> Visit our blog: http://blog.pjsip.org >>> >> >>> >> pjsip mailing list >>> >> pjsip@lists.pjsip.org >>> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >>> > >>> > >>> > >>> > -- >>> > S. M. Nazmul Hasan Opu >>> > Software Engineer >>> > R & D Application >>> > Dhaka, Bangladesh >>> > Mob: +880 1712 901 764 >>> > >>> > _______________________________________________ >>> > Visit our blog: http://blog.pjsip.org >>> > >>> > pjsip mailing list >>> > pjsip@lists.pjsip.org >>> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> > >>> > >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >> >> >> -- >> S. M. Nazmul Hasan Opu >> Software Engineer >> R & D Application >> Dhaka, Bangladesh >> Mob: +880 1712 901 764 >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > > -- > Salahuddin Ahmed > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- S. M. Nazmul Hasan Opu Software Engineer R & D Application Dhaka, Bangladesh Mob: +880 1712 901 764