FreeSWITCH is hosted by SignalWire https://signalwire.com Please see our github page at: https://github.com/signalwire/freeswitch
freeswitch / freetdm Goto Github PK
View Code? Open in Web Editor NEWFreeTDM Endpoint Module
License: Other
FreeTDM Endpoint Module
License: Other
FreeSWITCH is hosted by SignalWire https://signalwire.com Please see our github page at: https://github.com/signalwire/freeswitch
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.
Can you please tag a release, in order to make the life of packager easier?
Thanks.
.: Francesco
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.