bad quality on iphone 2G with os 3.0

MS
Mukesh Sharma
Sun, Jan 10, 2010 5:27 PM

Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending
quality is bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement in
input sound thread by doing this i have found that frequency of
calling callback increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

Note
siphon 2.0 downloaded from Cydia working fine on 2g.

Thanks in advance.
Regards
Mukesh

Hi All, I have manage to run pjsip on iphone 3g with good audio quality . But when I run pjsip on 2g ,receiving quality is good but sending quality is bad. Also if I use headset both side quality is good. To figure out where is problem I have putted some debug statement in input sound thread by doing this i have found that frequency of calling callback increase if I insert headset. I have tested this with recorded message also. if any one had faced this problem please help. Note siphon 2.0 downloaded from Cydia working fine on 2g. Thanks in advance. Regards Mukesh
RM
Re Mo
Mon, Jan 25, 2010 9:01 AM

Dear Mukesh

I am encountering the same problem you described.
Did you get a resolution for it? Can you share any insight?
Which version of PJSIP are you using?

I would be happy to collaborate with you on resolving this.

Regards,
remo9071@gmail.com

On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma mukesh.s@geodesic.comwrote:

Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending quality
is bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement in input
sound thread by doing this i have found that frequency of calling callback
increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

Note
siphon 2.0 downloaded from Cydia working fine on 2g.

Thanks in advance.
Regards
Mukesh


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

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

Dear Mukesh I am encountering the same problem you described. Did you get a resolution for it? Can you share any insight? Which version of PJSIP are you using? I would be happy to collaborate with you on resolving this. Regards, remo9071@gmail.com On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma <mukesh.s@geodesic.com>wrote: > Hi All, > I have manage to run pjsip on iphone 3g with good audio quality . > But when I run pjsip on 2g ,receiving quality is good but sending quality > is bad. > Also if I use headset both side quality is good. > To figure out where is problem I have putted some debug statement in input > sound thread by doing this i have found that frequency of calling callback > increase if I insert headset. > I have tested this with recorded message also. > if any one had faced this problem please help. > > Note > siphon 2.0 downloaded from Cydia working fine on 2g. > > Thanks in advance. > Regards > Mukesh > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
MS
Mukesh Sharma
Mon, Jan 25, 2010 9:59 AM

