Open rodrigomonelos opened 6 years ago
What is your scenario? The app was closed or minimized? Is the version of pearlcel.webph.one or some other test?
In this case the app was minimized. I can test later with the app closed. This is the PearlCel version.
El 27 nov. 2017 3:48 p. m., "Marcos Gutierrez" notifications@github.com escribió:
What is your scenario? The app was closed or minimized? Is the version of pearlcel.webph.one or some other test?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saycel/webph.one/issues/143#issuecomment-347304655, or mute the thread https://github.com/notifications/unsubscribe-auth/AZmH3haY1A4fL9ZRKq_OZIRP9GRKsziTks5s6xH5gaJpZM4QsGhH .
Hi, there I was trying to understand why the behavior change. What I notice is that before when the user registered in Kamailio there was an incoming call the system notified it. Now if there is a call in progress prior to the user's registration, the frontend does not receive it. Has any configuration changed in the backend related to this? @sanchi
duplicate of #129 ?
@gmarcos87 this has not changed. But I have added something so that if there's a call in progress and the app re-registers its contact it gets the call again (which it should have already got)
@gmarcos87 I tested now with the app closed. The behaviour is different but also a bug. In this case, with the app closed, the call is not accepted nor rejected when tapping on the answer button. See the video in the link: https://photos.app.goo.gl/2eOuxFticNNxL43s1
Does someone has or expects to have a clue about how to move on?
I ran the test after initiating the log in kamailio but I do not know if this created any log. Did it?. This is the info in my terminal
root@rhizortc:~# kamailio-trace running tail -f /var/log/daemon.log > kamailio_log_2017-12-01-14_52_19.txt packet_write_wait: Connection to 138.68.99.252 port 22: Broken pipe
The test was with the app closed, and now the call is not dropped nor accepted when I tap on both the answe and the reject buttons, it just does nothing.
I will look later how to log with logcat and let you know.
On 1 Dec 2017 3:59 p.m., "rodrigomonelos" notifications@github.com wrote:
I ran the test after initiating the log in kamailio but I do not know if this created any log. Did it?. This is the info in my terminal
root@rhizortc:~# kamailio-trace running tail -f /var/log/daemon.log > kamailio_log_2017-12-01-14_52_19.txt
You can see the result in this file (kamailiolog...)
packet_write_wait: Connection to 138.68.99.252 port 22: Broken pipe
Huh? Did your internet connection break?
Stefan
The test was with the app closed, and now the call is not dropped nor accepted when I tap on both the answe and the reject buttons, it just does nothing.
I will look later how to log with logcat and let you know.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saycel/webph.one/issues/143#issuecomment-348516210, or mute the thread https://github.com/notifications/unsubscribe-auth/AACwrYEmNn9e7Z1sdLzPQCJfcdVnkYtTks5s8BRMgaJpZM4QsGhH .
I did 5 tests of trying to answer a call from the notification, 3 with the app closed and 2 with the app in background. In none of them I could get the expecting result of connecting the call.
Following you will find my report of each test. I recorded the local time that I think will be useful to match each report with the logs on the server, and for most of the cases I captured the screens on the phone and the log from aLogcat.
Local time: 19:07
Description: Call to app in background. I get notification and answer but the app opens and doesn't connect, just shows the tabs. On the caller side I get the "Sorry... " message.
In this first case I didn't recorded the screen.
aLogcat:
--------- beginning of main
I/art (21975): CollectorTransition marksweep + semispace GC freed 385(-34KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 7MB/9MB, paused 15.725ms total 15.725ms
I/art (21975): CollectorTransition marksweep + semispace GC freed 271(-39KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 7MB/9MB, paused 17.917ms total 17.917ms
I/art (21975): CollectorTransition marksweep + semispace GC freed 299(-37KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 7MB/9MB, paused 54.913ms total 54.913ms
I/art (21975): CollectorTransition marksweep + semispace GC freed 1197(9KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 7MB/9MB, paused 20.104ms total 20.104ms
I/WebViewFactory(21975): Loading com.google.android.webview version 61.0.3163.98 (code 316309800)
I/art (21975): Rejecting re-init on previously-failed class java.lang.Class
Local time: 19:12
Description: Call to app closed. App opens after answering from the notification and shows again options to accept or reject an incoming call. After accepting the call is terminated. In the caller side I got the after call survey, so I do not know why it dropped.
Screen capture: https://photos.app.goo.gl/GnVARuiAIcfI8i3k2
aLogcat:
--------- beginning of main
W/System (24868): ClassLoader referenced unknown path: /data/app/org.jtb.alogcat-1/lib/arm
I/WebViewFactory(24868): Loading com.google.android.webview version 61.0.3163.98 (code 316309800)
I/art (24868): Rejecting re-init on previously-failed class java.lang.Class
Local time: 19:21 Description: App in background again. The notification never got to the app. Screen capture: https://photos.app.goo.gl/5tBwczDbqxJLh7G33 aLogcat: None
Local time: 19:26 Description: App closed. Call dropped after accepting. Maybe because I sliced the notifications. Will check again on test 5 without doing that. Not getting good logs on the phone. Screen capture: https://photos.app.goo.gl/7ZaThpTPZInaPJY62 aLogcat: --------- beginning of main I/art (26814): CollectorTransition marksweep + semispace GC freed 1510(-68KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 8MB/10MB, paused 525.592ms total 525.592ms I/Choreographer(26814): Skipped 31 frames! The application may be doing too much work on its main thread. W/InputEventReceiver(26814): Attempted to finish an input event but the input event receiver has already been disposed.
Local time: 19:29
Description: App closed. App opened but call was not rejected nor answered, and there weren't options for that, just the app.
Screen capture: https://photos.app.goo.gl/PeVu0sohItvFHJSY2
aLogcat:
--------- beginning of main
W/System (30149): ClassLoader referenced unknown path: /data/app/org.jtb.alogcat-1/lib/arm
I/WebViewFactory(30149): Loading com.google.android.webview version 61.0.3163.98 (code 316309800)
I/art (30149): Rejecting re-init on previously-failed class java.lang.Class
these logs don't seem to me to say very much.
but after analysing lots of the logs I found an issue on Test number 5 - when the server would store a transaction after having failed to send the INVITE out on a not-anymore-existing connection, it would use the wrong user. I've fixed this (with [master 5a84f07] b/f:cfg:use correct callee when storing transaction after failed t_relay) and reloaded the config.
Ok, I was doing some tests too.
1 - App to app open (works) 2 - App to app minimized (works / low battery not work) 3 - App closed (Notification works, open and register but never get the call from jssip) 4 - App to app already open in test 3 - Nothing happen, app not get any log from jssip) 5 - Same app to 500 - Works! 6 - App to app open in test 3 - Now work!
In spite of being the registered user in jssip (test 3) the connection was not works until the user makes a call.
In the SMS tests @rodrigomonelos reported on #122 something similar, having to make a call for the messages to begin to enter.
I did new tests and logged them, you can find them below. But first I will comment on Marcos results: I had similar results:
Differences in my results are:
So @gmarcos87, what do you suggest we to do based on this results. Is it clear for you what has to be fixed and by who? Or where and how should we keep looking...
Also, do you think that if I use the remote-debugging tools that you suggested to Stefan we will get better information than now with aLogcat?
Local time: 11:02 Description: App closed. No incoming notification. Rings until "Sorry..." message. Screen capture: has no value, nothing happened on the phone.
--------- beginning of main
W/System (28353): ClassLoader referenced unknown path: /data/app/org.jtb.alogcat-1/lib/arm
I/WebViewFactory(28353): Loading com.google.android.webview version 61.0.3163.98 (code 316309800)
I/art (28353): Rejecting re-init on previously-failed class java.lang.Class
Local time: 11:08 Description: Opened the app and sent it to background. Same result than test 6. Rings on caller until "Sorry..." message, no activity on receiver. Screen capture: has no value, nothing happened on the phone.
--------- beginning of main I/art (28353): CollectorTransition marksweep + semispace GC freed 1813(4KB) AllocSpace objects, 1(20KB) LOS objects, 25% free, 8MB/10MB, paused 50.750ms total 50.750ms I/art (28353): CollectorTransition marksweep + semispace GC freed 1048(-84KB) AllocSpace objects, 1(24KB) LOS objects, 24% free, 8MB/10MB, paused 27.191ms total 27.191ms
Local time: 11:20 Description: App in foreground: call is received, answered and connected as usual. Screen capture: Just the expected.
--------- beginning of main I/art (28353): CollectorTransition marksweep + semispace GC freed 1670(-26KB) AllocSpace objects, 1(20KB) LOS objects, 25% free, 8MB/10MB, paused 41.891ms total 41.891ms I/art (28353): CollectorTransition marksweep + semispace GC freed 506(-102KB) AllocSpace objects, 1(24KB) LOS objects, 25% free, 8MB/10MB, paused 33.650ms total 33.650ms W/InputEventReceiver(28353): Attempted to finish an input event but the input event receiver has already been disposed.
Local time: 11:26 Description: I went from closed to background to foreground on the app. Just got the call when got up to foreground Now back to background and I do get the call, so my impression is that it was necessary to receive a call in foreground to start receiving calls with the app in background or closed. Got the notification and tapped anser, the app started to come to foreground (but with the splash screen, like if it was opening) and the call got terminated once the app ended loading. I didn't even sliced the notifications slider that was open after answering the notification. Strange that I got the "after call survey" screen on the app, while I had the "Sorry..." message on the caller. For this test I changed on aLogcat and chose "Format: raw". Let me know if you consider this is better. Other options I could try are brief, process, tag, thread, thread time, time and long. Screen capture: https://photos.app.goo.gl/EDUOjOlvymqWduXM2
--------- beginning of main
CollectorTransition marksweep + semispace GC freed 2653(60KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 7MB/9MB, paused 31.012ms total 31.012ms
Loading com.google.android.webview version 61.0.3163.98 (code 316309800)
Rejecting re-init on previously-failed class java.lang.Class
See video: https://photos.app.goo.gl/t92LHQAiGwWkZJn52