is_known_invalid_number_sip_code (carrier_failure_service)

OutboundVoiceAI · voice, sip-codes, invalid-number, carrier-handling

Checks whether a SIP response code is one of the known invalid number codes (404, 410, 484, 604) for carrier failure handling.

def is_known_invalid_number_sip_code(sip_response_code: Optional[int]) -> bool:
    return sip_response_code in {404, 410, 484, 604}

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key