Author Topic: Embedded Voicemail Attachments  (Read 1468 times)

Offline ralph

  • Mitel Forums Admin
  • Hero Member
  • *****
  • Posts: 5767
  • Country: us
  • Karma: +469/-0
  • Published Author: http://amzn.to/2dcYSY5
    • View Profile
Embedded Voicemail Attachments
« on: January 12, 2017, 02:43:14 PM »
Let me bounce this off of everyone.
I have a customer that wants to receive emails that let them know they have a voice mail but they do not want to get the Wav files.
I'm pretty sure this can't be done natively but perhaps I'm wrong. Never been asked to do that before.
Has anyone else tried to do this?
Apparently their email server will block the entire email if it sees the attachment but wont just strip it out.

I'm thinking there may be an option to do it by sending to an internal linux server first, strip out the wave and then pass it on.
Anyone interested in hiring out to program that?  (I don't know if that's an option for the customer or not)

Ralph


Offline petr.necas

  • Sr. Member
  • ****
  • Posts: 393
  • Country: cz
  • Karma: +8/-0
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #1 on: January 13, 2017, 04:39:06 AM »
Hi Ralph,
    what can be done is create a service that will periodically watch the /vmail/d/vm/ folder and if there appears any new *.vox file then is sends an e-mail.

Petr

Offline ralph

  • Mitel Forums Admin
  • Hero Member
  • *****
  • Posts: 5767
  • Country: us
  • Karma: +469/-0
  • Published Author: http://amzn.to/2dcYSY5
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #2 on: January 13, 2017, 07:17:53 AM »
Petr,
Wow.  I've never heard of that being done.
I wouldn't have clue how to do it.
Can you explain a little?

Ralph

Offline petr.necas

  • Sr. Member
  • ****
  • Posts: 393
  • Country: cz
  • Karma: +8/-0
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #3 on: January 13, 2017, 09:25:59 AM »
Hi Ralph,
        it's quite simple, via FTP you connect to ftp://system:@<icp_ip>/vmail/d/vm/grp/<extension>/* and watch the new files (the files actually appearing are for example V5878e171.001, V5878e22c.002 but are in vox format). I already did some windows Service that is periodically downloading some files from the PBX but I think a python script running on MSL can also be created to do the same. I hope it helped.

Petr

Offline ralph

  • Mitel Forums Admin
  • Hero Member
  • *****
  • Posts: 5767
  • Country: us
  • Karma: +469/-0
  • Published Author: http://amzn.to/2dcYSY5
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #4 on: January 13, 2017, 10:09:12 AM »
What would stop the system from sending the wav file as an attachment before the FTP client was able to delete them?
I'm only looking to stop the system from sending the attachments but want the headers and I still want to keep the actual VM so people can dial in an pick them up.

Ralph


Offline petr.necas

  • Sr. Member
  • ****
  • Posts: 393
  • Country: cz
  • Karma: +8/-0
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #5 on: January 13, 2017, 11:08:24 AM »
No, you don't send any emails from the ICP any more, but let the script to send the e-mail instead. The script will not delete any files. You only have to give the script what e-mail address to use for each extension.

To just remove the attachments, I think you can use hMailServer to do so, this link may help you https://www.hmailserver.com/forum/viewtopic.php?t=18026

Petr


Offline petr.necas

  • Sr. Member
  • ****
  • Posts: 393
  • Country: cz
  • Karma: +8/-0
    • View Profile
Re: Embedded Voicemail Attachments
« Reply #6 on: January 14, 2017, 02:41:55 PM »
Hi Ralph, here is the script that would do what you need, you just have to specify the following values that apply in your environment.

icp_ip = "<ip_address>"
icp_username = "system"
icp_password = "<password>"

smtp_ip = "<ip_address>"
smtp_from_address = "user@example.com"

addresses = {
                "412": "user412@example.com",
                "413": "user413@example.com",
            }

You can change how often the script checks the VM folders here:

while(True):
    checker.CheckMessages()
    time.sleep(30)

I tested the script under Windows 10 with Python 3.6.

Petr


 

Sitemap 1 2 3 4 5 6 7 8 9 10