Ticket #2515 (closed Bugs: duplicate)

Opened 1 year ago

Last modified 5 months ago

ARI does not work correctly when trying to listen voicemail messages

Reported by: olivier1010 Assigned to: pkaplan
Priority: minor Milestone: 2.5
Component: ARI Version: 2.3.1
Keywords: Cc:
Confirmation: Need Feedback SVN Revision (if applicable):
Backend Engine: Asterisk 1.2.x Backend Engine Version:

Description

Very often, it is not possible to open the audio window to listen a voicemail message.

We got the audio window with an error message saying that we don't have the text/html plugin.

After some investigations, i'm not 100% sure but i think that this problem is related to an ARI php crypting problem.

I think that sometimes, the crypting function does not work correctly and return garbage characters.

There are two solutions :

1) Bypass the crypting function (should be quite simple to do), this function is in

/var/www/html/recordings/includes/crypt.php

2) Replace it with a more robust one

Olivier

Change History

11/25/07 01:07:01 changed by ThomasHawk2_

I have exactly the same problem

11/25/07 09:13:05 changed by olivier1010

After disabling the call to the crypt and decrypt function calls (Crypt class), the problem effectively disappear.

So it was really related to a bugged crypt or decrypt function.

The modifications :

in the folder

/var/www/html/recordings/misc

in file audio.php

replace line

$path = $crypt->decrypt($_GETrecording?,$ARI_CRYPT_PASSWORD);

by

$path = $_GETrecording?;

in file recording_popup.php

replace line

$path = $crypt->encrypt($_GETrecording?,$ARI_CRYPT_PASSWORD);

by

$path = $_GETrecording?;

This should solve the problem for you as well, and other users in our cases (i've found with google a couple of other users having the same problem).

Be carefull, the URI is transmitted unencryted, but in most cases this should not be a problem as most of the time we are on the local net or we use a VPN link from remote sites.

If someone familiar with php and crypting could replace or correct the bogged crypt class this would be better.

I tried to contact the author of ARI without success.

Olivier.

11/25/07 09:15:17 changed by olivier1010

be carefull i fogotted to use the code formatting in my post so you'll have to correct the syntax before using it.

02/07/08 08:42:01 changed by p_lindheimer

  • priority changed from major to minor.
  • confirmation changed from Unreviewed to Need Feedback.
  • milestone changed from Cut Line to 3.0.

we would prefer if a fix was provided to allow this to be encrypted. Just removing the encryption is not a preferred way to address this.

(follow-up: ↓ 6 ) 02/07/08 14:18:30 changed by olivier1010

I spent a couple of hours trying to find a way to do this, but this is too complicated compared to my programming skills.

The bad thing is that each core upgrade actually overwrite the modifications i've made.

is there a way to forbid modifications for a specific file ?

(in reply to: ↑ 5 ) 04/08/08 13:12:49 changed by sasargen

see #2565 for a patch which maintains encryption.

07/01/08 16:50:58 changed by lazytt

  • status changed from new to closed.
  • resolution set to duplicate.

closing in favor of #2565

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads