Filtering messages from a Voicemail system

Moderator: crythias

Locked
ludders
Znuny newbie
Posts: 12
Joined: 13 Sep 2010, 18:55
Znuny Version: 3.0

Filtering messages from a Voicemail system

Post by ludders »

Hi,

We have a technician response system working in the evenings and at weekends, that allows the end user to leave a urgent request for help on a voicemail system. The voicemail system then outdials the technician on duty and delivers the message over a standard telephone call. It also send emails (with the voice call as a WAV attachment) directly to the technician and also now sends an email to OTRS too.

The voicemail email arrives in OTRS as having come from voicemail@ourcompany.co.uk, but I want to change this to the customers own email, so that my agents can reply correctly without having to check and modify each ticket.
Luckily, the telephone number of the caller is inserted into the subject field by the voicemail system.
I have created filters to search for these numbers and change the X-OTRS-CustomerUser header to the Customer user, and it works really well.

Except, when I reply to the ticket it has the new email address for the customer, but also still has the old voicemail@ourcompany.co.uk reply address. Now I can fairly easily remove this manually at the time of replying by clicking on the delete symbol, but it's likely to get forgotten. Also, it means I have to create a separate filter for every customer who might leave a voice message.

Is there a way to remove an address from the list of senders in the postmaster filters, or perhaps better still, has anybody written any scripts that can search the customer user database for telephone numbers and update sender email, customer user and customerID as appropriate (or similar task to act as an example for me).

Thanks

Andy
OTRS 3.3.6 on Centos 6.4 and mySQL 5.1
Locked