Skip to content

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

Open

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

Activity

  1. AlanGreyjoy commented on May 17, 2025

    @AlanGreyjoy

    The project is vaporware.

  2. AlanGreyjoy commented on May 17, 2025

    @AlanGreyjoy

    That being said, clone, open cursor, switch to claude 3.7 thinking or gemini, and ask ai the same question here.

  3. prashantpadhariya1137 commented on May 19, 2025

    @prashantpadhariya1137
    Author

    That being said, clone, open cursor, switch to claude 3.7 thinking or gemini, and ask ai the same question here.

    @AlanGreyjoy I will check in that. Thanks for suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions