processone / esip Goto Github PK
View Code? Open in Web Editor NEWProcessOne SIP server component in Erlang
Home Page: https://www.process-one.net/en/ejabberd/
License: Other
ProcessOne SIP server component in Erlang
Home Page: https://www.process-one.net/en/ejabberd/
License: Other
on line 162 and 163, the header From and To should contain display name but not <<>>, the display name should get from INVITE.
Is it possible to include 2-way mutual tls for esip connection?
at line 80, if callback function message_out return drop, it just give can not encode "ok".
Here are the deprecations:
rc/esip_transaction.erl:224: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
src/esip_transaction.erl:226: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
src/esip.erl:758: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
Compiled src/esip.erl
src/esip_codec.erl:1352: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
src/esip_codec.erl:1355: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
Compiled src/esip_codec.erl
It might be a better idea to use a random distribution for the received udp packages instead the one that sends the packets from the same ip, port pair to the same process.
In case all the traffic comes from a sip proxy (very common use to balance sip traffic) only one process is used to handle the traffic and all other 99 are idle.
get_proc_random() ->
{_, _, MicroSecs} = os:timestamp(),
get_proc((MicroSecs rem get_pool_size()) + 1).
Instead:
get_proc_by_hash(Source) ->
N = erlang:phash2(Source, get_pool_size()) + 1,
get_proc(N).
Provides a significant performance boost.
Silviu
For example, if host =:= undefined, it just encode record with some atom undefined, the encode returns ok, and it's result can not transfer to binary or send with udp port. I think it should return error, or just encode "undefined" to some string but not an atom.
If we compile under rebar3, than Rebar3DepsFilter rewrites deps
from git format to hex format.
Rebar3DepsFilter is too aggressive. Not all tags are present on Hex.
The transformation should be optional.
Error example:
./rebar3 compile
Package not found in registry: fast_tls-1.0.17
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.