Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

global variable

Open prathibhacdac opened this issue 2 years ago • 10 comments

I've declared the following global variable in phone.js

let did = new Array(); let i = 0;

Inside ConferenceDail() function I've used:

did[i++] = session.remoteIdentity.uri.user;

Everytime the ConferenceDail function is called, i is always 0. I'm expecting i's value to be incremented each time the ConferenceDail function is called. Why is it not happening?

prathibhacdac avatar Apr 08 '22 07:04 prathibhacdac

The ConferenceDail() function is in the middle of a sequence of events that needs to occur when conferencing in another call. Conference calls implement a child session, attached to the parent session.

Can you explain what you are trying to achieve?

InnovateAsterisk avatar Apr 08 '22 08:04 InnovateAsterisk

I'm trying to get all the parent ids.

prathibhacdac avatar Apr 08 '22 08:04 prathibhacdac

To do what? explain further.

Are you perhaps not looking for the Asterisk ConfBridge solution?

InnovateAsterisk avatar Apr 08 '22 08:04 InnovateAsterisk

Does the ConfBridge work with Browser phone?

prathibhacdac avatar Apr 08 '22 09:04 prathibhacdac

Yes, its mostly implemented, I still have to complete the inter-conference message sending, that a caller can send a text message to all participants of the conference call.

Make sure you implement something like this: https://github.com/InnovateAsterisk/Browser-Phone/blob/master/config/confbridge.conf

You can use all three video_mode settings

InnovateAsterisk avatar Apr 08 '22 09:04 InnovateAsterisk

To do what? explain further. To prevent the user from calling their parents.

Are you perhaps not looking for the Asterisk ConfBridge solution?

prathibhacdac avatar Apr 08 '22 09:04 prathibhacdac

Yes, its mostly implemented, I still have to complete the inter-conference message sending, that a caller can send a text message to all participants of the conference call.

When will this be released?

prathibhacdac avatar Apr 09 '22 04:04 prathibhacdac

It’s been released for a while now.

Make sure you create a buddy as type “extension”. So that you have video option.

InnovateAsterisk avatar Apr 09 '22 05:04 InnovateAsterisk

There is no provision to give the buddy type in the buddy creation panel.

prathibhacdac avatar Apr 11 '22 03:04 prathibhacdac

To Dial into a conference you would have made some sort of feature code or even a DID. eg *88. or 1102 that would take you into the conference room. When you make the contact/buddy make sure you click the add buddy icon, and leave it on "Basic Extension" and dont change it to "Address Book Contact".

image

InnovateAsterisk avatar Apr 11 '22 06:04 InnovateAsterisk