onsip / SIP.js

A simple, intuitive, and powerful JavaScript signaling library
https://sipjs.com
MIT License
1.84k stars 693 forks source link

TypeError: userAgent.getLogger is not a function #1066

Open prawee opened 5 months ago

prawee commented 5 months ago

These are typically directed to the google group.

My Code

import { UserAgent, Inviter } from 'sip.js' import UDPTransport from '@unwise-door/sipjs-udp-transport'

const userAgent = new UserAgent({ uri: UserAgent.makeURI('sip:..@...com'), authorizationPassword: '...', transportConstructor: UDPTransport, transportOptions: { server: '...com', port: 5060 }, })

userAgent.start().then(() => { console.log('start....') const target = UserAgent.makeURI('sip:...') const inviter = new Inviter({ userAgent, target }) inviter.invite() })