react-native-ecentrix-voip

0.0.4 • Public • Published

📞 react-native-ecentrix-voip

Package untuk integrasi VoIP (Voice over IP) dalam aplikasi React Native, dikembangkan oleh Ecentrix8. Cocok untuk digunakan dalam sistem call center, telemarketing, omnichannel, dan collection system.

npm version License: MIT


✨ Fitur Utama

  • 📱 Integrasi VoIP dengan React Native
  • 🔔 Mendukung notifikasi panggilan masuk
  • 📡 Kompatibel dengan sistem omnichannel call center
  • 🧩 Dapat diintegrasikan dengan sistem collection & telemarketing

📦 Instalasi

npm install react-native-ecentrix-voip

atau

yarn add react-native-ecentrix-voip

🚀 Penggunaan Dasar

import eVoip from 'react-native-ecentrix-voip';

// Inisialisasi
eVoip.register(${username}, ${access_token}, function(data){})

// Melakukan panggilan
eVoip.call('{JSON_FORMAT}', 'NUMBER');

// Send DTMF
eVoip.sendDTMF(value,function(result){ console.log(result) })

// Ganti audio ke earphone
eVoip.setAudioEarphone((data)=>{ console.log(data)})

// Ganti audio ke speaker
eVoip.setAudioLoudspeaker((data)=>{ console.log(data)})

// Menutup panggilan
eVoip.hangupCall((data)=>{ console.log(data)})

// Mute / Unmute call
eVoip.toogleMuteCall((result)=>{ console.log(result)})

📚 API

eVoip.register(${username}, ${access_token}, function(data){})

Properti Tipe Deskripsi
username string UniqueID client
access_token string Receive from api url

eVoip.call('{JSON_FORMAT}', 'NUMBER');

Melakukan panggilan ke call center.

eVoip.hangupCall((data)=>{ console.log(data)})

Mengakhiri panggilan.


📡 Event yang Tersedia

Gunakan event listener untuk menangani status dan aktivitas VoIP:

Voip.on('eventName', callback);

Daftar Event Network State:

Event Name Deskripsi
connected websocket connection to ecentrix server established
registered success registered to ecentrix server.
disconnected connection closed
unregistered unregister connection (timeout or down)
registrationFailed registration failed (authentication error or server down, etc)

Daftar Event Call State:

Event Name Deskripsi
connecting ... calling to ivr system
progress ringing ivr audio prompt
accepted call answered (ivr)
confirmed call confirm - media sould be active (ivr)
ended call ended (normal hangup)
failed failed call (busy, no answer, error, etc)

📄 License

© 2025 Angga Pratama


🛠️ Tentang

Bagian dari platform omnichannel Ecentrix Untuk informasi lebih lanjut: https://www.ecentrix.co.id

Package Sidebar

Install

npm i react-native-ecentrix-voip

Weekly Downloads

7

Version

0.0.4

License

MIT

Unpacked Size

340 kB

Total Files

5

Last publish

Collaborators

  • anggapratama0605