One extension, two phones, only most recently booted rings


(Breed) #1

Encountering an interesting issue: I used the gui to place one extension on two different endpoints (both Grandstream 2135s). Only the most recently booted endpoint rings and if that one is unplugged, the other still does not ring until it is rebooted and becomes the ‘most recent.’

I have another extension that is on two endpoints and calls ring both with no problem, but one of them in that case was set up from from the endpoint’s web interface and the other was set up in the gui for FreePBX (for other reason apart from having the same extension on two endpoints). We want to not have to split the setup process like this in cases that require the same extension ringing in multiple offices/buildings and so want to just use the gui.

Is there something particular to setting up one extension on two different endpoints in the FreePBX gui that I’m missing to cause this ‘only most recently booted rings’ thing?


(Lorne Gaetz) #2

If this is a chan_sip extension you are limited to a single registered device. If it’s a pjsip extension, you need to modify the ‘max contaxts’ parameter on the Advanced tab to a value equal or higher than the max number of registered devices.


(Breed) #3

Thanks for your reply. I should have included that it is pjsip, not chansip. The max contacts is set correctly. (In fact, I’m not sure I could set the extension up on two endpoints in the gui at all until that was changed, but I can confirm that the setting is greater than…)


(Jeremy Lizzotte) #4

Is this hosted or on premise? Do you have any sort of SIP-ALG router setup that the extensions register to? Don’t leave much info to go on for accurate troubleshooting.


(Breed) #5

Happy to provide more info: It is on-prem, phones register directly with Freepbx locally.


(Dave Burgess) #6

Did you try this suggestion. What you are describing is exactly what happens when you leave the max contacts option set to the default (1).


(Jared Busch) #7

Is it calling the last booted or the first AOR? Because this is a known bad behavior of the dialplan where it was not updated to handle PJSIP.

I just submitted a fix to the parking module because it was not dialing all AOR when a parked call timed out. See this thread for reference: PJSIP extension with 2 contacts; parked call returns to wrong device after timeout


(Breed) #8

That suggestion was already confirmed in place here “Thanks for your reply. I should have included that it is pjsip, not chansip. The max contacts is set correctly.” Please see copy/paste below of text directly from gui ‘Advanced’ page for the extension in question:

Dial: PJSIP/4—
Mailbox :
Voicemail Extension:
Account Code:
Max Contacts: 5
Media Use Received Transport: Yes No


#9

After changing Max Contacts, try restarting Asterisk. Depending on some other settings, pjsip won’t pick up the change without a restart.


(Breed) #10

Will try this and read sorvani’s thread (new to this so not immediately knowing what AOR is.)
But first the restart.


(Tom Ray) #11

This applies to the transport sections only. While they support being reloaded it can mess with calls, etc so it’s recommended to not allow them to reload. Everything else in regards to Endpoint, Aor, and other sections just require PJSIP to be reloaded not restarted.


(Breed) #12

Restart did not address the issue. Ring behavior remains the same. I ran the command in the referenced thread. Unlike the example in your reply there, mine shows that Max Contacts is set to 5, but there is only one contact listed (yours showed 3 of max 4) despite both endpoints being up and showing the account on their respective Line Keys. An argument for last booted rather than first AOR?


(Breed) #13

Also, if it matters, the account on the non-ringing, not showing in contacts endpoint is registered enough to function for outbound calls.


(Jared Busch) #14

Then you set things up wrong in the phones. If there is no AOR, the phone is not actually registered like you think it is.


#15

Asterisk does not require registration for outgoing calls. It challenges for authentication on each INVITE received.


(Tom Ray) #16

There is only one AOR, user@domain, there can be multiple contacts for an AOR but the Account of Record is the account not who is registered to it. There is also no “last booted” it would be “last registered” as in the device that sent the last REGISTER request.

Registration only applies to inbound requests to the phone. Outbound calls auth per call so as long as the auth is correct, no registration is required.

At this point you’re going to need to show these REGISTERs from the phone and what is happening. So you’ll need to SSH into the system and do

  1. asterisk -r
  2. pjsip set logger on
  3. Make each device register
  4. Pastebin the results of the output and give us the link.

(Breed) #17

Thank you all. I’m getting helpful corrections to my terminology as well.

Blaze, I will follow your instructions for showing REGISTERs for these devices, but it is likely to be Monday due to pre-scheduled items for the rest of the day.

Thanks again.


(Breed) #18

Last week got away from me. Below is the pastebin link for the pjsip logs for extension 4414 (the extension I discovered my issue on). The calls from 72xxxxxx16 were to confirm which handset rang after booting. The fist was at 10.220.214.255 after that device restarted. The second was at 10.220.213.255 after that one restarted. In each case, the handset that most recently restarted was the one that rang.

https://pastebin.com/iFdStvjb - link expires in one month.