SDP modifiers functionality gone in sip.js version > 0.16.0 ?

359 views
Skip to first unread message

Stefan Marx

unread,
Nov 17, 2021, 8:54:28 AM11/17/21
to SIP.js
Hi,

currently I'm using sip.js version 0.16.0 whereby need to modify the session description answer for incoming calls. So I set my modifier function as "modifiers" option on the sessionDescriptionHandlerFactoryOptions of the user agent options when creating the user agent (new UserAgent(options))  (https://sipjs.com/api/0.15.0/sessionDescriptionHandler/#options). This is working with Version 0.16.0, my modifier function is called for each incoming call. When using version 0.17.0 or above, my modifier function is never called. So my question is, how to achieve this in version > 0.16.0 ) I can not find anything in the github API documentation.

Regards

Michael Garfinkel

unread,
Aug 30, 2022, 5:07:15 PM8/30/22
to SIP.js
Hey Stefan,

was just struggling with this myself. It now comes in as an array
```
        const sesh = this.session as Invitation;
        return await sesh.accept({
            ...invitationAcceptOptions,
            sessionDescriptionHandlerModifiers: ],
        });
```
same way on invite just as the second param

Michael Garfinkel

unread,
Aug 30, 2022, 5:07:33 PM8/30/22
to SIP.js
* sessionDescriptionHandlerModifiers[]

Brandon Bishop

unread,
Jul 30, 2024, 8:49:19 AM7/30/24
to SIP.js
Hi

I'm trying to remove the TCP candidates from the SDP, using the below code.

But it seems to try and modify the SDP before the ice checking has completed... so the TCP candidates don't exist yet.

Any reason why that could be happening?

        let invitation = new Inviter(agent.current, target!, {
            sessionDescriptionHandlerOptions: {
                constraints: {
                    audio: true,
                    video: false,
                },
            },
            sessionDescriptionHandlerModifiers: modifiers
        });

B.K Aayush Jain

unread,
Aug 6, 2024, 2:53:13 AM8/6/24
to SIP.js
Hi , What are you putting in the modifiers array? I am trying to use it to modify the bandwidth before calling but I am unable to do it so. Any help? I want to modify the call bandwidth, by default my sipjs is using 7mb which is very high
i want to modify it

Reply all
Reply to author
Forward
0 new messages