[OpenSIPS-Users] Push Notification - lookup not returning 2

John Quick john.quick at smartvox.co.uk
Thu Jul 29 16:07:21 EST 2021


Liviu,

Mid-registrar mode = 1

Here are all the modparam entries:
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "contact_id_insertion", "ct-username")
modparam("mid_registrar", "outgoing_expires", 1800)
modparam("mid_registrar", "min_expires", 60)
modparam("mid_registrar", "default_expires", 1800)
modparam("mid_registrar", "max_expires", 3600)
modparam("mid_registrar", "tcp_persistent_flag", "TCP_PERSIST")
modparam("mid_registrar", "received_avp", "$avp(regrcvd)")
modparam("mid_registrar", "pn_enable", true)
modparam("mid_registrar", "pn_providers", "fcm")
modparam("mid_registrar", "pn_skip_pn_interval", 6)

John Quick
Smartvox Limited


-----Original Message-----
From: Liviu Chircu <liviu at opensips.org> 
Sent: 29 July 2021 15:40
To: john.quick at smartvox.co.uk; OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Push Notification - lookup not returning 2

Hi John,

On 28.07.2021 19:35, John Quick wrote:
> Using version 3.1.3. OpenSIPS is acting as a mid-registrar proxy.
Which mid-registrar mode are you using? (0, 1 or 2)
> One thought I had: Should mid_registrar_lookup() always return 2 for a 
> device that has Flags = 4?

If your SIP user only has a single, PN-enabled device registered, then
yes: I would expect it to always return 2.  So we may definitely be dealing with a bug here - my current idea is to attempt to reproduce it in a lab environment.

Best regards,

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com OpenSIPS Summit 2021 Distributed | www.opensips.org/events




More information about the Users mailing list