Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@prashantpadhariya1137

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

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

        AltStyle によって変換されたページ (->オリジナル) /