# Migrasi Voice dari Twilio

Inventarisasi TwiML, instruksi yang dihasilkan Studio atau aplikasi, klien Voice SDK, sesi ConversationRelay, rekaman, dan endpoint callback. Pisahkan koneksi telepon dari perilaku aplikasi yang ingin Anda pertahankan.

## Petakan perilaku panggilan

Petakan prompt yang telah ditentukan dan percabangan keypad ke aplikasi yang akan mengeksekusinya. Pertahankan keputusan aplikasi langsung di SIP atau aplikasi percakapan Anda yang sudah ada. Perlakukan ConversationRelay sebagai dependensi speech-runtime; mengganti koneksi telepon saja tidak menggantikan layanan speech terkelolanya.

TwiML adalah format instruksi Twilio; ini bukan paket urutan Bird. Bangun ulang perilaku panggilan berdasarkan prompt, input, dan keputusan yang dimaksud. Periksa setiap fitur conference, queue, payment, atau media secara individual sebelum merencanakan penggantinya.

Gunakan [panduan desain urutan panggilan](/docs/guides/voice/call-sequences) untuk merencanakan langkah-langkah panggilan yang ditentukan dan [panduan integrasi AI voice](/docs/ai/voice-conversations) untuk runtime percakapan.

## Siapkan koneksi pengganti

Buat workspace, trunk, dan identitas panggilan Bird untuk pengujian terkontrol. Aktifkan tujuan dan konfigurasikan pengaturan autentikasi serta media di klien. Pertahankan routing nomor yang ada selama mengevaluasi jalur baru.

Porting nomor telepon tidak memigrasikan aplikasi di baliknya. Konfirmasi portabilitas dan prosedur cutover yang diharapkan untuk setiap negara dan jenis nomor. Siapkan rute inbound baru sebelum mengandalkan perpindahan nomor.

## Uji seluruh perjalanan pelanggan

Gunakan nomor yang Anda kontrol dan verifikasi hasil berikut:

- Klien yang dimaksud berhasil autentikasi dan tujuan uji berdering.
- Audio berfungsi di kedua arah dan panggilan berakhir dengan bersih.
- Prompt dan pilihan keypad mencapai percabangan yang diharapkan.
- Alat bisnis membedakan keberhasilan, kegagalan, dan hasil yang tidak pasti.
- Catatan panggilan dan event terhubung ke hasil di aplikasi Anda.
- Rekaman atau transkripsi, jika diperlukan, menghasilkan bukti yang dimaksud.

Uji juga panggilan yang ditolak dan dependensi bisnis yang tidak tersedia, bukan hanya jalur yang berhasil. Permintaan yang diterima saja tidak membuktikan pengganti yang berfungsi.

## Pindahkan trafik secara terencana

Konfirmasi kapasitas, akses, dan rute nomor final. Pertahankan cara untuk memulihkan rute sebelumnya selama mengevaluasi trafik awal. Simpan catatan penyedia historis dan pertahankan pemetaan ke identitas pelanggan atau tugas di aplikasi Anda.

Rekonsiliasi biaya yang dihitung setelah panggilan selesai. Sertakan semua leg yang relevan dan layanan speech, rekaman, atau model terpisah saat membandingkan alur kerja baru.

## Bekerja dengan coding agent

Tempelkan prompt ini ke coding agent Anda beserta integrasi yang ingin Anda migrasikan. Prosedur bernomor ini dimulai dengan inventarisasi dan menjaga perubahan produksi tetap eksplisit.

```text
Help me evaluate a Voice migration from Twilio to Bird.
1. Read https://bird.com/docs/guides/voice/migrate/twilio.md. Use the .md alternatives of linked Bird guides for the steps below.
2. Check for a connected Bird MCP server or an installed, signed-in Bird CLI. Use whichever is available and discover its tools or command help. If neither is available, follow https://bird.com/docs/ai/set-up-your-agent.md. Do not invent operation names or install a second integration.
3. Perform a read-only inventory of my current call sites, numbers, SIP configuration, call-control instructions, event handlers, recordings, speech services and business tools. Identify secrets without printing them. Show the dependencies that stay with Twilio and the ones that need replacement.
4. Read https://bird.com/docs/guides/voice/sip-trunks.md, https://bird.com/docs/guides/voice/placing-calls.md and https://bird.com/docs/guides/voice/receiving-calls.md. Prepare the replacement connection and caller-identity requirements. Use https://bird.com/docs/guides/voice/call-sequences.md for defined menus and https://bird.com/docs/ai/voice-conversations.md for a conversational runtime. Verify each operation against the connected surface before proposing an executable step.
5. Prepare a test of one complete journey: setup, audio in both directions, keypad input, unanswered and failure paths, handoff where needed, and business-tool results. Show the exact target, configuration and expected cost before placing a call or recording audio; wait for my approval. Do not buy numbers, submit a port, change production routing or stop the existing provider without my explicit approval.
6. Use https://bird.com/docs/guides/voice/events.md and https://bird.com/docs/guides/voice/call-log.md to reconcile the outcome. Keep missing evidence and uncertain results visible. A spoken confirmation is not proof that a business action succeeded.
7. Return the integration differences, test evidence, unresolved requirements and rollback plan. Keep the current service running until I approve cutover. If a number port needs support, inspect the available support command or tool, prepare the exact request and ask for approval before submitting it. Return the ticket reference if authorized; a ticket does not schedule or complete a port.
```

## Referensi penyedia

- [Dokumentasi panggilan Twilio](https://www.twilio.com/docs/voice/twiml)
- [Dokumentasi workflow Twilio](https://www.twilio.com/docs/voice/conversationrelay)

## Langkah selanjutnya

- [Trunk SIP](/docs/guides/voice/sip-trunks)
- [Event Voice](/docs/guides/voice/events)
- [Log panggilan](/docs/guides/voice/call-log)

## Related resources

- [What is a voice API?](/explained/voice/what-is-a-voice-api) (answer)
- [Voice](/products/voice) (product)
- [Voice overview](/docs/guides/voice/overview) (docs)

[Get an implementation brief](/learn/workspace?topic=voice)
