NEventSocket icon indicating copy to clipboard operation
NEventSocket copied to clipboard

Bridge simultaneous ring multiple endpoints

Open EmaX093 opened this issue 8 years ago • 1 comments

Hi! I'm newbie to freeswitch, this afternoon i was trying to make ring multiple endpoints simultaneously. I tried first with ExecuteApplication and it worked flawlessly... Here's is the handcoded bridgestring:

{ignore_early_media='true'}${sofia_contact(*/[email protected])},${sofia_contact(*/[email protected])}

That works ok!

Now, when i tried to do the same with the Bridge function in EventSocket class, well, only one extension (the first) was ringing. I found the problem, but i'm unsure how to solve it.

If you look at LOC 418 of EventSocket class, there's is this block of code:

if (string.IsNullOrEmpty(options.UUID))
{
    options.UUID = Guid.NewGuid().ToString();
}

When the UUID property is setted, the bridgeString looks like this:

{ignore_early_media='true',origination_uuid='58caf194-b334-43a1-b496-684e0ae01018'}${sofia_contact(*/[email protected])},${sofia_contact(*/[email protected])}

I tested commenting the block in LOC 418 so the bridgeString is generated without origination_uuid and it works! But i don't know if that is the correct way to solve it.

Any idea?

Cheers!

EmaX093 avatar Aug 25 '17 20:08 EmaX093

I've just looked at the code, it doesn't look like we use the origination_uuid in this scenario for anything other than correlating log messages. We might be able to remove it but I will need to do some testing to ensure there are no unwanted side effects.

danbarua avatar Aug 29 '17 10:08 danbarua