0.0.4 • Published 1 year ago

@nadlowebagentur/capacitor-sip-phone v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@nadlowebagentur/capacitor-sip-phone

Connect to SIP phone line

Install

npm install @nadlowebagentur/capacitor-sip-phone
npx cap sync

API

initialize()

initialize() => Promise<void>

Initialize plugin state


login(...)

login(options: SipLoginOptions) => Promise<void>

Make login to the SIP

ParamType
optionsSipLoginOptions

logout()

logout() => Promise<void>

Logout & terminate account


call(...)

call(options: SipOutgoingCallOptions) => Promise<void>

Make outgoing call

ParamType
optionsSipOutgoingCallOptions

acceptCall()

acceptCall() => Promise<void>

Accept incoming call


hangUp()

hangUp() => Promise<void>

Terminate current call


Interfaces

SipLoginOptions

PropTypeDescription
transport'TLS' | 'TCP' | 'UDP'By default "UDP"
domainstringSIP domain address
usernamestringUser login for authentication
passwordstringUser password for authentication

SipOutgoingCallOptions

PropType
addressstring