Conference Call

638 views
Skip to first unread message

JP Sossoloti

unread,
Oct 28, 2021, 11:48:18 AM10/28/21
to SIP.js
Hello developers. I need help on a case.

I need to create audio conference with SIP.js. However, when creating a new Invite(), INVITE is sent over a number to asterisk, which creates a BRIDGE with the audio channel. How would I add a person to this same audio channel using this lib?

My version is 0.20

Thanks.

Slavik Bialik

unread,
Oct 28, 2021, 3:35:35 PM10/28/21
to SIP.js
Hi,
You don't really need to do the conference itself on the SIP.js client. You have Asterisk server with conference capabilities that will do it for you. Personally I'm using FreeSWITCH, but you can do the following method on Asterisk, too.
Let's say you have an active call, using an Invitation / Inviter object. 
What I did in my deployment, is to use an additional Inviter object for "dummy" calls. So I'm sending an additional INVITE with a request URI of "add_participant" as a dialed number and some custom SIP headers like "X-Participant-Number" where I put the number of the participant I want to add to the conference and you can also send the Call ID of the active call or the UUID of the leg of the active call with the caller (not my case, but you'll find a way to do it on Asterisk), and using this information you can build some logic in your dialplan where it'll originate a new call towards the number that is in the "X-Participant-Number" and when it'll be answered, make that both legs will be bridged into a newly created conference.
In my deployment, all calls are being conferenced from the beginning (even if it's only 2 participants) that way it's easier for me to just add more participants into an existing conference that I already know it's details.
But do not do it on SIP.js, and I don't even think you can use SIP.js as a conference bridge - not 100% sure. Plus, you'll loose control from the call control side over those calls, and you'll want to be able to control everything using the Asterisk.

Hope it make sense :)

Mohit Nichaal

unread,
Feb 8, 2022, 1:26:40 AM2/8/22
to SIP.js
Hi,

We are already using FreeSWITCH and same conference is supported at server level and working through external endpoints like MicroSIP , Zoiper etc  , but we are bulding our own endpoint using sip.js but we are unable to find how can we achieve or built conference features using sip.js.

SO could you please guide us how sip.js will help us on this? I will appreciate if you can share any document or architecture (Step by step) of integration or customisation on Sip.JS which needs to be done.

Many thanks for your co-operation in advance.

Mohit Nichaal

Mohit Nichaal

unread,
Feb 22, 2022, 12:38:23 AM2/22/22
to SIP.js
Hi,

Could you please update on my previous request to implement the conference or is there any guide which will help us  ?

Mohit Nichaal

Reply all
Reply to author
Forward
0 new messages