Skip to content

With a large CPS (~ 100) errors in the logs #256

@a72

Description

@a72

I get this error
msg="TransactionLayer: Unhandled sip response. Possible retransmissions. Set UnhandledResponseHandler" caller=transactionLayer msg="response status=100 reason=Trying transport=UDP source=127.0.0.1:7322"

for UnhandledResponseHandler uses the function

func printResponse(r *sip.Response) {
	slog.Warn("☢️", "response", r)
}
time=2025-09-22T17:00:23.858 level=DEBUG caller=sip.go:45 msg="UDP write to 127.0.0.1:7312 -> 127.0.0.1:7322:\nINVITE sip:123@127.0.0.1:7322 SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1:7312;branch=z9hG4bK.6hkBZkpSlWArZXFM\r\nCall-ID: d9dd09b6-e452-4af7-881b-4c358b769b58\r\nCSeq: 1 INVITE\r\nMax-Forwards: 70\r\nFrom: <sip:321@127.0.0.1>;tag=7EzbmJ\r\nTo: <sip:123@127.0.0.1>\r\nContact: <sip:321@127.0.0.1>\r\nContent-Length: 0\r\n\r\n"
time=2025-09-22T17:00:23.858 level=DEBUG caller=transaction_client_tx.go:75 msg="Client transaction initialized" caller=TransactionLayer tx=z9hG4bK.6hkBZkpSlWArZXFM__INVITE
time=2025-09-22T17:00:23.858 level=DEBUG caller=sip.go:35 msg="UDP read from 127.0.0.1:7312 <- 127.0.0.1:7322:\nSIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 127.0.0.1:7312;branch=z9hG4bK.6hkBZkpSlWArZXFM\r\nFrom: <sip:321@127.0.0.1>;tag=7EzbmJ\r\nTo: <sip:123@127.0.0.1>\r\nCall-ID: d9dd09b6-e452-4af7-881b-4c358b769b58\r\nCSeq: 1 INVITE\r\nContact: <sip:321@127.0.0.1>\r\nContent-Length: 0\r\n\r\n"
time=2025-09-22T17:00:23.858 level=DEBUG caller=sip.go:35 msg="UDP read from 127.0.0.1:7312 <- 127.0.0.1:7322:\nSIP/2.0 500 Outgoing call\r\nVia: SIP/2.0/UDP 127.0.0.1:7312;branch=z9hG4bK.6hkBZkpSlWArZXFM\r\nFrom: <sip:321@127.0.0.1>;tag=7EzbmJ\r\nTo: <sip:123@127.0.0.1>\r\nCall-ID: d9dd09b6-e452-4af7-881b-4c358b769b58\r\nCSeq: 1 INVITE\r\nContact: <sip:321@127.0.0.1>\r\nContent-Length: 0\r\n\r\n"
time=2025-09-22T17:00:23.858 level=DEBUG caller=sip.go:45 msg="UDP write to 127.0.0.1:7312 -> 127.0.0.1:7322:\nACK sip:123@127.0.0.1:7322 SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1:7312;branch=z9hG4bK.6hkBZkpSlWArZXFM\r\nMax-Forwards: 70\r\nFrom: <sip:321@127.0.0.1>;tag=7EzbmJ\r\nTo: <sip:123@127.0.0.1>\r\nCall-ID: d9dd09b6-e452-4af7-881b-4c358b769b58\r\nCSeq: 1 ACK\r\nContact: <sip:321@127.0.0.1>\r\nContent-Length: 0\r\n\r\n"
time=2025-09-22T17:00:23.859 level=DEBUG caller=transport_udp.go:367 msg="UDP reference decrement" src=127.0.0.1:7312 dst=127.0.0.1:7312 ref=2
time=2025-09-22T17:00:23.859 level=DEBUG caller=transaction_client_tx.go:257 msg="Client transaction destroyed" caller=TransactionLayer tx=z9hG4bK.6hkBZkpSlWArZXFM__INVITE
time=2025-09-22T17:00:23.859 level=WARN  caller=my_sip.go:31 msg=☢️ response="SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 127.0.0.1:7312;branch=z9hG4bK.6hkBZkpSlWArZXFM\r\nFrom: <sip:321@127.0.0.1>;tag=7EzbmJ\r\nTo: <sip:123@127.0.0.1>\r\nCall-ID: d9dd09b6-e452-4af7-881b-4c358b769b58\r\nCSeq: 1 INVITE\r\nContact: <sip:321@127.0.0.1>\r\nContent-Length: 0\r\n\r\n"

According to the logs, after the ACK, it tries to process 100 Trying

I saw the same error when processing 500 messages.

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