Ticket #1361 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

Mailbox not being setup properly

Reported by: kerryg Assigned to:
Priority: blocker Milestone: 2.2
Component: Voicemail Version: 2.2beta2
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

When creating a new extension, the mailbox is not being created. The mailbox field should contain extension@device and it is currently blank. This prevents MWI from working.

Change History

11/15/06 18:42:53 changed by p_lindheimer

  • owner changed.
  • priority changed from major to blocker.
  • component changed from Core to Voicemail Module.

looks like more carnage from moving voicemail into the hooks code (or is it related to the gui elements as well). Changing to a blocker - this is really bad.

11/20/06 15:24:50 changed by RobThomas

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

Fixed in voicemail 1.5

11/20/06 16:11:42 changed by vgster

  • status changed from closed to reopened.
  • resolution deleted.

It's still not working with 1.5 VM mod, but the other VM settings are saving properly.

11/20/06 16:23:30 changed by RobThomas

  • status changed from reopened to closed.
  • resolution set to fixed.

Thanks, sorry for that. Fixed in VM 1.5.1.

01/05/07 19:05:02 changed by Zildjian26

  • status changed from closed to reopened.
  • resolution deleted.

Not quite fixed: I have FreePBX 2.2.0 with Voicemail module 1.6. When running in deviceanduser mode, a newly created user does not get the mailbox=... line added. I switched to extensions mode, created a new extension with voicemail, and that one extension was fine, but the previously created ones still did not have it added.

01/08/07 11:46:44 changed by

  • milestone deleted.

Milestone 2.2 deleted

01/08/07 11:48:15 changed by vgster

  • milestone set to 2.2.

01/09/07 12:05:12 changed by ShaneB

It is not being noticed because it was working in the older versions. An upgrade will cause the DB and config to retain the correct settings for old extensions. However, new extensions will have this problem.

01/09/07 14:40:30 changed by naftali5

verified bug in frepbx 2.2 only in deviceanduser mode.

mailbox does not get filled in as id@device.

diff attached to fix. please test before committing.

Index: amp_conf/htdocs/admin/modules/core/functions.inc.php
===================================================================
--- amp_conf/htdocs/admin/modules/core/functions.inc.php        (revision 3562)
+++ amp_conf/htdocs/admin/modules/core/functions.inc.php        (working copy)
@@ -777,6 +777,8 @@
                        $keyword = substr($req, 8);
                        if ( $keyword == 'dial' && $data == '' ) {
                                $sipfields[] = array($account, $keyword, 'SIP/'.$account);
+                       } elseif ($keyword == 'mailbox' && $data == '') {
+                               $sipfields[] = array($account,'mailbox',$account.'@device');
                        } else {
                                $sipfields[] = array($account, $keyword, $data);
                        }
@@ -856,6 +858,8 @@
                        $keyword = substr($req, 8);
                        if ( $keyword == 'dial' && $data == '' ) {
                                $iaxfields[] = array($account, $keyword, 'IAX2/'.$account);
+                       } elseif ($keyword == 'mailbox' && $data == '') {
+                               $iaxfields[] = array($account,'mailbox',$account.'@device');
                        } else {
                                $iaxfields[] = array($account, $keyword, $data);
                        }
@@ -936,6 +940,8 @@
                        if ( $keyword == 'dial' && $data == '' ) {
                                $zapchan = $_REQUEST['devinfo_channel'] != '' ? $_REQUEST['devinfo_channel'] : $_REQUEST['channel'];
                                $zapfields[] = array($account, $keyword, 'ZAP/'.$zapchan);
+                       } elseif ($keyword == 'mailbox' && $data == '') {
+                               $zapfields[] = array($account,'mailbox',$account.'@device');
                        } else {
                                $zapfields[] = array($account, $keyword, $data);
                        }

01/09/07 21:35:14 changed by Zildjian26

Tested fix - confirmed OK.

(follow-up: ↓ 12 ) 01/10/07 08:53:33 changed by ShaneB

Fix seems to correct edit function. On add new extension mailbox fields are still missing.

(in reply to: ↑ 11 ) 01/10/07 10:35:38 changed by naftali5

Replying to ShaneB:

Fix seems to correct edit function. On add new extension mailbox fields are still missing.

Please double check. If indeeed, it is still not working, please post versions, and specifics. (deviceanduser or extensions, etc.)

01/10/07 13:10:10 changed by ShaneB

Double checked, its working. I didn't patch right. Working fine now.

01/10/07 13:15:45 changed by naftali5

patch opened #1667

01/20/07 20:49:50 changed by RobThomas

  • status changed from reopened to closed.
  • resolution set to fixed.
  • engine_version changed.
  • svn_rev changed.

Thanks, naftali5. Applied in r3584

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads