BYOC Trunk - SIP Options Failures - Intermittent 405s

Hey all,

We’re seeing a weird spike in 405 Method Not Allowed errors on our primary trunk, US-Central-02, specifically during the SIP OPTIONS keep-alive attempts. It’s not constant - it’ll be clear for hours, then a burst of 405s for about 10-15 minutes, then back to normal. The dialer isn’t completely choking, but definitely a lot more dropped calls than usual during those bursts. It’s not impacting inbound at all, which is odd.

The carrier is pointing fingers at us, saying the SIP options aren’t being sent correctly. We’ve checked the trunk config in Genesys Cloud several times - the SIP profile looks normal, the outbound SIP headers are the standard stuff. We’ve got the “Allow” header set to OPTIONS, and the codec list is matching what the carrier expects. They’re insistent it’s a malformed OPTIONS request.

I’ve dug into the CDRs and the failing OPTIONS requests all look identical. Here’s a snippet from a recent error log:

1678886400.000000 UTC 1234567890 SIP/2.0 405 Method Not Allowed
Via: SIP/2.0/UDP 192.0.2.1:5060;branch=z9hG4bK776asdhfs
From: "Trunk" <sip:trunk@ourdomain.com>
To: <sip:carrier@theirdomain.com>
Call-ID: abcdef0123456789
CSeq: 1 OPTIONS
Allow: OPTIONS
Contact: <sip:trunk@192.0.2.1:5060>

We’ve got a workaround in place - bumping the SIP keep-alive interval from 60 seconds to 120 seconds seems to reduce the 405s, but it feels like a band-aid. Anyone else hit this? Feels like something’s up with how Genesys is handling the OPTIONS requests under load.

  • platformClient.api.telephony.integrations.trunk.get shows the sip_options_interval is probably too aggressive - try bumping it to 300 seconds, or even 600. We’re on Genesys Cloud and have seen intermittent 405s when the interval is less than 120. It’s the OPTIONS messages colliding, honestly.
2 Likes

Tried bumping the SIP options interval to 600 - the 405s stopped for about an hour, but now we’re getting SIP timeouts instead, and only on outbound calls. It looks like the carrier is rejecting the OPTIONS entirely now, not just failing the method. Definitely a weird interaction - we haven’t touched anything else.

2 Likes

Is the trunk configured with the correct codec settings - we’ve seen issues when they don’t align with the carrier?

resource “genesyscloud_byoc_trunk” “example” {
name = “US-Central-02-Trunk”
sip_options_interval = “600s”
skip_manifest_check = true
codec = “PCMU” # or G711u - check with your carrier
}

It’s a bit of a guessing game with these SIP things.