krunal09 / sample

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

voicemail notification #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a defect but a feature request.  

csipsimple should display a notification when there is a voicemail on the sip 
server.

Original issue reported on code.google.com by mcampbel...@gmail.com on 2 Jul 2010 at 2:18

GoogleCodeExporter commented 9 years ago
Ok, we should use mwi support of pjsip for that.
It is just user interface to add I think

Original comment by r3gis...@gmail.com on 9 Jul 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Issue 94 has been merged into this issue.

Original comment by r3gis...@gmail.com on 18 Jul 2010 at 12:05

GoogleCodeExporter commented 9 years ago
I found this and hope it is useful:

Support in PJSUA-LIB:

"mwi_enabled" field in pjsua account config (default is disabled)
"on_mwi_info" callback
"enable_unsolicited_mwi" in pjsua_config (default is enabled)
if MWI subscription is terminated for some reason, PJSUA-LIB will renew 
periodically (PJSUA_PRES_TIMER timer)

To implement MWI support in your application:

implement on_mwi_info() callback
at this point, any unsolicited incoming NOTIFY requests containing MWI will 
cause on_mwi_info() callback to be called, unless enable_unsolicited_mwi is 
explicitly disabled in pjsua_config.
if you'd like to use MWI subscriptions, set mwi_enabled to TRUE in 
pjsua_acc_config

Original comment by dc3de...@gmail.com on 14 Aug 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Yes I already got it.

Problem is that on_mwi_info callback give as argument a mwi_info which is 
composed of a pjsip_evsub & a pjsip_rx_data (which is composed of a lot of 
fields !)

As consequence each these field should be wrapped and ported to the java layer. 
It means a lot of additional code (even if automatically generated) and so a 
lot of extra RAM. 

So, I think that making the treatment of the mwi_info on the native stack is 
the good solution. And so returning to the java layer only what is really 
interesting for us - and not this big struct that contains a lot of useless 
data. That's the reason why I must take a part of this point to modify the 
native library and starts to code the first treatement of mwi_info.

Original comment by r3gis...@gmail.com on 14 Aug 2010 at 7:35

GoogleCodeExporter commented 9 years ago
If you go to all the trouble to indicate call waiting, please add to a 
dedicated "Voicemail" button on the dialer page and a field on the account 
setup for the voicemail account to dial.

Original comment by pgrayb...@gmail.com on 16 Nov 2010 at 4:10

GoogleCodeExporter commented 9 years ago
Issue 433 has been merged into this issue.

Original comment by r3gis...@gmail.com on 29 Nov 2010 at 1:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r497.

Original comment by r3gis...@gmail.com on 22 Dec 2010 at 11:49

GoogleCodeExporter commented 9 years ago
Voice mail feature added :
 * Based on SIP NOTIFY from the server.
 * When a voice mail is received it add a notification in notification sys bar
 * When clicking on the notification, call is directly made to the voice mail :)

Will be available in nightly build revision 497 and higher !

Original comment by r3gis...@gmail.com on 22 Dec 2010 at 11:54

