Closed du-nt closed 2 years ago
Both of them export const pureRegister = async (sipAccount: string, sipPassword: string) => new Promise(resolve => { let configuration = { sockets: [socket], uri: 'sip:' + sipAccount + '@' + domain, password: sipPassword, register: true, contact_uri: 'sip:' + sipAccount + '@' + domain + ';transport=wss', session_timers: false, }; ua = new JsSIP.UA(configuration); ua.on('newMessage', data => { console.log('newMessage'); }) ua.start(); }); Sender: ua.sendMessage('sip:' + phoneNumber + '@' + domain, 'something');
ua.sendMessage('sip:' + phoneNumber + '@' + domain, 'something');
Receiver got nothing. What's wrong?
Both of them export const pureRegister = async (sipAccount: string, sipPassword: string) => new Promise(resolve => { let configuration = { sockets: [socket], uri: 'sip:' + sipAccount + '@' + domain, password: sipPassword, register: true, contact_uri: 'sip:' + sipAccount + '@' + domain + ';transport=wss', session_timers: false, }; ua = new JsSIP.UA(configuration); ua.on('newMessage', data => { console.log('newMessage'); }) ua.start(); }); Sender:
ua.sendMessage('sip:' + phoneNumber + '@' + domain, 'something');
Receiver got nothing. What's wrong?