@nadlowebagentur/capacitor-sip-phone
v0.0.4
Published
Connect to SIP phone line
Readme
@nadlowebagentur/capacitor-sip-phone
Connect to SIP phone line
Install
npm install @nadlowebagentur/capacitor-sip-phone
npx cap syncAPI
initialize()
initialize() => Promise<void>Initialize plugin state
login(...)
login(options: SipLoginOptions) => Promise<void>Make login to the SIP
| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | SipLoginOptions |
logout()
logout() => Promise<void>Logout & terminate account
call(...)
call(options: SipOutgoingCallOptions) => Promise<void>Make outgoing call
| Param | Type |
| ------------- | ------------------------------------------------------------------------- |
| options | SipOutgoingCallOptions |
acceptCall()
acceptCall() => Promise<void>Accept incoming call
hangUp()
hangUp() => Promise<void>Terminate current call
Interfaces
SipLoginOptions
| Prop | Type | Description |
| --------------- | ------------------------------------ | -------------------------------- |
| transport | 'TLS' | 'TCP' | 'UDP' | By default "UDP" |
| domain | string | SIP domain address |
| username | string | User login for authentication |
| password | string | User password for authentication |
SipOutgoingCallOptions
| Prop | Type |
| ------------- | ------------------- |
| address | string |
