[asterisk-bugs] [JIRA] (ASTERISK-30069) Asterisk keeps qualifying after contact expiry

Yury Kirsanov (JIRA) noreply at issues.asterisk.org
Tue May 17 12:59:40 CDT 2022


Yury Kirsanov created ASTERISK-30069:
----------------------------------------

             Summary: Asterisk keeps qualifying after contact expiry
                 Key: ASTERISK-30069
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30069
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: pjproject/pjsip
    Affects Versions: 18.12.0, 18.7.0
         Environment: Ubuntu 20.04.4LTS
            Reporter: Yury Kirsanov
            Severity: Major


We have Asterisk server that acts as a registrar and a SIP device that connects to Asterisk via a SIP proxy that adds Path header to stay in between Asterisk and SIP device.

After successful registration if SIP device has disconnected without sending Unregister SIP packet with Expiry=0 Asterisk would keep qualifying that device forever.

'pjsips show contacts' show that contact is removed as well as 'database show'. Also logs show that contact has been removed due to expirty but still SIP proxy receives SIP OPTIONS packets from Asterisk.

Here's output of 'pjsip set logger host <sip_proxy>':
```
[May 18 03:57:10] <--- Transmitting SIP request (519 bytes) to UDP:X.X.X.X:5060 --->
[May 18 03:57:10] OPTIONS sip:XXXXXX at X.X.X.X:62024 SIP/2.0
[May 18 03:57:10] Via: SIP/2.0/UDP X.X.X.X:5060;rport;branch=z9hG4bKPj73d001de-73b5-445c-895e-2d492e876c25
[May 18 03:57:10] From: <sip:XXXXXX at X.X.X.X>;tag=43bd3567-53ed-46b5-8ddf-b2c5bddb4042
[May 18 03:57:10] To: <sip:XXXXXX at X.X.X.X>
[May 18 03:57:10] Contact: <sip:XXXXXX at X.X.X.X:5060>
[May 18 03:57:10] Call-ID: b1a62aed-8b66-40b4-8d1d-6b1f6718318c
[May 18 03:57:10] CSeq: 27361 OPTIONS
[May 18 03:57:10] Supported: path
[May 18 03:57:10] Route: <sip:X.X.X.X;lr;received=sip:X.X.X.X:62024%3btransport%3dwss>
[May 18 03:57:10] Max-Forwards: 70
[May 18 03:57:10] User-Agent: Agent
[May 18 03:57:10] Content-Length:  0
```



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list