Skip to content

TLS disconnect triggers immediate re-register, ignoring 120s backoff #68

@mikaelwills

Description

@mikaelwills

It looks like the sdk, seeing a ConnectionTerminated is forcing a refresh and ignoring the backoff?
Im seeing a spam of my logs where its retrying instantly over and over

  142952.728 - Registration error 606... retrying in 120 seconds.
  142952.728 - ConnectionTerminated seen for flow...
  142952.728 - forceRefresh connTerminated:1 expires:0 netSwitch:0
  142952.728 - requesting refresh of ClientRegistration
  142952.728 - TX 'Req REGISTER/cseq=2091'  ← Immediate retry, ignoring 120s backoff

I think thats happening is:

  1. Avaya sends 606 response
  2. Avaya closes TLS connection (server behavior)
  3. Siprix sees ConnectionTerminated event
  4. UserAgent.cxx:533 processes it with refresh:1
  5. UserAgentRegistration.cxx:82 calls forceRefresh with connTerminated:1
  6. ClientRegistration.cxx:343 immediately requesting refresh - bypassing the 120 second timer
  7. Loop repeats ~every 500ms

IwSip.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions