Hi, is it possible to filter sip trunks allowed nu...
# ask-ai
r
Hi, is it possible to filter sip trunks allowed number using wildcard (examples : i only what to allow number beginning with "06" -> "allowed_numbers" => ["06*"] ?
t
Thanks for reaching out, Philippe. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — regarding filtering SIP trunk allowed numbers with a wildcard (e.g., `"06*")`: We do not support wildcard/prefix patterns for the `allowed_numbers`/`numbers` field. That field accepts explicit phone numbers (exact matches) rather than pattern matching. If your goal is to allow an entire prefix like numbers starting with "06", would you prefer: • a rule-based approach where we can help you implement server-side routing logic that accepts any incoming number with that prefix, or • guidance on generating/updating the explicit numbers list programmatically (for example, creating a script to add all relevant numbers)? Tell me which option you want and a bit about your setup (SDK/language or where you’d run the routing), and I’ll provide concrete steps. Sources: Creating SIP Inbound Trunks and Dispatch Rules with Python SDK, with interactive elements
r
how is define the number that agent is comparing to "allowed_numbers" ? is it the caller id, the caller source ?
t
Good question — regarding which number is compared to `allowed_numbers`: The system matches the inbound call's source phone number (the caller number / Caller ID) against the
allowed_numbers
list. It does not compare the destination number or other identifiers. , with interactive elements