I know about the expire, I just want to ignore them because I only care
when new devices register, I've tried the contact issue but it didn't help,
both phones came in with the same contact.
On Wed, Jul 7, 2021, 11:31 Alexey Kazantsev via Users <
users@lists.opensips.org> wrote:
> Hello,
>
> mayb
Hello,
maybe the second parameter (‘contact’) of the ‘is_contact_registered’ function
[1] could be useful?
And speaking about Expires: 0 — according to SIP RFC [2] it’s absolutely normal,
it means tat a device disables its registration, this is done either by sending
Expires: 0 SIP header,
or
Hi, I'm trying to run a script when a new sip device registers, I want
that if 2 devices have the same user name it should run the script
when each device registers first time, I added this script to my
REGISTER processing
if (!is_contact_registered("location",,,"$ci") && $hdr(Expires) !="0")
runs