Code Monkey home page Code Monkey logo

freetdm's Introduction

freetdm's People

Contributors

andywolk avatar anthmfs avatar arnaldopereira avatar briankwest avatar cypromis avatar davec82 avatar dyatsin avatar jlenk avatar kguptasangoma avatar michaelgg avatar mjerris avatar mochouinard avatar moises-silva avatar ncorbic-sangoma avatar nneul avatar quentusrex avatar swk avatar traviscross avatar treveradams avatar xadhoom avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

freetdm's Issues

Called/calling numbers gets truncated to a len of 8 on libpri-based interfaces

In current freetdm, just after the split from FS codebase, incoming cid num and dnis gets truncated to a fixed size of 8.

Looking into commits history this seems the culprit:
f698205#diff-799d73a265908a5bf4b30ab348dc83ef07004c1ddd57c7263824c41d61109209R136

wondering if is a slipped in modification or what, since appears in a totally unrelated commit.

In ftmod_libpri ftdtm_set_string is called with a pointer as src argument and the above modification will get the sizeof of the pointer to src, not the real size of the data, as @davec82 mentioned in commit comments.

Tag release

Can you please tag a release, in order to make the life of packager easier?

Thanks.

.: Francesco

Compile failure on Debian 11

Compiling the current repo code for fretdm with the current repo code for freeswitch fails with the following error:

CC src/libfreetdm_la-ftdm_io.lo
In file included from src/ftdm_io.c:40:
src/ftdm_io.c: In function ‘ftdm_channel_clear_token’:
./src/include/private/ftdm_core.h:134:33: error: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 1279 [-Werror=stringop-truncation]
134 | #define ftdm_copy_string(x,y,z) strncpy(x, y, z - 1)
| ^~~~~~~~~~~~~~~~~~~~
src/ftdm_io.c:1338:5: note: in expansion of macro ‘ftdm_copy_string’
1338 | ftdm_copy_string(ftdmchan->tokens[ftdmchan->token_count], tokens[i], sizeof(ftdmchan->tokens[ftdmchan->token_count]));
| ^~~~~~~~~~~~~~~~

Its really a warning, but the build files treat warnings as errors, so the compile fails. I haven't yet investigated to see what is really going on.

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.