Ticket #5656 (closed Bugs: worksforme)

Opened 1 year ago

Last modified 1 year ago

End Point Manager failed from Add an Extension menu

Reported by: arunas_saltis Assigned to: tm1000
Priority: minor Milestone: 2.11
Component: Endpoint Manager (OSS) Version: 2.10-branch
Keywords: Cc:
Confirmation: Need Feedback Distro:
Backend Engine: Asterisk 1.8 Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

When adding new extension and filling out all End Point Manager fields, the incomplete phone configuration file (SIP$mac.cnf) was generated. There is insufficient information about the SIP lines configuration. All other fields (NTP, QoS, etc) are filled correctly. Cisco 7940 and Linksys SPA942 VoIP templates was used. The same problem is and with FreePBX 2.9 version. After adding an extension I found such notices in log files: 2012-Mar-06 22:11:26 /var/www/html/admin/modules/_ep_phone_modules/endpoint/base.php:504 [NOTICE]: Undefined index: line 2012-Mar-06 22:11:26 /var/www/html/admin/modules/_ep_phone_modules/endpoint/base.php:505 [NOTICE]: Undefined index: line 2012-Mar-06 22:11:26 /var/www/html/admin/modules/_ep_phone_modules/endpoint/base.php:506 [NOTICE]: Undefined index: line

Change History

(follow-up: ↓ 2 ) 03/06/12 16:05:58 changed by tm1000

Please specify the version of endpoint manager you are running

(in reply to: ↑ 1 ) 03/07/12 02:07:55 changed by arunas_saltis

Replying to tm1000:

Please specify the version of endpoint manager you are running

PBX End Point Manager version is 2.10.3.7

03/07/12 12:03:53 changed by tm1000

  • confirmation changed from Unreviewed to Need Feedback.

I'm unable to get this to happen. I suggest you update the Cisco brand in Endpoint Manager. If that doesn't work then you need to uninstall epm and reinstall it.

In fact I am almost 100% sure you don't have the newest update to Cisco because lines 504-506 of that file look like this:

'{$server.port.1}' => $this->settingsline?[0]server_port? ); $contents = str_replace(array_keys($replace), array_values($replace), $contents);

Which makes no sense. Please update and check again.

(follow-up: ↓ 5 ) 03/07/12 12:04:23 changed by tm1000

I mean it looks like this:

            '{$server.port.1}' => $this->settings['line'][0]['server_port']
        );
        $contents = str_replace(array_keys($replace), array_values($replace), $contents);

(in reply to: ↑ 4 ) 03/07/12 16:58:32 changed by arunas_saltis

I tried uninstalling Endpoint manager and deleing all directories, which belong to Endpoint manager and after that, I install Endpoint manager again. However, VoIP phone configuration file is still without SIP line configuration. My FreePBX software versions are: Feature Code Admin 2.10.0.3 FreePBX ARI Framework 2.10.0.0 FreePBX Framework 2.10.0.0 Recordings 3.3.11.6 Core 2.10.0.1 Info Services 2.10.0.2 PBX End Point Manager 2.10.3.7 CDR Reports 2.10.0.4 System Dashboard 2.10.0.3 Music on Hold 2.10.0.2 Voicemail 2.10.0.3

Line numbers mismatch in log file is because I tried to figure out problem by myself and add additional line with dbug to print this->settings. I'm sorry for the misrepresentation.

  '{$server.port.1}' => $this->settings['line'][0]['server_port']
        );
        dbug ('Settings is', $this->settings);
        $contents = str_replace(array_keys($replace), array_values($replace), $contents);

The result of dbug is:

'Settings is':

Array
(
    [provision] => Array
        (
            [type] => file
            [protocol] => tftp
            [path] => 10.128.0.80
            [encryption] =>
        )

    [ntp] =>
    [network] => Array
        (
            [dhcp] => 1
            [ipv4] =>
            [ipv6] =>
            [subnet] => 255.255.255.0
            [gateway] =>
            [vlan] => Array
                (
                    [id] =>
                    [qos] =>
                )

            [local_port] => 5060
        )

    [mac] => 00000000000A
)

Also I notice, that if I add another SIP account for the same MAC address for second line, information about first line appears in VoIP configure file, but not for just created second line. Settings array data:

'Settings is':

Array
(
    [provision] => Array
        (
            [type] => file
            [protocol] => tftp
            [path] => 10.128.0.80
            [encryption] =>
        )

    [ntp] =>
    [network] => Array
        (
            [dhcp] => 1
            [ipv4] =>
            [ipv6] =>
            [subnet] => 255.255.255.0
            [gateway] =>
            [vlan] => Array
                (
                    [id] =>
                    [qos] =>
                )

            [local_port] => 5060
        )

    [line] => Array
        (
            [0] => Array
                (
                    [line] => 1
                    [username] => 803
                    [authname] => 803
                    [secret] => password123
                    [displayname] => 803
                    [server_host] => 10.128.0.80
                    [server_port] => 5060
                )

        )

    [mac] => 00000000000A
)

03/07/12 17:20:06 changed by tm1000

Unfortunately I'm unable to help you more unless I have access to your machine through SSH. There is nothing more I can do. If you'd like to provide that information please contact me off list at andrew.nagy(at)the159.com

06/07/12 19:04:20 changed by tm1000

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

Closing this. I never figured out your issue. If you are still having it then please open a new ticket and we can work together on that. I've gone through tons of deployments since then and all of the data comes across as it should.