GoogleCodeExporter commented 9 years ago
I installed revision 498 and it crashes in my Motorola Milestone :(

Original comment by mau...@gmail.com on 23 Dec 2010 at 2:26

GoogleCodeExporter commented 9 years ago
revision 498 Force Closes on EVO too.

Original comment by pgrayb...@gmail.com on 23 Dec 2010 at 2:43

GoogleCodeExporter commented 9 years ago
MMm strange just tested clean install on one of my devices, no crash at all.
Can you send me logs? (with alogcat for example if you can launch the app at 
all)

Original comment by r3gis...@gmail.com on 23 Dec 2010 at 3:04

GoogleCodeExporter commented 9 years ago
FC on n1 just now.

Original comment by gervais....@gmail.com on 23 Dec 2010 at 7:03

GoogleCodeExporter commented 9 years ago
rev 496 FCs on n1 as well (cm6 nightly 295). Going back to the market version 
since I dont know which nightly is stable enough to run on the n1 right now.

Original comment by gervais....@gmail.com on 23 Dec 2010 at 7:11

GoogleCodeExporter commented 9 years ago

Can you try r500 (http://nightlies.csipsimple.com/trunk/) 
and if you experiment a force close... please send me logs, else it's really 
difficult for me to know where the bug is with just a "It Force close" :)

Original comment by r3gis...@gmail.com on 23 Dec 2010 at 7:58

GoogleCodeExporter commented 9 years ago
HTC EVO, CSipSimple r500.

FC when launching CSipSimple.  No way to get to Help menu.  Tried to
launch app 3 times in a row...
Logs via alogcat..

Good luck with this one.

D/alogcat ( 1168): stopping ...
D/alogcat ( 1168): stopped
D/alogcat ( 1168): starting ...
D/dalvikvm(  651): GC_EXPLICIT freed 2376 objects / 233544 bytes in 81ms
V/alogcat ( 1168): save instance
V/alogcat ( 1168): paused
D/Sensors (  103): close_akm, fd=125
D/alogcat ( 1168): stopping ...
D/alogcat ( 1168): stopped
D/AK8973  (   69): Compass CLOSE 
D/dalvikvm(  685): GC_FOR_MALLOC freed 3488 objects / 202392 bytes in 42ms
D/AndroidRuntime(  685): Shutting down VM
W/dalvikvm(  685): threadid=1: thread exiting with uncaught exception 
(group=0x400259f8)
W/Rosie   (  225): mAddHtcWidgetByOtherActivity = false, 
mIsOpenSlideWhenLeaveLaunch = true
I/Process (  685): Sending signal. PID: 685 SIG: 9
E/ActivityManager(  103): fail to set top app changed!
W/Process (  103): Unable to open /proc/685/status
D/dalvikvm( 1188): GC_FOR_MALLOC freed 3015 objects / 181824 bytes in 33ms
D/AndroidRuntime( 1188): Shutting down VM
W/dalvikvm( 1188): threadid=1: thread exiting with uncaught exception 
(group=0x400259f8)
W/Rosie   (  225): mAddHtcWidgetByOtherActivity = false, 
mIsOpenSlideWhenLeaveLaunch = true
I/Process ( 1188): Sending signal. PID: 1188 SIG: 9
E/ActivityManager(  103): fail to set top app changed!
I/BatteryStatsImpl(  103): notePhoneSignalStrengthLocked: 4->3
D/dalvikvm( 1198): GC_FOR_MALLOC freed 3045 objects / 182992 bytes in 33ms
W/Rosie   (  225): mAddHtcWidgetByOtherActivity = false, 
mIsOpenSlideWhenLeaveLaunch = true
D/AndroidRuntime( 1198): Shutting down VM
W/dalvikvm( 1198): threadid=1: thread exiting with uncaught exception 
(group=0x400259f8)
I/ConnLib (  496): Enter network idle mode
I/ConnLib (  496): Enter network idle mode
I/Process ( 1198): Sending signal. PID: 1198 SIG: 9
E/ActivityManager(  103): fail to set top app changed!
D/LocationManagerService(  103): CdmaCellLocation Available
D/dalvikvm(  103): GC_EXPLICIT freed 34284 objects / 1713728 bytes in 110ms
D/NativeCrypto(  103): Freeing OpenSSL session
D/LocationMasfClient(  103): getNetworkLocation(): Returning cache location 
with accuracy 504.0
D/NativeCrypto(  103): Freeing OpenSSL session
D/AK8973  (   69): Compass Start
D/Sensors (  103): open_akm, fd=93
D/alogcat ( 1168): stopping ...
D/alogcat ( 1168): canceling periodic saves
V/alogcat ( 1168): started
V/alogcat ( 1168): resumed
D/alogcat ( 1168): starting ...
W/Rosie   (  225): mAddHtcWidgetByOtherActivity = false, 
mIsOpenSlideWhenLeaveLaunch = true

Original comment by pgrayb...@gmail.com on 23 Dec 2010 at 8:41

GoogleCodeExporter commented 9 years ago
r500 works on the n1 :) Plus I can confirm that voicemail notification is in 
fact working as well.

Original comment by gervais....@gmail.com on 23 Dec 2010 at 9:01

GoogleCodeExporter commented 9 years ago
@pgraybash : o_O ... I guess that the crash happen when you get : "fail to set 
top app changed!". I've never seen this kind of error. Normally we get an 
entire stack trace. 
And here even more strange the error in log seems to come from ActivityManager 
& dalvik (and maybe also Rosie, the HTC customization of the home).

Did you try to reboot?
And the FC is actually a force close (only one option) or a ANR (Application 
Non Responding : where you can choose wait/Force close)?

Original comment by r3gis...@gmail.com on 23 Dec 2010 at 9:32

GoogleCodeExporter commented 9 years ago
Rebooted prior to taking log. It was only a fc. No wait option.

Original comment by pgrayb...@gmail.com on 23 Dec 2010 at 10:36

GoogleCodeExporter commented 9 years ago
Well this is interesting.
R502 seems to work fine.

Original comment by pgrayb...@gmail.com on 24 Dec 2010 at 4:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
R502 working on Milestone. MWI working. Keypad gets sometimes irresponsive (eg. 
when you want to hang up a conversation) or bring it up in order to dial some 
DTMF. This happened in earlier releases but I feel it more noticeable now. The 
native phone keypad works ok.

Original comment by mau...@gmail.com on 24 Dec 2010 at 4:18

GoogleCodeExporter commented 9 years ago
Hi, since the last release I'm seeing fake voicemail notifications from 
sip.mydivert.com. Trying to call reports me HTTP 404 error while connecting to 
null@sip.mydivert.con. Any ideas?

Original comment by seva.lap...@gmail.com on 27 Aug 2012 at 12:39

GoogleCodeExporter commented 9 years ago
The sip server has probably weird management of voice mail notification.

You can disable it by :
Switch to expert account wizard (see 
http://code.google.com/p/csipsimple/wiki/ExpertSettingMode?wl=en#Account_setting
s)
Edit the account and disable the option "Subscribe MWI"

Original comment by r3gis...@gmail.com on 27 Aug 2012 at 2:02