llj098 / imsdroid

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

Calling issue over WIfi #413

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (wireshark) or Android log (DDMS output)
if you want quick response

What steps will reproduce the problem?
1. Initiate IMSDroid
2. Select a contact from Contact list oe enter the contact number and click on 
Video/Audio call
3. Video/Audio calls are not initializing and connecting over Wifi only.

In 3G/GPRS calls are connecting.

What is the expected output? What do you see instead?
Calls should be connect on wifi/3g/gprs.
But calls are not connecting in Wifi. Can u Please help me.

The INVITE message sending in parts to Switch IP.
Other wise it is Giving Forbidden response from the Switch.

In UI it is Showing Transport Error.

What version of the product are you using? On what operating system?
Android 2.3 , IMSDroid 2.0.520, Samsung Galaxy Ace+ S7500

Please provide any additional information below.

Original issue reported on code.google.com by mahesh.s...@gmail.com on 21 Nov 2012 at 11:40

GoogleCodeExporter commented 9 years ago
yes for me also same issue. In wifi mode calls are not getting connected.

In wifi data is sending in parts. Im message body data is sending in parts. 
Like below attached images. 
I dont know no where is the issue can please giv the Replay.

Original comment by tmcp...@gmail.com on 22 Nov 2012 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by tmcp...@gmail.com on 22 Nov 2012 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago
Me too, i have tested over differents phone and wifi networks, but in some case 
connecing over wifi fails (never over 3G). I have done a trace over asterisk. 
Android doesn´t send the INVITE RESPONSE (DIGEST OF NONCE), point 4 so 
connection doesn´t take place. 
On other hand i have installed IMSDroid application in each phone tested and 
always works (all wifi and 3G).

Normal Call Trace (after registration):

1.  Android->Asterik: Invite (telephone number, from, to)
2.  Asterik -> Android: 407 authentication (nonce to make digest encryption 
with device pass)
3.  Android->Asterik: Ack (acknowledge)
4.  Android->Asterik: Invite (telephone number, from, to + digest nonce)
5.  Asterik -> Android: Trying
6.  Asterik -> Android: Ringing
7.  Asterik -> Android: OK
8.  Android->Asterik: Ack (acknowledge)
9.  Call established, sending audio.

Android-ngn-stack testing

Model: Galaxy B5510L
Android: 2.3.5
Wifi 1(home): No ok
Wifi 2(office): No ok
IMSDroid app: works in both wifi

Model: Galaxy I5500L
Android: 2.2.2
Wifi 1(home): Ok
Wifi 2(office): No ok
IMSDroid app: works in both wifi

Model: Galaxy S3
Android: 4.1
Wifi 1(home): Ok
Wifi 2(office): No ok
IMSDroid app: works in both wifi

Attach: Sip trace (replaced asterisk ip, user/pass data)
Thanks

Original comment by mrodrig...@neotel.com.ar on 13 Apr 2013 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, i found the problem

On imsdroid-2.0.431-preview.apk calling over wifi allways works

On imsdroid-2.544.836.apk, happens the issue, calling over wifi 1(home) works, 
but not over Wifi 2(office).

Have you made any modification between this two version over calling method?

Thanks

Original comment by mrodrig...@neotel.com.ar on 13 Apr 2013 at 8:45

GoogleCodeExporter commented 9 years ago
Hi, i have found where the bug begins.
On revision 497 calling over wifi works ok over all networks.
On revision 504 calling over wifi works ok on some networks (wifi home works, 
but not over Wifi office).

I have compared the code with Araxis and I think that the problem is in the 
modification of "so" libraries.

On revision 504 there is a change from libtinyWRAP.so to 
libtinyWRAP_armv5te.so/libtinyWRAP_armv7-a.so libraries.

Because the same app works in some wifi and not in others, the problem should 
come from maximum packet size over wifi.

I hope this can help to resolve the problem. If you want to test in my 
netwaork, just send me the modificated code.

Thanks

Original comment by mrodrig...@neotel.com.ar on 4 May 2013 at 10:43

GoogleCodeExporter commented 9 years ago
The bug begins excactly on revision 499. 
Revision 497 just works ok on every wifi network.

Difference betweeen these two releases:
NgnProxyAudioProducer.java bufferSize> shortsPerNotif * 2 x shortsPerNotif << 1
NgnProxyAudioProducer.java mAudioFrame > shortsPerNotif * 2 x shortsPerNotif << 
1
NgnProxyAudioConsumer.java mbufferSize> shortsPerNotif * 2 x shortsPerNotif << 1
NgnProxyAudioConsumer.java mOutputBuffer> shortsPerNotif * 2 x shortsPerNotif 
<< 1
NgnEngine.java MediaSessionMgr > Enabled(false) x AgcEnabled(true)
Libraries > libtinyWRAP.so x libtinyWRAP_armv5te.so/libtinyWRAP_armv7-a.so

I have changed this JAVA code over revision 499 but it still doesnt work on 
some wifi network, so I think that bug is on Libraries.

There is no problem related on firewall since the same app works ok in some 
phones and not in other phones, just depending on wifi networks.

TEST:

Model: Galaxy B5510L
Android: 2.3.5
IMSDroid revision 497 both wifi OK.
IMSDroid revision 499 Wifi 1(home): No Ok
IMSDroid revision 499 Wifi 2(office): No ok

Model: Galaxy I5500L
Android: 2.2.2
IMSDroid revision 497 both wifi OK.
IMSDroid revision 499 Wifi 1(home): Ok
IMSDroid revision 499 Wifi 2(office): No ok

Model: Galaxy S3
Android: 4.1
IMSDroid revision 497 both wifi OK.
IMSDroid revision 499 Wifi 1(home): Ok
IMSDroid revision 499 Wifi 2(office): No ok

Thanks

Original comment by mrodrig...@neotel.com.ar on 9 May 2013 at 2:55

GoogleCodeExporter commented 9 years ago
Hi IMSDROID team,

I got same issue of  mrodrig...@neotel.com.ar.  Please fix it. I created my 
problem in https://code.google.com/p/imsdroid/issues/detail?id=505&sort=-id

Please provide me checkout of "imsdroid-2.0.431-preview.apk".  

Thank you to IMSDROID team 

Original comment by rawatpro...@gmail.com on 13 Jan 2014 at 7:28