Best media_config settings?

59 views
Skip to first unread message

Alexei Kuznetsov

unread,
Feb 20, 2010, 12:30:05 PM2/20/10
to pjsip-iphone...@googlegroups.com
Hi,

First of all, thank you for opensourcing the driver!

I’m testing it on my iPhone, but getting distorted sound. I think this
might have something to do with media_config (I’m just using default
values). What media_config settings (clock_rate, ptime, ec_tail_len,
etc) work best for you?

Alexei

Robbie Hanson

unread,
Feb 24, 2010, 4:14:13 PM2/24/10
to pjsip-iphone...@googlegroups.com
Here's our media_config:

pjsua_media_config mediaConfig;

pjsua_media_config_default(&mediaConfig);

mediaConfig.no_vad = 1;

mediaConfig.enable_ice = 0;
mediaConfig.snd_auto_close_time = 1;


mediaConfig.ec_tail_len = 0; // Disable echo cancellation


We are using iPhone OS version 3.1.2 or later.

I should also point out that the echo cancellation doesn't work in the simulator.  (Last time I checked.)  So I'm not entirely sure how the driver would sound if being run in the simulator.

-Robbie Hanson

PS - We're using your excellent AKSIP wrappers!  Let me know if you have any questions at all.

Also, I need to get you our latest changes. I don't remember any more bug fixes.  Just mostly comments and tweaks to help us integrate with our UI, but you might be interested.

Alexei Kuznetsov

unread,
Feb 25, 2010, 3:24:15 PM2/25/10
to pjsip-iphone...@googlegroups.com
That’s strange, because I need to add the following lines to get
normal audio (without them it is very distorted):

mediaConfig.clock_rate = 8000;
mediaConfig.snd_clock_rate = 8000;

And yes, I would be glad to look at the changes you’ve made to the wrappers.

Alexei

Reply all
Reply to author
Forward
0 new messages