Ticket #1667 (closed Patches: fixed)

Opened 2 years ago

Last modified 2 years ago

patch for mailbox not being filled in deviceanduser mode

Reported by: naftali5 Assigned to: RobThomas
Priority: major Milestone: 2.2
Component: Core - Users/Devices Version: 2.2
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

posted already under the bug #1361, but figured i should open a patch.

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);
                        }

Change History

01/10/07 14:42:09 changed by RobThomas

  • engine set to Asterisk <1.2.
  • owner set to RobThomas.
  • engine_version changed.
  • svn_rev changed.

Thanks, naftali5.. Will apply it shortly.

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

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

Thanks, naftali5. Applied in r3584

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads