danbarua / NEventSocket

A reactive FreeSwitch eventsocket library for Modern .Net
Mozilla Public License 2.0
74 stars 37 forks source link

Add low-level support for uuid_bridge and uuid_park #49

Closed pragmatrix closed 8 years ago

pragmatrix commented 8 years ago

Because I needed a bit more control about the bridging process than the bridge application offered me, I found uuid_bridge and uuid_park very useful. This PR supports them.

Note that the Park() method in the Channel API did not work for me, because it was blocking for the whole time the channel was parked and also did not seem to break out of a bridge the call was previously in.

pragmatrix commented 8 years ago

Hmm, do they actually belong to ApiExtensions.cs?

danbarua commented 8 years ago

Possibly. You can access the low level socket via Channel.Socket to make low-level API calls.

The problem with making API calls is they are fire-and-forget, so often you miss out any information you might want as to why things failed.

Feel free to change the implementation of the Channel.Park() method to use the API call as I'm not using it at the moment. :)

pragmatrix commented 8 years ago

Closing this, because I think that we need a better strategy for adding low-level APIs.