Dan Barua

Results 32 comments of Dan Barua

Todo: include this in v2

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's hard to say what is going on without being able to see all of your code, but it's possible the socket is going out of scope and being garbage...

Yep, I fixed the commit and force-pushed but the link is still in the Github UI. re: this one, I'm trying to re-work it into an example that does what...

That would make sense. Some dialplan applications are blocking and will not yield control of the channel until finished. Have you tried setting `HangUpAfterBridge = false` on the bridge call?...

Get in mate! I will take a look at this tomorrow at work.

This is what I use: ``` csharp if (!channel.IsBridged) { ColorConsole.WriteLine("Bridge Failed - {0}" .Fmt(channel.GetVariable("last_bridge_hangup_cause")).Red()); await channel.Play("ivr/ivr-call_rejected.wav"); await channel.Hangup(HangupCause.NormalTemporaryFailure); } ``` The idea that by keeping all the state accessible...

I'm considering there may be a case for strongly typed access to the most commonly-used channel vars eg `channel.Variables.BridgeHangupCause`

`ColorConsole.WriteLine("Bridge Failed - {0}".Fmt(channel.Variables.BridgeHangupCause).Red());` ^ that's a bit better. I've been going around around on this trying to make this API usable as you can see here: https://github.com/danbarua/NEventSocket/issues/18

Might be a bit tricky, the `mod_sofia` events have a sub for each event type, unlike `mod_conference` events.