Why does the provider rejects a valid G.729 configuration in a SIP trunk resource? The API documentation lists g729 as a supported codec, yet the deployment fails consistently.
env: us-1 prod
provider: genesys 1.15.4
tf: 1.6.5
resource: genesyscloud_telephony_providers_edge_sip_trunk
The HCL block is standard:
resource "genesyscloud_telephony_providers_edge_sip_trunk" "main" {
name = "Prod-SIP-01"
...
codec {
g729 = true
pcma = false
pcmb = false
}
}
The error response is specific:
POST /api/v2/telephony/providers/edges/sip/trunks returns 422 Unprocessable Entity
{“code”:“bad.request”,“message”:“Validation failed for object ‘SipTrunkRequest’. Error messages: Field error in object ‘SipTrunkRequest’ on field ‘codec.g729’: rejected value [true]; codes [typeMismatch.SipTrunkRequest.codec.g729…”
If I toggle pcma to true, the apply succeeds. But we require G.729 for this specific carrier to save bandwidth. Is this a known limitation of the 1.15.4 provider or a backend validation bug? Need to resolve this before the next promotion cycle.