Git Product home page Git Product logo

dotnetfreeswitch's Introduction

DotNetFreeSwitch

Stability: Maintenance

DotNetFreeSwitch up to the latest release is considered feature complete and mature. No future feature development is planned, though bugs and security issues are fixed.

GitHub Workflow Status (branch) License Nuget

Introduction

DotNetFreeSwitch is a socket library that helps interact with the FreeSwitch via its mod_event_socket. It has been written to run both on .Net8 .Net7 and .Net6 as well. The library is written using DotNetty.

Features

The library in its current state can be used to interact with FreeSwitch easily in:

  • Inbound mode Event Socket Inbound
  • Outbound mode Event Socket Outbound
  • One good thing it has is that you can implement your own FreeSwitch message encoder and decoder if you do not want to use the built-in ones.

Installation

 dotnet add package DotNetFreeSwitch

Example

kindly check the Demo project in this repo.

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

dotnetfreeswitch's People

Contributors

tochemey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnetfreeswitch's Issues

Freeswitch Version Support

Hello, I would like to know which version of freeswitch you are using, the version 1.10.8 I am using is not working well

Url decode

On outbound session headers should be parsed with urldecode. I am getting error:
String '2024-01-04%2013%3A52%3A58' was not recognized as a valid DateTime.

Authenticated is false

Hi,Tochemey:
image
try to run the test,after creating the connection object, result is "authenticated is false".but in "FreeSwitch Framework" library,it can pass the test.I hope to get your help,tanks.
sorry, my English is not very good,hope you can understand my question.

BgApiCommand command splicing error

Describe the bug
BgApiCommand command splicing error

To Reproduce
var playbackCommand = "user/1001 playback:/usr/local/freeswitch/sounds/broadcast/no_prisoner_info.wav,hangup inline";
var id2 = await client.SendBgApiAsync(new BgApiCommand("originate", playbackCommand));

Expected behavior
Expected result: bgapi user/1001 playback:/usr/local/freeswitch/sounds/broadcast/no_prisoner_info.wav,hangup inline
Real result:bgapi bgapi user/1001 playback:/usr/local/freeswitch/sounds/broadcast/no_prisoner_info.wav,hangup inline

Screenshots
image

=

Receive events from port 8021

您好,我想使用DotNetFreeSwitch包,接收8021端口的各种事件,代码该如何写,我没有找到方法

How to handle event in Outbound Session?

Your demo is working.

Could be useful, if you add in example also how to handle events subscribed with plain and how to access all headers in FS Event:
client.EventReceived.Subscribe(x => {
string b =x.FsEvent["Caller-Username"];
});

At the moment, I am using this library: https://github.com/iamkinetic/NEventSocket

But somehow, your seems more simple and bullet proof. Is it reactive? Can you compare both on first look? I am willing to help you with maitain your repo.

There is no response of SendApiAsync in program in Console

Hi

In the ModFreeswitch.Console Program there is no response when I run it .
Here is the error:
System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult(...) returned null。

The address is "127.0.0.1",the password is the default value of "ClueCon",and the port is 8021.
my FreeSWITC version is 1.8.4,my device is win10 64Bit,and I use Visual Studio Community 2017 to rebuild it again.
My event_socket.conf.xml file content as follows:









do i need to do anything to config it?

I will appreciate any help.

Thank's

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.