Jhanay / idoubs

Automatically exported from code.google.com/p/idoubs
0 stars 0 forks source link

Audio Codec wont Match under Ad-Hoc Build #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt a Conference under Ad-hoc
2. Ensure both devices are using the same version and have the Same Codec 
Enabled

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: ***ERROR: 
function: "tdav_session_audio_start()" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: file: 
"/Users/x/Documents/x/Libraries/iPhone/idoubs/branches/2.0/ios-ngn-stack/../../.
./../../doubango/branches/2.0/doubango/tinyDAV/src/audio/tdav_session_audio.c" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: line: "283" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: MSG: No codec 
matched

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: ***ERROR: 
function: "tmedia_session_mgr_start()" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: file: 
"/Users/x/Documents/x/Libraries/iPhone/idoubs/branches/2.0/ios-ngn-stack/../../.
./../../doubango/branches/2.0/doubango/tinyMEDIA/src/tmedia_session.c" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: line: "554" 

Aug 17 18:33:31 CM-2 UIKitApplication:x.x[0x3946][353] <Notice>: MSG: Failed to 
start audio session

Attempted Codecs:
Both devices with only G729AB
Both devices with SPEEX_NB, SPEEX_WB, SPEEX_UWB
Both devices with only SPEEX_UWB
Both devices with only GSM

What is the expected output? What do you see instead?
Audio Functioning Normally
Please note, Video functions perfectly.

What version of the product or source code revision are you using? On what
operating system?
ios-ngn-stack r177
doubango r644
custom implementation based on testVideoCall
iOS 4.3.5 Ad-Hoc Signed on Two Devices
Both Devices Set up with SAME Audio Codec.

Please provide any additional information below.

Original issue reported on code.google.com by mattvanv...@gmail.com on 18 Aug 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Like you don't have the right CFLAGS in your adhoc configuration.
All codecs you have mentioned must be enabled using the CFLAGS. Only G.711 is 
enabled by default.
Could you please send the network trace or try with G.711 to confirm?

Original comment by boss...@yahoo.fr on 18 Aug 2011 at 6:16

GoogleCodeExporter commented 9 years ago
Thanks for the quick Reponse:
I'll see if I can get a Wireshark log I haven't done it direct from devices yet 
though :)

With PCMU Enabled on both I have the following:

Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: ***ERROR: 
function: "tdav_session_audio_start()" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: file: 
"/Users/curiousminds/Documents/tt_ios/Libraries/iPhone/idoubs/branches/2.0/ios-n
gn-stack/../../../../../doubango/branches/2.0/doubango/tinyDAV/src/audio/tdav_se
ssion_audio.c" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: line: "283" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: MSG: No 
codec matched
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: ***ERROR: 
function: "tmedia_session_mgr_start()" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: file: 
"/Users/curiousminds/Documents/tt_ios/Libraries/iPhone/idoubs/branches/2.0/ios-n
gn-stack/../../../../../doubango/branches/2.0/doubango/tinyMEDIA/src/tmedia_sess
ion.c" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: line: "554" 
Aug 18 11:42:54 unknown UIKitApplication:x.x[0x3901][73] <Notice>: MSG: Failed 
to start audio session

Original comment by mattvanv...@gmail.com on 18 Aug 2011 at 6:47

GoogleCodeExporter commented 9 years ago
I also hardcoded the C Flags for this into the Host application build with no 
success

Original comment by mattvanv...@gmail.com on 18 Aug 2011 at 7:27

GoogleCodeExporter commented 9 years ago
I've attached a Wireshark Dump I took from one of the devices to my Simulator 
(Since i couldn't work out how to wireshark dump from the two devices over the 
network, I tried using my Computer as a Network interface to share the 
connection but that was no use).

Anyway, hopefully this helps!

Original comment by mattvanv...@gmail.com on 18 Aug 2011 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
Last attempt, turned on ALL  Audio defaults (except G729). Same messages :( 

This is ONLY happening on Ad-hoc, under debug everything works perfectly using 
the same SIP/RTP stack. Very very strange.

Original comment by mattvanv...@gmail.com on 18 Aug 2011 at 11:24

GoogleCodeExporter commented 9 years ago
The attached file confirm what I say: The remote party don't have G.711 codec 
enable (see audio line with port=0). I don't know what is the problem but you 
have something wrong in your code/configuration.
For testing purposes we distribute iDoubs in AdHoc mode and we have never seen 
such problem.

Original comment by boss...@yahoo.fr on 22 Aug 2011 at 10:14

GoogleCodeExporter commented 9 years ago
I'm going to troubleshoot my Ad-Hoc build process and update you here of any 
progress. I'm not sure what is so different between the debug build and ad-hoc.

Original comment by mattvanv...@gmail.com on 22 Aug 2011 at 10:20

GoogleCodeExporter commented 9 years ago
I'd like to recommend this ticket be closed.
It looks like it was an issue with my ad-hoc build process not cleaning the 
previous build of Doubango. I've resolved these issues and now audio works! Yes!

Original comment by mattvanv...@gmail.com on 24 Aug 2011 at 12:31

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 8 Sep 2011 at 10:50