Module: kamailio
Branch: master
Commit: 0d83c02f6389bf0adf9cc8afd5e19e2d0e94cd1a
URL: https://github.com/kamailio/kamailio/commit/0d83c02f6389bf0adf9cc8afd5e19e2…
Author: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
Committer: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
Date: 2017-03-17T17:29:52+01:00
erlang: allow user to set ERLANG_xxxDIR
If erl is not installed on the system or can not be used (for example
when cross-compiling), then erlang module will use the values set by the
user in ERLANG_INCDIR and ERLANG_LIBDIR instead of returning en error
Signed-off-by: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
---
Modified: src/modules/erlang/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/0d83c02f6389bf0adf9cc8afd5e19e2…
Patch: https://github.com/kamailio/kamailio/commit/0d83c02f6389bf0adf9cc8afd5e19e2…
---
diff --git a/src/modules/erlang/Makefile b/src/modules/erlang/Makefile
index e75176c..1886bd0 100644
--- a/src/modules/erlang/Makefile
+++ b/src/modules/erlang/Makefile
@@ -10,9 +10,12 @@ ERLANG=$(shell which erl)
ifneq ($(ERLANG),)
ERLANG_LIBDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
ERLANG_INCDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
-else
+endif
+
+ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
$(error Not found Erlang)
endif
+
LIBS=-L$(ERLANG_LIBDIR) -lei -lpthread
DEFS+=-I$(ERLANG_INCDIR)
If erl is not installed on the system or can not be used (for example
when cross-compiling), then erlang module will use the values set by the
user in ERLANG_INCDIR and ERLANG_LIBDIR instead of returning en error
Signed-off-by: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1037
-- Commit Summary --
* erlang: allow user to set ERLANG_xxxDIR
-- File Changes --
M src/modules/erlang/Makefile (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1037.patchhttps://github.com/kamailio/kamailio/pull/1037.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1037
Hi,
quick question (most likely to Daniel) about Topos.
The documentation on topos says about masking Call-ID:
"Note: this functionality is not implemented yet - the parameter is
present in order to be in pair with topoh module."
Two questions:
- Is there a timeline, when masking Call-ID's will be added?
- will it also work for forking scenarios? Is it possible, to get a
different Call-ID per branch?
I'm considering replacing SEMS with FreeSwitch in one of our IMS
deployments, so as soon as I have forking, I may have different
Requests with the same Call-ID but different Request-URI's.
Unfortunately, Forked requests are currently not properly supported on
FreeSwitch... :-(
When using Topoh, it would change the Call-ID, but with the same input
parameter (old Call-ID) it would always result in the same new
call-id.
Thanks,
Carsten
--
Carsten Bock
CEO (Geschäftsführer)
ng-voice GmbH
Millerntorplatz 1
20359 Hamburg / Germany
http://www.ng-voice.com
mailto:carsten@ng-voice.com
Office +49 40 5247593-40
Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/
Using python-requests to generate a MESSAGE injected via jsonrpcs, Kamailio (built from the 5.0 branch @ 49bafac) dumps core. This did not occur in 4.4.5. See attached gdb output.
[kamailio-coredump-jsonrpcs-message.txt](https://github.com/kamailio/kamaili…
```
"""
Generate a SIP MESSAGE via Kamailio's jsonrpcs module
"""
headers = ("From: <{0}>\r\n"
"To: <{1}>\r\n"
"Max-Forwards: 1\r\n"
"X-Kamailio-Message: noreply\r\n"
"Content-Type: text/plain; "
"charset=utf-8\r\n").format(self.sender, self.recipient)
content = {
'id': 1,
'jsonrpc': '2.0',
'method': 'tm.t_uac_start',
'params': [
'MESSAGE',
self.recipient,
SIP_NEXTHOP,
'.',
headers,
self.body
]
}
# http://docs.python-requests.org/en/latest/user/quickstart/
try:
r = requests.post(KAMAILIO_RPC_URL, allow_redirects=False,
json=content, timeout=5)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1030