GithubHelp home page GithubHelp logo

soundarkarunagaran / sipdotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bedefaced/sipdotnet

0.0 1.0 0.0 166 KB

.NET wrapper for liblinphone library

License: GNU Lesser General Public License v3.0

C# 100.00%

sipdotnet's Introduction

sipdotnet

.NET wrapper for liblinphone library. You can use it for simple interface for SIP telephony.

Using

You can access to wrapped liblinphone actions and events by Phone class. Only that you need is the SIP account (Account class).

Current available functionality:

  • SIP-proxy connection control:
    • Connect
    • Disconnect
    • Useragent and Version definition
  • Call / Register / Error events:
    • PhoneConnectedEvent
    • PhoneDisconnectedEvent
    • IncomingCallEvent
    • CallActiveEvent
    • CallCompletedEvent
    • ErrorEvent
  • Make / receive / terminate / record calls:
    • MakeCall
    • MakeCallAndRecord
    • ReceiveCall
    • ReceiveCallAndRecord
    • TerminateCall

Example

Account account = new Account ("username", "password", "server");
Phone phone = new Phone (account);
phone.PhoneConnectedEvent += delegate() {
	Console.WriteLine("Phone connected. Calling...");
	phone.MakeCallAndRecord("phonenumber", "/tmp/filename.wav");
};
phone.CallActiveEvent += delegate(Call call) {
	Console.WriteLine("Answered. Call is active!");
};
phone.CallCompletedEvent += delegate(Call call) {
	Console.WriteLine("Completed.");
};
phone.Connect (); // connecting
Console.ReadLine ();
Console.WriteLine("Disconnecting...");
phone.Disconnect (); // terminate all calls and disconnect

Requirements

  • .NET 4.0 framework on Windows or Linux (>= Mono 3.2.8)
  • last available (>= 3.7.0) liblinphone library binaries installed

Liblinphone on Windows

It can be hardly built from sources or be gotten from linphone binaries. On Windows it requires almost all dlls from bin directory of linphone. Complete pack of required liblinphone dlls can be downloaded from here.

Liblinphone on Linux

It is good if you build liblinphone from sources to have last version of liblinphone shared libraries. Note that this will require some components. For example, this is my "multi spell" for Ubuntu 14.04:

apt-get install g++ git libtool automake autoconf libantlr3c-dev antlr3 make intltool speex libxml2-dev gtk+-2.0-dev libspeexdsp-dev && git clone git://git.linphone.org/linphone.git --recursive && git clone git://git.linphone.org/belle-sip.git && cd belle-sip && ./autogen.sh && ./configure && make && make install && cd ../linphone && ./autogen.sh && ./configure SPEEX_CFLAGS="-L/usr/lib/i386-linux-gnu -lspeex" SPEEX_LIBS="-L/usr/lib/i386-linux-gnu -lspeex" --without--ffmpeg --disable-video && make && make install

License

LGPLv3 (see LICENSE file)

sipdotnet's People

Contributors

bedefaced avatar

Watchers

Soundararajan Karunagaran avatar

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.