Coder Social home page Coder Social logo

mwolff44 / callweaver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mjagdis/callweaver

0.0 2.0 0.0 22.57 MB

License: GNU General Public License v2.0

Makefile 0.73% M4 1.73% C 92.46% Shell 0.84% C++ 0.25% Roff 0.14% Perl 1.83% PHP 0.02% Tcl 0.05% JavaScript 0.01% Lex 0.24% Yacc 0.49% Objective-C 0.61% Vim Script 0.61%

callweaver's Introduction

Callweaver is/was an old fork of Asterisk 1.2 from the days when the newer Asterisk 1.4 was still pursuing stability. A number of fixes and improvements were made by a small community of coders.

Today callweaver is unused even by me. I've put it here simply because, to the best of my knowledge, it doesn't exist anywhere else and there is some potentially interesting code to be found in it.

  • It contains example use of Steve Underwood's SpanDSP library to implement native FAX send and receive over both RTP (network) and TDM (fixed line telephony) circuits.

  • I undertook a major rewrite of the dialplan handling to remove many issues.

  • I added auto-backoff and blacklisting to the SIP channel to mitigate the impact of the continuous script-kiddie probing that every exposed SIP server experiences.

  • I added IPv6 support to the SIP channel - along with many other changes to make it (slightly?) more conformant to the RFCs.

  • I extended printf with format specifiers for network addresses using both the glibc extension hooks and a transparent workaround for other environments.

  • I added a C implementation of dynamic strings in include/callweaver/dynstr.h and corelib/dynstr.c (including support for sprinf'ing into them).

  • I (ab)used the preprocessor to implement a variant of printf that allows complex formats to be expressed in a user friendly format but which collects the components together into a single format string at compile time. This makes much of the message handling much clearer. e.g.

        cw_dynstr_tprintf(ds_p, 3,
            cw_fmtval("-- General --\n"),
            cw_fmtval("Name: %s\n",           chan->name),
            cw_fmtval("Type: %s\n",           chan->type));
    

    which compiles as

    cw_dynstr_printf("-- General --\nName: %s\nType: %s\n", chan->name, chan->type);
    
  • I added a C implementation of dynamic arrays in include/callweaver/dynarray.h that is templated via preprocessor defines so that you can use dynamic arrays of whatever type you choose.

  • I added a C implementation of reference counted objects (entities rather than Objects in the modern OOP sense - it's C not C++!) in include/callweaver/object.h that uses atomic ops. This is heavily used throughout callweaver to avoid locking issues arising from the old code design.

I have been known to dust it off occasionally and use it for testing various ideas but since I have neither used SIP nor owned a PC that would take my old TDM cards for many years you should not expect callweaver to be stable or even usable anymore!

callweaver's People

Contributors

mjagdis avatar

Watchers

 avatar  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.