Thanks for your help I installed MacPorts and I'm following this Install Gide: http://www.kamailio.org/wiki/install/4.1.x/git I'm getting error on install /bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [install-cfg] Error 2 The only thing that was added to the modules.lst was: # the list of extra modules to compile include_modules= db_mysql tls here is the modules.ls: ++++++++++++++++++++++++++++++++++++++++++++++++++++ # this file is autogenerated by make modules-cfg # the list of sub-directories with modules modules_dirs:=modules # the list of module groups to compile cfg_group_include= # the list of extra modules to compile include_modules= db_mysql tls # the list of static modules static_modules= # the list of modules to skip from compile list skip_modules= # the list of modules to exclude from compile list exclude_modules= acc_radius app_java app_lua app_mono app_perl app_python auth_ephemeral auth_identity auth_radius
carrierroute cdp cdp_avp cpl-c db2_ldap db_berkeley db_cassandra db_mysql db_oracle db_perlvdb db_postgres db_sqlite db_unixodbc dialog_ng dialplan dnssec geoip gzcompress h350 ims_auth ims_charging ims_icscf ims_isc ims_qos ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf ims_usrloc_scscf iptrtpproxy json jsonrpc-c lcr ldap memcached mi_xmlrpc misc_radius ndb_redis osp outbound peering presence presence_conference presence_dialoginfo presence_mwi presence_profile presence_reginfo presence_xml pua pua_bla pua_dialoginfo pua_mi pua_reginfo pua_usrloc pua_xmpp purple regex rls sctp snmpstats tls utils websocket xcap_client xcap_server xhttp_pi xmlops xmlrpc xmpp $(skip_modules) modules_all= $(filter-out modules/CVS,$(wildcard modules/*)) modules_noinc= $(filter-out $(addprefix modules/, $(exclude_modules) $(static_modules)), $(modules_all)) modules= $(filter-out $(modules_noinc), $(addprefix modules/, $(include_modules) )) $(modules_noinc)
modules_configured:=1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Make Log: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ See Attach Instal Logfile install.log
Hi!
Kamailio by default doesn't compile on OS/X Mavericks.
$ make
generating autover.h ...
/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -wC . cfg-defs
target architecture <x86_64>, host architecture <x86_64>
making config...
CC (gcc) [kamailio] action.o
error: invalid value '9' in '-O9'
make: *** [action.o] Error 1
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
Anyone that has found an optimal way to patch the Makefile?
/O
I want to ask some queries regarding logging in kamailio.
1. First of all if I want to add LM_DBG or LM_ERR in lookup.c file of
registrar module, where to add the command as on extraction of
kamailio-3.1.1.zip, I found registrar module files in modules_k folder as
well as modules_s folder.
2. I was advised to us macros from dprint.h to see LM_DBG and LM_ERR
statements in log file, how to do so ??
3. Third, will these logs also print in /var/log/messages in debian linux
along with other kamailio.cfg logs ??
4. What changes should be made in kamailio.cfg to see these logs, i.e log
level etc ??
Any help will be highly appreciated. Thanks.
--
View this message in context: http://sip-router.1086192.n5.nabble.com/LM-ERR-and-LM-DBG-tp129391.html
Sent from the Development mailing list archive at Nabble.com.
OK, so writing kamailio module was fun and easy. All thanks to
Daniel-Constantin for providing very useful hints, it took hardly 2-3 hours
to write up a functional module that exposes data received on kamailio
socket and data that is about to be sent out, in an event route, where it
can be manipulated e.g. to encode and decode per custom encryption
algorithms defined by script writer. Here is bleeding edge code,
http://webrtc.voip-demos.com/obfuscate.c.txt
Most of the code is borrowed from topoh, nosip and msrp modules and works
fine. There is just one little problem, that is unlike nosip module, the
event route for obfuscate module gives error when i try to print source
address using $si and $sp variables.
Here is an example kamailio.cfg
========================
loadmodule "nosip.so"
loadmodule "obfuscate.so"
...
event_route[nosip:msg] {
xlog("L_INFO", "[$pr:$si:$sp]: Received nosip message '$mb' \n");
}
event_route[obfuscate:msg] {
if (is_msg_obfuscated()) {
xlog("L_INFO", "[$pr:$si:$sp]: Received obfuscated message '$mb'
\n");
$avp(msg) = $mb;
} else {
xlog("L_INFO", "[$pr:$dd:$dp]: Sending obfuscated message '$mb'
\n");
$avp(msg) = $mb;
};
}
========================
using telnet when i send some random junk i get following in kamailio logs,
========================
webrtc[13284]: : pv [../../parser/../ip_addr.h:669]: ip_addr2sbuf(): BUG:
ip_addr2sbuf: unknown address family 0
webrtc[13284]: INFO: <script>: [NONE::0]: Received obfuscated message
'lkasndkasldnaklsndklaskndklasnkldnasklndklasndlkasndkasndlkasnkldanskldnaslkdnlkasndlkasnldnaskdnlasdn#015#012#015#012'
webrtc[13284]: INFO: <script>: [tcp:192.168.100.11:55206]: Received nosip
message
'lkasndkasldnaklsndklaskndklasnkldnasklndklasndlkasndkasndlkasnkldanskldnaslkdnlkasndlkasnldnaskdnlasdn#015#012#015#012'
========================
Can you guys give any hint, what is wrong here? The "received msg" code is
almost identical to nosip module yet, nosip module is able to show $si and
$sp values while my module can not.
Also is it possible to expose destination socket address (ip + port) for
"sent msg" (i.e. the destination socket where kamailio is about to send
some sip message).
Thank you.
On Thu, Jul 31, 2014 at 4:38 PM, Muhammad Shahzad <shaheryarkh(a)gmail.com>
wrote:
> Thanks for good insight in to this topic.
>
> As mentioned in my first email, there are a number of reasons for trying
> out custom encryption schemes. Low-end android devices is just one of them.
> There is a huge market for low-end android devices in south and south east
> Asia for example, where over 35% of world population lives. The people
> there are poor and don't have much understanding of latest cutting edge
> smart devices and related technologies. Big brands like Apple, Samsung,
> Nokia etc. are virtually non-existent or have so high price that people
> simply can't afford them. So cheap Chinese and Indian cell phones which
> barely run Android are considered "smart phones" and are very popular here.
> Using SSL, TLS, DTLS etc. are nightmare on these devices.
>
> The other reasons to develop and try out custom encryption algorithms are
> voip blockage by GSM providers in various Middle Eastern and European
> counties,
>
> http://www.linphone.org/news/11/26/Linphone-over-3G.html
> http://xerocrypt.wordpress.com/2012/07/06/inspecting-your-packets/
>
> http://www.telecomrecorder.com/world-premium-telecom/pak-telecom-authority/…
>
> And the rogue agencies of evil empires,
>
> http://en.wikipedia.org/wiki/Five_Eyes
> http://en.wikipedia.org/wiki/PRISM_%28surveillance_program%29
>
> http://en.wikipedia.org/wiki/Booz_Allen_Hamilton#Activities_in_foreign_coun…
>
> http://www.itv.com/news/update/2013-09-06/report-us-and-uk-agencies-cracked…
>
> Nearly all encryption algorithms are defined and advocated by US and UK
> intelligence agencies and it is quite obviously possible that they either
> have crack or backdoors into them. So, we can't blindly trust them anymore
> and should look into defining our own algorithms and security standards.
>
> Just to note, i don't claim that ITV or any other custom encryption
> discussed here can or would resolve all these problems. The main focus is
> on trying something new and out of the box to improve the voip and network
> security conditions. I find Kamailio as open source SIP server and doubango
> as open source SIP SDK as best platforms for these efforts and
> experimentation.
>
> Thank you.
>
>
>
>
> On Thu, Jul 31, 2014 at 2:08 PM, Daniel Tryba <daniel(a)pocos.nl> wrote:
>
>> [remove dev from cc]
>>
>> > The key purpose of ITV encryption is to avoid making a pattern of any
>> sort.
>>
>> The pattern is in SIP itself, regardless of encryption.
>>
>> -OPTIONS keepalives and response at regular intervals of nearly fixed
>> size.
>> -INVITE and its predictable responses of nearly fixed sizes per type
>> followed
>> by a steady stream of upd on random ports with the same bandwidth flowing
>> both
>> sides.
>>
>> Unless this random utp traffic is encrypted it is obvious you are using
>> rtp
>> with something like SIP. Even if it is encrypted the symmetric streams
>> give
>> away clues. A simple xor isn't enough, silences will result in the same
>> pattern.
>>
>> Daniel(-Constanting) already suggested interval randomizing (which is to
>> be
>> applied to any response) and padding of all data.
>>
>> But I wouldn't trust any non vetted encryption scheme, it is much easier
>> to
>> fix timing/padding with the standard tls scheme. Which brings me to the
>> question: what kind of device on the market capable of running apps isn't
>> fast
>> enough for TLS?
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>