# Set to VoIP Configure your FlyNumber to forward calls directly to VoIP. This allows you to integrate with any VoIP provider, PBX system, or AI voice platform while maintaining unlimited incoming minutes. With the growing adoption of AI voice agents, many businesses are connecting their FlyNumbers to platforms like VAPI, ElevenLabs, Retell, and others for automated customer interactions, appointment scheduling, and support services. ## Configuration Steps {#configuration-steps} 1. Log in to your FlyNumber account at [My Account](https://www.flynumber.com/my-account). 2. Navigate to [My FlyNumbers](https://www.flynumber.com/orders). 3. Find the FlyNumber you want to configure and click **Details**. 4. Click **Change forwarding** to access the forwarding options. 5. Select **VoIP** from the forwarding options. ![FlyNumber forwarding settings interface showing VoIP configuration options](/docs/basic-settings/img/voip-forward.png) *Figure 1: Configuration options for setting the FlyNumber directly to VoIP from the My FyNumbers page.* ![Configuration options for setting the FlyNumber directly to VoIP during signup](/docs/basic-settings/img/voip-forward-signup.png) *Figure 2: Configuration options for setting the FlyNumber directly to VoIP from the Signup/ Add FlyNumber page.* ## Understanding VoIP Fields {#understanding-voip-fields} When setting up VoIP forwarding, you'll need to configure three main fields: ### 1. Protocol {#1-protocol} - **Default**: SIP (Session Initiation Protocol) - **Options**: - SIP: Most common protocol for VoIP communications - H.323: Legacy protocol for real-time audio/video communication - IAX2: Inter-Asterisk eXchange protocol, primarily used with Asterisk systems - **Best Practice**: Use SIP unless your system specifically requires another protocol :::warning IAX2 Deprecation IAX2 will be decommissioned by the end of 2025. If you're currently using IAX2, please migrate to SIP before then. ::: #### Transport Protocol {#transport-protocol} When using SIP, calls are sent using **UDP** by default. We also support: - **TCP**: For environments where UDP is blocked or unreliable - **TLS**: For encrypted signaling (recommended for security-sensitive deployments) To change your transport protocol, [open a support ticket](https://www.flynumber.com/my-account/tickets). A self-service option is in development. :::tip[AI Voice Platforms] Many AI voice platforms have specific transport requirements. For example, ElevenLabs requires **TLS** transport (UDP is not supported). Platforms like VAPI and Twilio support UDP, TCP, and TLS. If you're connecting your FlyNumber to an AI voice agent, check your provider's documentation and [contact support](https://www.flynumber.com/my-account/tickets) to configure the appropriate transport protocol. ::: ### 2. Host {#2-host} - For VoIP Providers: - The part after @ in your SIP address - Example: If your SIP address is john@sip.acme.com, enter `sip.acme.com` - For PBX Systems: - Your server's public IP address or hostname - Example: If your Asterisk server is at 12.34.45.7, enter `12.34.45.7` ### 3. Username/extension {#3-usernameextension} - For VoIP Providers: - The part before @ in your SIP address - Example: If your SIP address is john@sip.acme.com, enter `john` - For PBX Systems: - Your extension number (e.g., `101`) - The username configured in your PBX ## SIP Registration {#sip-registration} Some VoIP providers and AI platforms require your FlyNumber to register with their SIP server using credentials (username/password authentication) rather than IP-based authentication. If your provider requires SIP registration, [open a support ticket](https://www.flynumber.com/my-account/tickets) with the following information: - Your FlyNumber - SIP server address (domain/host) - Authentication username - Authentication password - Any additional details from your provider (e.g., auth domain, contact user) Our team will configure the registration settings for you. A self-service option for SIP registration is in development. :::info[Common Use Cases] SIP registration is often needed when connecting to: - AI voice agent platforms (VAPI, ElevenLabs, Retell, Bland AI) - Hosted PBX systems that require authenticated connections - VoIP providers without IP whitelisting options ::: ## Technical Specifications {#technical-specifications} ### IP Addresses {#ip-addresses} Calls originate from the following endpoints: - 46.19.209.14:5060 (New York POP) - 46.19.210.14:5060 (Frankfurt POP) - 46.19.212.14:5060 (Los Angeles POP) - 46.19.213.14:5060 (Miami POP) - 46.19.214.14:5060 (Singapore POP) RTP traffic subnet: - 46.19.208.0/21 - Port range: 1024-65535 ### Supported Codecs {#supported-codecs} - G.711 A-law/U-law - G.729 - G.723.1 - L16 - G.726-16/G.726-40/G.726-32/G.726-24 - G.721 - GSM - Speex ### DTMF Transport {#dtmf-transport} - Telephone-event RFC2833 (default) - SIP INFO draft-kaplan-dispatch-info-dtmf-package-00 ### RTCP Support {#rtcp-support} - Transmits and receives on port = rtp_port + 1 (RFC3550) - Supports RTCP conflict avoidance payloads (72-76) ## Popular Integration Examples {#popular-integration-examples} ### AI Voice Platforms {#ai-voice-platforms} AI voice agents are increasingly popular for handling customer calls, scheduling appointments, and providing 24/7 support. Here are common platforms: | Platform | Transport | Registration | Notes | |----------|-----------|--------------|-------| | **VAPI** | UDP, TCP, TLS | Not required | UDP is default; see [VAPI example](#vapi-example) below | | **ElevenLabs** | TLS required | Not required | UDP not supported; TLS is a requirement | | **Retell AI** | TCP, TLS | Varies | Check provider docs | | **Bland AI** | TCP, TLS | Varies | Check provider docs | For AI platform integration, you'll typically need: 1. Configure your FlyNumber to forward to the platform's SIP address 2. Request the appropriate transport protocol (TCP/TLS) via [support ticket](https://www.flynumber.com/my-account/tickets) 3. Set up SIP registration if required by the platform #### VAPI Example {#vapi-example} VAPI uses a SIP trunk model where each trunk gets a unique credential ID (a UUID). Calls are routed to VAPI using a SIP URI in this format: ``` +{your_flynumber}@{credential_id}.sip.vapi.ai ``` To connect your FlyNumber to a VAPI AI assistant: 1. In your [VAPI dashboard](https://dashboard.vapi.ai), create a **BYO SIP Trunk** (not a standard credential — choose the "Bring Your Own" option) 2. Add all 5 FlyNumber gateway IPs as separate gateways in the trunk configuration: - `46.19.209.14` - `46.19.210.14` - `46.19.212.14` - `46.19.213.14` - `46.19.214.14` 3. For each gateway, enable **Inbound Calls** and **Options Ping** — this allows VAPI to accept and monitor incoming calls from FlyNumber 4. VAPI will generate a **credential ID** (a UUID) for the trunk 5. Add your FlyNumber as a phone number resource in VAPI and link it to your assistant 6. In your FlyNumber VoIP settings, configure the fields as follows: | Field | Value | |-------|-------| | **Protocol** | SIP | | **Host** | `{credential_id}.sip.vapi.ai` (replace with your actual credential ID) | | **Username/Extension** | Your FlyNumber in E.164 format (e.g., `+13025551234`) | 7. [Contact support](https://www.flynumber.com/my-account/tickets) to set the transport protocol — VAPI supports UDP (default), TCP, and TLS :::warning[BYO SIP Trunk Required] A standard VAPI SIP trunk credential won't work with FlyNumber. You must use the **BYO (Bring Your Own) SIP Trunk** option and add all FlyNumber gateway IPs as gateways with inbound calls enabled. Without this, calls will return "Service Unavailable." ::: :::info[No SIP Registration Needed] VAPI does not require SIP registration. Calls are authenticated through the credential ID embedded in the SIP URI itself, so no username/password registration setup is necessary on the FlyNumber side. ::: ### PBX Systems {#pbx-systems} - **Asterisk**: Configure extensions and SIP trunks - **FreePBX**: Set up inbound routes and trunks - **3CX**: Create SIP trunk with FlyNumber credentials - **FreeSWITCH**: Set up SIP profiles and dialplans ### VoIP Providers {#voip-providers} - **Twilio**: Forward to SIP domains - **Callcentric**: Use SIP URI forwarding - **Telnyx**: Configure SIP trunking - **Flowroute**: Set up inbound routes - **OnSIP**: Use inbound bridge configuration :::tip Quick Test Set "host" to iptel.org and "user/extension" to music to quickly test your FlyNumber. You'll hear music when you call the number. ::: ## Troubleshooting {#troubleshooting} ### Common Call Responses {#common-call-responses} Check your [call logs](../additional-resources/call-logs.md) for these responses: - **Time Out**: No response from VoIP server - **Proxy Authentication Error**: Check IP whitelist settings - **Forbidden**: Registration required or configuration issue - **OK**: Call successfully connected ### Best Practices {#best-practices} 1. Whitelist FlyNumber IP addresses in your system's ACL 2. Verify your VoIP system accepts incoming calls 3. Test configuration with a test call 4. Monitor call logs for any issues 5. Ensure proper codec support :::warning Important If using systems like Asterisk or FreePBX, you may need to whitelist our IP addresses in your system's Access Control List (ACL). ::: ## What's Next? {#whats-next} After configuring VoIP forwarding: 1. Make a test call to your FlyNumber 2. Check your [call logs](../additional-resources/call-logs.md) for successful connection 3. Verify audio quality and connection stability 4. Configure any additional features in your VoIP system :::info For advanced call handling features like auto-attendants, time-based routing, or call recording, consider using our [cloud phone system](set-phone-system.md). :::