-
Notifications
You must be signed in to change notification settings - Fork 726
Description
I'm working on a React Native project where I'm implementing BLF (Busy Lamp Field) using SIP.js v0.21.2. I've set up the onNotify() method inside the delegate to handle incoming NOTIFY messages from the SIP server. However, the onNotify() callback is never triggered, and I don't see any logs.
Here is my UserAgentOptions configuration:
const userAgentOptions: UserAgentOptions = {
authorizationPassword: password,
authorizationUsername: userNumber,
transportOptions: {
server: wss,
traceSip: true,
keepAliveInterval: 60,
},
sipExtension100rel: 'Supported',
contactTransport: 'wss',
dtmfType: 'info',
noAnswerTimeout: 60,
hackIpInContact: true,
activeAfterTransfer: false,
delegate: { onInvite, onNotify },
uri: uri,
register: true,
sessionDescriptionHandlerFactoryOptions: {
peerConnectionOptions: {
rtcpMuxPolicy: 'negotiate',
iceCheckingTimeout: 1000,
iceTransportPolicy: 'all',
iceServers: [{ urls: stunURL }],
},
},
userAgentString: 'testing',
logBuiltinEnabled: true,
};
And here is my onNotify() function
function onNotify(notification: Notification) {
console.log('notttttttt', notification);
console.log('INCOMING INCOMING BE READY NOTIFY INVITE================anjali');
notification.accept();
console.log('lastlognotify', notification.incomingNotifyRequest.message);
}