prashant343 / siphon

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

Cannot hear incoming caller - caused by no SDP in initial INVITE #386

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the PABX I am connecting to I cannot hear the person who called me but
they can hear me. 

What steps will reproduce the problem?
1. Siphon is registered with the PABX
2. Call the Siphon phone using another phone
3. Answer the call in Siphon

What is the expected output? What do you see instead?
I expect to be able to hear the incoming caller, however all I hear is
silence. The caller however call hear me.

What version of the product are you using? On what operating system?
MacBook Snow Leopard
iPhone 3.1.3. 
PJSIP 1.5.5 revision 3119
Siphon revision 624

Please provide any additional information below.
Debugging a bit more, it seems like the cause is because in this PABX it
does not include the SDP in the initial INVITE message. The SDP is sent
much later. I have another SIP client and it has no problem handling this.

I have attached two logs. One log is where the SDP is not in the initial
INVITE (connecting to the PABX which has this characteristics). In this
case there is no voice path in Siphon.

The second log is to another test PABX where the SDP is included in the
initial INVITE. In this case there is no issue with voice paths in Siphon.

Any idea on how to fix this?

Original issue reported on code.google.com by rukshan...@gmail.com on 12 Apr 2010 at 12:27

Attachments:

GoogleCodeExporter commented 8 years ago
Seems like I was wrong, there is no voice paths at all. I cannot hear the 
incoming caller nor can they hear me.

Original comment by funkymob...@gmail.com on 12 Apr 2010 at 2:05

GoogleCodeExporter commented 8 years ago
This is fixed on the latest Siphon by using iphone_dev.c instead of 
iphonesound.c

Turns out that iphonesound.c exbihits this behaviour when the SDP is
not in the initial invite, you have to use iphone_dev.c.

So patch using http://siphon.googlecode.com/files/patch-audio_dev.txt

and also http://siphon.googlecode.com/files/patch-audioqueue-dev.txt

That should fix it. 

Original comment by rukshan...@gmail.com on 13 Apr 2010 at 7:36

GoogleCodeExporter commented 8 years ago
rukshan,

I love your work!
It did for me!

Steve

Original comment by steve.mo...@gmail.com on 13 Apr 2010 at 12:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hi rukshan,

i am facing the same problem. I compiled pjsip_1.8 for siphon, without adding 
any patches to it, except for config_site.h file.  i am running siphon on my 
iphone 3gs and 4g. 
For non-jailbroken iphones. I tried adding the above two patches as u 
mentioned.but it still doesnt work.

can u plz  tell me what might be the problem?

Original comment by iyer...@gmail.com on 7 Dec 2010 at 5:48