This is a generic SIP question (not Digium SIP or PJSIP specific). Is there a sip command that tells an UA (endpoint?) to register with the Asterisk server?
I think UA’s will re-register at regular intervals, but is there a SIP command that can be sent to the UA to tell it to re-register now?
Even is Asterisk doesn’t offer (the user/dialplan) a way to send such a command, I’m just curious if it exists.
I’ve never heard of such a thing, if it did exist it would be something most likely outside of SIP as in order to tell the device to do things over SIP you need to know where the device is… which is the purpose of REGISTER.
That’s not what it tells the phone to do. It sends a SIP OPTIONS request to the endpoint in question, and if it gets ANY SIP response it marks the endpoint as reachable. It’s still up to the remote side to continue to register.
Okay (still learning). If Asterisk sends an OPTIONS request to the endpoint, and that endpoint has not registered yet, does that make it start the registration process? Not sure if that’s part of the sip standard.
(Just FYI, I have a 14 year old Aastra phone that takes many minutes to register when first started. I’m trying to speed this up. But aside from this one phone issue, I’m also interested to learn how this process works)
Ok…getting very theoretical here, but if the endpoint was on a fixed IP, is there anything (SIP message) that could be sent to the endpoint that would cause it to register.
Two comments on this: If it takes so long to start, there could be a problem in the network. In this case, triggering the registration from outside would not help. It would only help to find the cause. Is there a problem with other phones?
If the phone is that old, the firmware is also that old and has correspondingly old, unfixed security problems. Should the phone really be used? (Ok, in an isolated environment and for testing you can do that)
By the way, isolation: Some phones try to contact the manufacturer at startup. I am not familiar with this from Aastra phones, but I do know it from Snom phones, for example. If the (test) network is isolated, the timeout can also come from here.
If the phone has a fixed IP address, Asterisk (PJSIP) can be configured so that no registration is required.
The SIP standard does not intend to trigger registration from outside. However, it is possible that the telephone has other options for initiating registration (maybe some API). But unfortunately I don’t know the Aastra phones well enough.
Specifically, instead of having max contacts in the type=aor section, you have contact, with a URI to access the device. You should also disable registration in the device. Whilst Asterisk won’t be bothered by this, the device may not like failed registrations.
(If you are actually using FreePBX, note that that only provides GUI access to this alternative for “trunks”; it assumes all “extensions” have dynamic addresses. You would have to ask on their forum for ways round this.)
The phone is (old and) unsupported…no more updates etc. I realize the right “solution” is just buy a new phone. But I’m interested in experimenting…wondering if I can make the phone register.
No idea how…but I like a challenge. I was hoping I could send a SIP message saying registration expired or something like that.