Hi Remo,
If you are using PJSIP 1.5, you need to change
PJMEDIA_SOUND_BUFFER_COUNT, which is defined in pjmedia/include/
pjmedia/config.h
Modified definition should look like:
define PJMEDIA_SOUND_BUFFER_COUNT
((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20).

This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is
160.
You need to change this to 580, or directly define
PJMEDIA_SOUND_BUFFER_COUNT to 30.

If you are using PJSIP 1.3 then you need to use delay buffer by
defining PJMEDIA_SOUND_USE_DELAYBUF to 1 and
PJMEDIA_SOUND_BUFFER_COUNT to 30 (by default it is 6) in the pjmedia/
include/pjmedia/config.h file.

Regards
Mukesh

On 25-Jan-10, at 2:31 PM, Re Mo wrote:

Dear Mukesh

I am encountering the same problem you described.
Did you get a resolution for it? Can you share any insight?
Which version of PJSIP are you using?

I would be happy to collaborate with you on resolving this.

Regards,
remo9071@gmail.com

On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma
mukesh.s@geodesic.com wrote:
Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending
quality is bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement in
input sound thread by doing this i have found that frequency of
calling callback increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

Note
siphon 2.0 downloaded from Cydia working fine on 2g.

Thanks in advance.
Regards
Mukesh


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

Hi Remo, If you are using PJSIP 1.5, you need to change PJMEDIA_SOUND_BUFFER_COUNT, which is defined in pjmedia/include/ pjmedia/config.h Modified definition should look like: define PJMEDIA_SOUND_BUFFER_COUNT ((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20). This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is 160. You need to change this to 580, or directly define PJMEDIA_SOUND_BUFFER_COUNT to 30. If you are using PJSIP 1.3 then you need to use delay buffer by defining PJMEDIA_SOUND_USE_DELAYBUF to 1 and PJMEDIA_SOUND_BUFFER_COUNT to 30 (by default it is 6) in the pjmedia/ include/pjmedia/config.h file. Regards Mukesh On 25-Jan-10, at 2:31 PM, Re Mo wrote: > Dear Mukesh > > I am encountering the same problem you described. > Did you get a resolution for it? Can you share any insight? > Which version of PJSIP are you using? > > I would be happy to collaborate with you on resolving this. > > > Regards, > remo9071@gmail.com > > On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma > <mukesh.s@geodesic.com> wrote: > Hi All, > I have manage to run pjsip on iphone 3g with good audio quality . > But when I run pjsip on 2g ,receiving quality is good but sending > quality is bad. > Also if I use headset both side quality is good. > To figure out where is problem I have putted some debug statement in > input sound thread by doing this i have found that frequency of > calling callback increase if I insert headset. > I have tested this with recorded message also. > if any one had faced this problem please help. > > Note > siphon 2.0 downloaded from Cydia working fine on 2g. > > Thanks in advance. > Regards > Mukesh > > > > _______________________________________________ > 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
RM
Re Mo
Mon, Jan 25, 2010 10:50 AM

This is greatly appreciated Mukesh and I will implement the changes ASAP.
Did it solve the problems entirely for you?

BTW do you have a solution for PJSIP 1.4 as well?

On Mon, Jan 25, 2010 at 11:59 AM, Mukesh Sharma mukesh.s@geodesic.comwrote:

Hi Remo,
If you are using PJSIP 1.5, you need to
change PJMEDIA_SOUND_BUFFER_COUNT, which is defined
in pjmedia/include/pjmedia/config.h
Modified definition should look like:
define PJMEDIA_SOUND_BUFFER_COUNT
((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20).

This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is 160.
You need to change this to 580, or directly
define PJMEDIA_SOUND_BUFFER_COUNT to 30.

If you are using PJSIP 1.3 then you need to use delay buffer by defining
PJMEDIA_SOUND_USE_DELAYBUF to 1 and PJMEDIA_SOUND_BUFFER_COUNT to 30 (by
default it is 6) in the pjmedia/include/pjmedia/config.h file.

Regards
Mukesh

On 25-Jan-10, at 2:31 PM, Re Mo wrote:

Dear Mukesh

I am encountering the same problem you described.
Did you get a resolution for it? Can you share any insight?
Which version of PJSIP are you using?

I would be happy to collaborate with you on resolving this.

Regards,
remo9071@gmail.com

On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma mukesh.s@geodesic.comwrote:

Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending quality
is bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement in input
sound thread by doing this i have found that frequency of calling callback
increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

Note
siphon 2.0 downloaded from Cydia working fine on 2g.

Thanks in advance.
Regards
Mukesh


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

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

This is greatly appreciated Mukesh and I will implement the changes ASAP. Did it solve the problems entirely for you? BTW do you have a solution for PJSIP 1.4 as well? On Mon, Jan 25, 2010 at 11:59 AM, Mukesh Sharma <mukesh.s@geodesic.com>wrote: > Hi Remo, > If you are using PJSIP 1.5, you need to > change PJMEDIA_SOUND_BUFFER_COUNT, which is defined > in pjmedia/include/pjmedia/config.h > Modified definition should look like: > define PJMEDIA_SOUND_BUFFER_COUNT > ((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20). > > This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is 160. > You need to change this to 580, or directly > define PJMEDIA_SOUND_BUFFER_COUNT to 30. > > > If you are using PJSIP 1.3 then you need to use delay buffer by defining > PJMEDIA_SOUND_USE_DELAYBUF to 1 and PJMEDIA_SOUND_BUFFER_COUNT to 30 (by > default it is 6) in the pjmedia/include/pjmedia/config.h file. > > > Regards > Mukesh > > On 25-Jan-10, at 2:31 PM, Re Mo wrote: > > Dear Mukesh > > I am encountering the same problem you described. > Did you get a resolution for it? Can you share any insight? > Which version of PJSIP are you using? > > I would be happy to collaborate with you on resolving this. > > > Regards, > remo9071@gmail.com > > On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma <mukesh.s@geodesic.com>wrote: > >> Hi All, >> I have manage to run pjsip on iphone 3g with good audio quality . >> But when I run pjsip on 2g ,receiving quality is good but sending quality >> is bad. >> Also if I use headset both side quality is good. >> To figure out where is problem I have putted some debug statement in input >> sound thread by doing this i have found that frequency of calling callback >> increase if I insert headset. >> I have tested this with recorded message also. >> if any one had faced this problem please help. >> >> Note >> siphon 2.0 downloaded from Cydia working fine on 2g. >> >> Thanks in advance. >> Regards >> Mukesh >> >> >> >> _______________________________________________ >> 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 > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
MS
Mukesh Sharma
Mon, Jan 25, 2010 11:12 AM

hi,

Did it solve the problems entirely for you?

Yes

same will work on 1.4.
but i have not tried pjsip 1.4.

Regards
Mukesh
But i have
On 25-Jan-10, at 4:20 PM, Re Mo wrote:

This is greatly appreciated Mukesh and I will implement the changes
ASAP. Did it solve the problems entirely for you?

BTW do you have a solution for PJSIP 1.4 as well?

On Mon, Jan 25, 2010 at 11:59 AM, Mukesh Sharma
mukesh.s@geodesic.com wrote:
Hi Remo,
If you are using PJSIP 1.5, you need to change
PJMEDIA_SOUND_BUFFER_COUNT, which is defined in pjmedia/include/
pjmedia/config.h
Modified definition should look like:
define PJMEDIA_SOUND_BUFFER_COUNT
((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20).

This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is
160.
You need to change this to 580, or directly define
PJMEDIA_SOUND_BUFFER_COUNT to 30.

If you are using PJSIP 1.3 then you need to use delay buffer by
defining PJMEDIA_SOUND_USE_DELAYBUF to 1 and
PJMEDIA_SOUND_BUFFER_COUNT to 30 (by default it is 6) in the pjmedia/
include/pjmedia/config.h file.

Regards
Mukesh

On 25-Jan-10, at 2:31 PM, Re Mo wrote:

Dear Mukesh

I am encountering the same problem you described.
Did you get a resolution for it? Can you share any insight?
Which version of PJSIP are you using?

I would be happy to collaborate with you on resolving this.

Regards,
remo9071@gmail.com

On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma
mukesh.s@geodesic.com wrote:
Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending
quality is bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement
in input sound thread by doing this i have found that frequency of
calling callback increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

Note
siphon 2.0 downloaded from Cydia working fine on 2g.

Thanks in advance.
Regards
Mukesh


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

hi, > Did it solve the problems entirely for you? Yes same will work on 1.4. but i have not tried pjsip 1.4. Regards Mukesh But i have On 25-Jan-10, at 4:20 PM, Re Mo wrote: > This is greatly appreciated Mukesh and I will implement the changes > ASAP. Did it solve the problems entirely for you? > > BTW do you have a solution for PJSIP 1.4 as well? > > On Mon, Jan 25, 2010 at 11:59 AM, Mukesh Sharma > <mukesh.s@geodesic.com> wrote: > Hi Remo, > If you are using PJSIP 1.5, you need to change > PJMEDIA_SOUND_BUFFER_COUNT, which is defined in pjmedia/include/ > pjmedia/config.h > Modified definition should look like: > define PJMEDIA_SOUND_BUFFER_COUNT > ((PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20). > > This depends on PJMEDIA_SND_DEFAULT_PLAY_LATENCY. By default this is > 160. > You need to change this to 580, or directly define > PJMEDIA_SOUND_BUFFER_COUNT to 30. > > > If you are using PJSIP 1.3 then you need to use delay buffer by > defining PJMEDIA_SOUND_USE_DELAYBUF to 1 and > PJMEDIA_SOUND_BUFFER_COUNT to 30 (by default it is 6) in the pjmedia/ > include/pjmedia/config.h file. > > > Regards > Mukesh > > On 25-Jan-10, at 2:31 PM, Re Mo wrote: > >> Dear Mukesh >> >> I am encountering the same problem you described. >> Did you get a resolution for it? Can you share any insight? >> Which version of PJSIP are you using? >> >> I would be happy to collaborate with you on resolving this. >> >> >> Regards, >> remo9071@gmail.com >> >> On Sun, Jan 10, 2010 at 7:27 PM, Mukesh Sharma >> <mukesh.s@geodesic.com> wrote: >> Hi All, >> I have manage to run pjsip on iphone 3g with good audio quality . >> But when I run pjsip on 2g ,receiving quality is good but sending >> quality is bad. >> Also if I use headset both side quality is good. >> To figure out where is problem I have putted some debug statement >> in input sound thread by doing this i have found that frequency of >> calling callback increase if I insert headset. >> I have tested this with recorded message also. >> if any one had faced this problem please help. >> >> Note >> siphon 2.0 downloaded from Cydia working fine on 2g. >> >> Thanks in advance. >> Regards >> Mukesh >> >> >> >> _______________________________________________ >> 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 > > > _______________________________________________ > 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
BP
Benny Prijono
Mon, Jan 25, 2010 2:58 PM

On Sun, Jan 10, 2010 at 5:27 PM, Mukesh Sharma mukesh.s@geodesic.com wrote:

Hi All,
I have manage to run pjsip on iphone 3g with good audio quality .
But when I run pjsip on 2g ,receiving quality is good but sending quality is
bad.
Also if I use headset both side quality is good.
To figure out where is problem I have putted some debug statement in input
sound thread by doing this i have found that frequency of calling callback
increase  if I insert headset.
I have tested this with recorded message also.
if any one had faced this problem please help.

I can't comment on any iPhone issues at all since I haven't tried it,
but FYI related to this we've just made some modifications in the
jitter buffer which should provide better quality on 2G type of
networks. So in relation to above, if the receiving end (which hears
the bad quality audio) is also pjsip based, you can try replacing it
with the newer version compiled with the newest jitter buffer.

The modifications that I'm talking about is
http://trac.pjsip.org/repos/ticket/969

Cheers
Benny

On Sun, Jan 10, 2010 at 5:27 PM, Mukesh Sharma <mukesh.s@geodesic.com> wrote: > Hi All, > I have manage to run pjsip on iphone 3g with good audio quality . > But when I run pjsip on 2g ,receiving quality is good but sending quality is > bad. > Also if I use headset both side quality is good. > To figure out where is problem I have putted some debug statement in input > sound thread by doing this i have found that frequency of calling callback > increase  if I insert headset. > I have tested this with recorded message also. > if any one had faced this problem please help. > I can't comment on any iPhone issues at all since I haven't tried it, but FYI related to this we've just made some modifications in the jitter buffer which should provide better quality on 2G type of networks. So in relation to above, if the receiving end (which hears the bad quality audio) is also pjsip based, you can try replacing it with the newer version compiled with the newest jitter buffer. The modifications that I'm talking about is http://trac.pjsip.org/repos/ticket/969 Cheers Benny