Thanks to visit codestin.com
Credit goes to github.com

Skip to content

onNotify() method not called in SIP.js v0.21.2 for BLF implementation in React Native. #1106

@prashantpadhariya1137

Description

@prashantpadhariya1137

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions