chandero-wphonelib
v0.1.1
Published
Nebula VoIP Library for Angular
Downloads
8
Readme
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); } }