ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unsolved Changing extension mapping in Endpoint Manager Asterisk

    IT Discussion
    freepbx 15 yealink endpoint manager asterisk
    4
    9
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      goodtm
      last edited by

      Hello. I've been looking everywhere, but I haven't found a solution to my question yet. We use the Endpoint Manager module. In it, you can create mapping of an extension number from an asterisk with IP phones (Extension Mapping). Everything works in this part. But if it is necessary to change the extension number in the IP phone, difficulties begin. I did not find in the module how to do a simple change of extension numbers in the phone. So far, I am changing extensions as follows - I delete the existing mapping of the extension number with the phone. I add a new mapping of the extension number to the phone, and reboot the phone. But to restart the IP phone, you need to do a lot of actions. You need to go to the phone's web interface and reboot from there, you can reboot with a command from asterisk, you can also turn off the power and turn on the phone again. And if there are a lot of phones, how many extra actions will you have to do? Perhaps there is a correct way to change the old extension number mapping to a new number in the Endpoint Manager module, without unnecessary actions to manually restart the phone? IP phones Yealink

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Endpoint Manager is available in many PBXs. Is there a specific one? Asterisk is the kernel of a PBX, but not a stand alone product.

        My guess is you mean FreePBX, not Asterisk? FreePBX has an Endpoint Manager. But so does "every" PBX built off of Asterisk. So we'd need to know which one it is to know how to help.

        G 1 Reply Last reply Reply Quote 0
        • G
          goodtm @scottalanmiller
          last edited by

          @scottalanmiller Yes, FreePBX 15.0.23, EndPoint Manager15.0.48.1

          1 Reply Last reply Reply Quote 1
          • G
            goodtm
            last edited by

            Forgot to add. After adding a new extension mapping in the Endpoint Manager module and pressing send to phone, the phone does not receive a new extension. The phone remains with the old extension until the phone is rebooted, or you can manually download the configuration via autoprovision via the phone web interface

            1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch
              last edited by

              Your problem is a lack of understanding how EPM works.

              When you use the update device button, a SIP NOTIFY message is sent to the extension.

              Obviously, if you delete a mapping for Extension 123, but do not reset the phone itself, the phone will continue to be provisioned as extension 123.

              When you reuse the MAC address for extension 124, which is not currently registered, there is no endpoint to send the SIP NOTIFY to.

              Basically, EPM is using this asterisk command (assuming you have a Yealink phone) to tell extension 124 to check its config. But since 124 is not yet registered, nothing answers the message.

              pjsip send notify reboot-yealink endpoint 124
              

              There are various contexts for different manufacturers
              e9847467-ca81-4f14-bf47-ce83660c0756-image.png

              You can manually tell extension 123 to check it's config (which will make the device check, and pull the new config file with extension 124.

              86890e19-ce1d-47ff-a563-48fb9a467dde-image.png

              6b470288-6a06-4b4b-bfc4-9eb36cf50784-image.png

              You can see it not work since I have no 124 on this PBX.
              7a2bb343-b55a-4cc2-8c5b-5d51d19b32de-image.png

              But for an extension that exists...
              dd4cfbf4-a34e-4bf8-9e02-6e7c8dba7954-image.png

              You can see the notify message in sngrep
              a6b7cf9c-265e-4458-a6cc-1fb93ae8dab6-image.png
              b34a30eb-c596-47ae-82dc-58e492e9944f-image.png

              G 2 Replies Last reply Reply Quote 1
              • G
                goodtm @JaredBusch
                last edited by

                @JaredBusch Thanks for the help. Yes, I'm not quite familiar with the freepbx and endpoint manager settings yet. But I guessed that would be the result. It turns out I did everything right. It was only necessary to get a professional answer to make sure that I did not miss the right solution to my question. I found a solution to reboot phones via sip-notify earlier on this forum.

                1 Reply Last reply Reply Quote 0
                • G
                  goodtm @JaredBusch
                  last edited by

                  @JaredBusch Is it necessary to specify the [endpoint] command? It works for me even without specifying this command [endpoint]. For example, sip notify reboot-yealink 4287 or sip notify restart-yealink 4287 (depending on what I specified in the configuration file)

                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @goodtm
                    last edited by JaredBusch

                    @goodtm said in Changing extension mapping in Endpoint Manager Asterisk:

                    @JaredBusch Is it necessary to specify the [endpoint] command? It works for me even without specifying this command [endpoint]. For example, sip notify reboot-yealink 4287 or sip notify restart-yealink 4287 (depending on what I specified in the configuration file)

                    You are using sip not pjsip. The commands are different.

                    That said, the chan_sip driver is dead, and has been for years now. You need to switch to using the chan_pjsip driver.

                    1 Reply Last reply Reply Quote 0
                    • K
                      krzykat
                      last edited by

                      Correct - you should be using PJsip. Also as far as changing extensions, you can run into the same issue even if you use the same extension number but you change the channel driver from SIP to PJSIP. This is how I've accomplished the task for remote phones that you can't touch. From your EPM, issue a reboot. Then real quick, you change the extension to use PJSIP, go to EPM, and then do a rebuild. If you do it properly, the phone will then grab the new settings and reconfigure itself and work just fine. You can of course do the same thing if you are changing the extension number on it.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post