Hi, i noticed the strange asterisk behavior when SIP devices try to register.
I have some sip devices which every time when register/re-register first send REGISTER request with expiration:0 (which means unregister) and immediately without waiting for the answer send a new REGISTER request with expiration > 0 (in my case 300).
What’s going wrong is that Asterisk somehow first proceeds the second request and then the first one and the device remains unregistered from Asterisk’s point of view.
Also, the Asterisk console says that the device is unreachable from that moment.
pjsip show contactsdo not show this device anymore.
Sometimes device manages to register, sometimes not, depending on how fast Asterisk handles these requests.
I can not attach my .pcap but i made some screenshots.
I am aware that this sip device also should not send these requests in this way but, Asterisk should handle it in the right order?
Whether there is an option for synchronous request processing?
It may be also caused by UDP transport but currently, i can not switch to TCP.
I am using PJSIP chan.