Voicemail Message - How t know how many are read & how many are unread in Inbox
Dear All, Just wondering whether there is any way to know how many voice messages are read or unread in New & SAVED box. A help will be highly appriciated. Regards Sharad
Just wondering whether there is any way to know how many voice messages are read or unread in New & SAVED box.
Not sure in "which" way you want to know this. From fs_cli you can try:
vm_list user@domain xml
This gives you an xml-output of all messages of this user - saved/read mails have an read_epoch-value, unread messages have a read_epoch-value of 0, e.g.: freeswitch@internal> vm_list 200@192.168.0.4 xml <voicemail> <message> <created_epoch>1307630009</created_epoch> <read_epoch>0</read_epoch> <username>200</username> <domain>192.168.0.4</domain> <folder>inbox</folder> <path>/usr/local/freeswitch/storage/voicemail/default/192.168.0.4/200/msg_60c27a70-92a5-11e0-8b2f-fd7505ade349.wav</path> <uuid>60c27a70-92a5-11e0-8b2f-fd7505ade349</uuid> <cid-name>Jim Doe</cid-name> <cid-number>300</cid-number> </message> <message> <created_epoch>1307348316</created_epoch> <read_epoch>1307629941</read_epoch> <username>200</username> <domain>192.168.0.4</domain> <folder>inbox</folder> <path>/usr/local/freeswitch/storage/voicemail/default/192.168.0.4/200/msg_775fa510-9015-11e0-88e7-fd7505ade349.wav</path> <uuid>775fa510-9015-11e0-88e7-fd7505ade349</uuid> <cid-name>John Doe</cid-name> <cid-number>100</cid-number> </message> </voicemail> freeswitch@internal> hth Christian
vm_boxcount user@domain|[new|saved|new-urgent|saved-urgent|all]] freeswitch@internal> vm_boxcount 2002@192.168.xx.xx|all 5:0:0:0 -Robert -----Original Message----- From: Christian Benke [mailto:benkokakao@gmail.com] Sent: Thursday, June 09, 2011 7:33 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Voicemail Message - How t know how many are read & how many are unread in Inbox
Just wondering whether there is any way to know how many voice messages are read or unread in New & SAVED box.
Not sure in "which" way you want to know this. From fs_cli you can try:
vm_list user@domain xml
This gives you an xml-output of all messages of this user - saved/read mails have an read_epoch-value, unread messages have a read_epoch-value of 0, e.g.: freeswitch@internal> vm_list 200@192.168.0.4 xml <voicemail> <message> <created_epoch>1307630009</created_epoch> <read_epoch>0</read_epoch> <username>200</username> <domain>192.168.0.4</domain> <folder>inbox</folder> <path>/usr/local/freeswitch/storage/voicemail/default/192.168.0.4/200/msg_60c27a70-92a5-11e0-8b2f-fd7505ade349.wav</path> <uuid>60c27a70-92a5-11e0-8b2f-fd7505ade349</uuid> <cid-name>Jim Doe</cid-name> <cid-number>300</cid-number> </message> <message> <created_epoch>1307348316</created_epoch> <read_epoch>1307629941</read_epoch> <username>200</username> <domain>192.168.0.4</domain> <folder>inbox</folder> <path>/usr/local/freeswitch/storage/voicemail/default/192.168.0.4/200/msg_775fa510-9015-11e0-88e7-fd7505ade349.wav</path> <uuid>775fa510-9015-11e0-88e7-fd7505ade349</uuid> <cid-name>John Doe</cid-name> <cid-number>100</cid-number> </message> </voicemail> freeswitch@internal> hth Christian
On 9 June 2011 19:43, Robert Hadley <robert.hadley@teotech.com> wrote:
vm_boxcount user@domain|[new|saved|new-urgent|saved-urgent|all]]
freeswitch@internal> vm_boxcount 2002@192.168.xx.xx|all 5:0:0:0
Hmm, i thought vm_boxcount is broken resp. means something different - only displays 0 on the mailbox above(While there is 1 new and 1 saved msg, as displayed by vm_list) :-/
Thanks for your reply.. vm_boxcount is not helping me. I think I did not explain my query correctly. Let me explain again - There are some messages in INBOX of a user. Some of them are read & some of them are new which are not read. As of now, FS marks a message as SAVED message when user dials 2 while listening or does not dial anything. But in my case, neither user dialed 2 to save the msg, nor he waited for auto save. rather waiting, user pressed the corresponding DTMF for next listening message. means user has read but this mesaage is not saved. So my query is - Is there any way to differentiate between READ / UNREAD messages while messages are INBOX only. Hope it is clear now. Thanks & regards Sharad ----- Original Message ----- From: "Christian Benke" <benkokakao@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 10, 2011 4:22 AM Subject: Re: [Freeswitch-users] Voicemail Message - How t know how many areread & how many are unread in Inbox
On 9 June 2011 19:43, Robert Hadley <robert.hadley@teotech.com> wrote:
vm_boxcount user@domain|[new|saved|new-urgent|saved-urgent|all]]
freeswitch@internal> vm_boxcount 2002@192.168.xx.xx|all 5:0:0:0
Hmm, i thought vm_boxcount is broken resp. means something different - only displays 0 on the mailbox above(While there is 1 new and 1 saved msg, as displayed by vm_list) :-/
So my query is - Is there any way to differentiate between READ / UNREAD messages while messages are INBOX only.
Have you checked if the "read_epoch"-parameter in the voicemail_msgs-table in voicemail_default.db or your odbc-db is set to a "real" value when this happens(Also displayed above with vm_list)? You could then simply query the db (e.g. "select count(*) from voicemail_msgs where read_epoch>0;") instead of using the commands above.
Thanks for reply, Yes, I have checked this. The value of read_epoch is changed only if message is saved. If message is not saved (only listen), than it remain 0 only. Plz advice further.. Regards Sharad ----- Original Message ----- From: "Christian Benke" <benkokakao@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 10, 2011 11:33 AM Subject: Re: [Freeswitch-users] Voicemail Message - How t know how manyareread & how many are unread in Inbox
So my query is - Is there any way to differentiate between READ / UNREAD messages while messages are INBOX only.
Have you checked if the "read_epoch"-parameter in the voicemail_msgs-table in voicemail_default.db or your odbc-db is set to a "real" value when this happens(Also displayed above with vm_list)? You could then simply query the db (e.g. "select count(*) from voicemail_msgs where read_epoch>0;") instead of using the commands above.
Plz advice further..
Sorry, no idea then. But i assume, if a user just listens to a message but doesn't archive it right away, he want's to listen to it again at a later time, so the message should remain "new" - therefore the behaviour you report is not wrong imho(not updating "read_epoch" is not beautiful though).
Ok Thanks for all your efforts.. Best Regards Sharad ----- Original Message ----- From: "Christian Benke" <benkokakao@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 10, 2011 2:14 PM Subject: Re: [Freeswitch-users] Voicemail Message - How t know howmanyareread & how many are unread in Inbox
Plz advice further..
Sorry, no idea then. But i assume, if a user just listens to a message but doesn't archive it right away, he want's to listen to it again at a later time, so the message should remain "new" - therefore the behaviour you report is not wrong imho(not updating "read_epoch" is not beautiful though).
participants (3)
-
Christian Benke
-
Robert Hadley
-
sharad