Skip to content

feature: retry TCP/TLS for in-dialog messages #782

@sergey-safarov

Description

@sergey-safarov

We make failover tests using TCP protocol. Test schema

uac -> Kamailio SIP proxy -> uas

Where Kamailio SIP proxy is two nodes HA cluster with virtual IP configured.

We turn off "active" Kamailio in the middle of the test. Then, the virtual IP address is migrated to the "backup" node.
On the next step, uac sends a BYE message and receives a TCP reset because this connection is not established on the backup node.

Example in the attached tcp-reset.pcap.gz

After TCP reset, SIPp generate an error

Error on TCP connection, remote peer probably closed the socket: Connection reset by peer

To complete the failover test, the TCP connection to the "backup" Kamailio node needed to be reestablished, and the BYE message needed to be resent.

Could you add a feature like

-realible-connection-retry - reestablish connection for reliable transport (example TCP/TLS) and resend last message. Useful for failover test when connection needs to be established to the backup node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions