Using SIP.js with Angular 6 in node with typescript

1,256 views
Skip to first unread message

HATIM HEFFOUDHI

unread,
Aug 22, 2018, 4:28:57 AM8/22/18
to SIP.js
Hello Stars, 

I'm using sip.js in a project with Angular 6 + nodejs with typescript 
In the component.ts i have add the import ==> import * as SIP from 'sip.js' 
But i can't use the SIP variable, could you please help on that ? is it the correct statement to import from sip.js ? any recommandation to user sip.js in typescript with angular 6 ?
Thank you 

m...@onsip.com

unread,
Aug 22, 2018, 9:15:18 AM8/22/18
to SIP.js
Hi Hatim,

The following should work with (as an example) the 0.11.0 release:

const SIP = require("./relative-path-to/sip-0.11.0");

Best,
Max

James Criscuolo

unread,
Aug 22, 2018, 9:38:55 AM8/22/18
to SIP.js
Hi Hatim,
  The import you are using should work, although if you are using that in multiple places I'd expect you would not have the same instance of SIP. I have tested this in our build using latest webpack (4.17.1).

James
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages