0.1.1 • Published 3 years ago

chandero-wphonelib v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

ChanderoWphonelib

Nebula VoIP Library for Angular

How to install

npm i chandero-wphonelib -S

How to use

import { ChanderoWphonelibService, RegInfo, StunUrl } from 'chandero-wphonelib';

export class MyClass {

domain: string = "eldominio.anw.cloud"; name: string = "Extension 1001"; extension: string = "1001"; stun01: StunUrl = { url: "stun:" + this.domain + ":3478" }

constructor(private sipService: ChanderoWphonelibService){ const regInfo: RegInfo = { ws: 'wss://' + this.domain + ':8089/asterisk/ws', name: this.name, localId: this.extension, publicId: 'sip:' this.extension + '@'+ this.domain, passwd: 'extenpassword', realm: this.domain, proxy: '', stun: this.domain + ':3478', ice_servers: stun01 }

  this.sipService.sipRegister(regInfo);

}

makeCall() { const numero = "3142425789"; this.sipService.sipCall("call-audiovideo", numero); } }

0.1.0

3 years ago

0.1.1

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago