Re: [SR-Users] Kamailio Buildroot

2020-07-07 Thread Benjamin Marty
Hello

Thanks for the link to nslu2 and the information that I basically just need
to set these bunch of variables correct for cross compiling. I was now able
to create a mostly working package for Buildroot. The .mk file is attached
for others which may run into the same situation.

Thanks

Benjamin

Am Mi., 24. Juni 2020 um 18:05 Uhr schrieb Ovidiu Sas :

> I haven't cross compiled in a long time ...
> For proper cross-compilation, the CROSS_COMPILE flag must be set to
> something, then the LOCALBASE and SYSBASE should point to the staging
> directory where the toolchain and all the libraries and include files
> for the target platform are present.
> Extra compile and link options can be passed via CC_EXTRA_OPTS and
> LD_EXTRA_OPTS.
>
> An old example for optware can be found here:
>
> https://raw.githubusercontent.com/nslu2-linux/Optware/master/make/kamailio.mk
>
> Some modules have a proper Makefile that will use the pkg-config from
> staging directory and detect proper compile and link flags while other
> modules require manual tinkering with the Makefile.
> It's good to enable the noisy build (Q=0) and check that proper
> include files and libs are used (from the staging directory and not
> from the build machine).
>
> Regards,
> Ovidiu Sas
>
> On Wed, Jun 24, 2020 at 4:52 AM Daniel-Constantin Mierla
>  wrote:
> >
> > Hello,
> >
> > I haven't cross compiled myself, but there is a makefile flag
> CROSS_COMPILE that you can set in such cases -- the Makefile of the modules
> sets the path to includes and libs based on it. You may need to set other
> Makefile variables to get it done, look in the src/Makefile.defs to see
> most of them.
> >
> > Ovidiu Sas seemed to be active in this space some time ago, maybe he can
> give further guidelines.
> >
> > Cheers,
> > Daniel
> >
> > On 19.06.20 14:11, Benjamin Marty wrote:
> >
> > Hello
> >
> > I would like to ask if someone already tried to build Kamailio for the
> Embedded Distribution Buildroot. I tried it myself but it looks like
> Kamailio is not that easy to cross compile.
> >
> > Thanks
> >
> > Benjamin
> >
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
> > --
> > Daniel-Constantin Mierla -- www.asipto.com
> > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > Funding: https://www.paypal.me/dcmierla
> >
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
KAMAILIO_VERSION = 5.3.5
KAMAILIO_SOURCE = kamailio-$(KAMAILIO_VERSION)_src.tar.gz
KAMAILIO_SITE = https://www.kamailio.org/pub/kamailio/$(KAMAILIO_VERSION)/src

KAMAILIO_INCLUDE_PUA_MODULES=pua pua_bla pua_dialoginfo pua_mi pua_reginfo pua_usrloc pua_xmpp
KAMAILIO_INCLUDE_PRESENCE_MODULES=presence presence_conference presence_dialoginfo presence_mwi presence_profile presence_reginfo presence_b2b
KAMAILIO_INCLUDE_AAA_MODULES=auth auth_ims auth_identity auth_db auth_diameter auth_radius
KAMAILIO_INCLUDE_LDAP_MODULES=ldap
KAMAILIO_INCLUDE_BASE_MODULES=$(KAMAILIO_INCLUDE_PUA_MODULES) \
$(KAMAILIO_INCLUDE_PRESENCE_MODULES) \
$(KAMAILIO_INCLUDE_AAA_MODULES) \
xmpp cpl-c db_unixodbc db_postgres db_sqlite carrierroute rls identity regex xmlops xcap_server tls xhttp_pi
KAMAILIO_EXCLUDE_APP_MODULES=app_lua app_mono app_perl app_python app_java app_python3 app_ruby erlang
KAMAILIO_EXCLUDE_DB_MODULES=db_berkeley db_cassandra db_oracle db_perlvdb db_redis db2_ldap db_mongodb db_mysql db_postgres cnxcc cplc evapi geoip geoip2 http_async_client ims_ipsec_pcscf janssonrpcc jsonrpcc kazoo log_systemd lost misc_radius ndb_cassandra ndb_mongodb nsq peering phonenum rabbitmq rtp_media_server snmpstats topos_redis websocket xcap_server xhttp_pi xmpp
KAMAILIO_EXCLUDE_MODULES=$(KAMAILIO_EXCLUDE_APP_MODULES) $(KAMAILIO_EXCLUDE_DB_MODULES) $(KAMAILIO_INCLUDE_LDAP_MODULES) bdb cdp siptrace sipcapture identity iptrtpproxy jabber json jsonrpc-c memcached ndb_redis osp h350 purple seas mi_xmlrpc dnssec sctp app_lua_sr auth_radius acc_radius uuid

KAMAILIO_CPPFLAGS=-fexpensive-optimizations -fomit-frame-pointer -fsigned-char

define KAMAILIO_BUILD_CMDS
	CC_EXTRA_OPTS="$(KAMAILIO_CPPFLAGS) $(STAGING_CPPFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libxml2" \
	LD_EXTRA_OPTS="$(STAGING_LDFLAGS)" CROSS_COMPILE="$(TARGET_CROSS)" \
	LOCALBASE=$(STAGING_DIR) SYSBASE=$(STAGING_DIR) CC="$(TARGET_CC)" \
	$(MAKE) -

[SR-Users] Kamailio Buildroot

2020-06-19 Thread Benjamin Marty
Hello

I would like to ask if someone already tried to build Kamailio for the
Embedded Distribution Buildroot. I tried it myself but it looks like
Kamailio is not that easy to cross compile.

Thanks

Benjamin
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] 100% CPU usage after NTP date update

2019-08-07 Thread Benjamin Marty
Hi Henning,

Unfortunately, I don't have the code for it. So I'm unable to do a PR.

Benjamin

Am Fr., 2. Aug. 2019 um 16:52 Uhr schrieb Henning Westerholt :

> Hi Benjamin,
>
> I checked the commit logs for core/timer.c - it seems not fixed yet. Can
> you create a issue on our github tracker about it?
>
> If you can test it (e.g. on an embedded device), there is also some
> description in the linked discussed about a fix in the code. A pull request
> is of course also really welcome.
>
> Cheers,
>
> Henning
> Am 18.06.19 um 13:20 schrieb Benjamin Marty:
>
> Hello,
>
> I'm facing the same issue. Is there a solution for this in the meantime?
>
> Benjamin
>
> https://lists.kamailio.org/pipermail/sr-users/2015-November/090487.html
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Henning Westerholt - https://skalatan.de/blog/
> Kamailio services - https://skalatan.de/services
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] 100% CPU usage after NTP date update

2019-06-18 Thread Benjamin Marty
Hello,

I'm facing the same issue. Is there a solution for this in the meantime?

Benjamin

https://lists.kamailio.org/pipermail/sr-users/2015-November/090487.html
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio with Asterisk as Media Relay

2018-10-11 Thread Benjamin Marty
Hello

Ok, that sounds perfect. Is there a sample kamailio configuration file of
how to achieve such a thing?
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio with Asterisk as Media Relay

2018-10-08 Thread Benjamin Marty
Hello

I would like to ask if there is any available informations on how to use
Kamailio as a SIP Proxy but letting (multiple) Asterisk Instances do the
Media Relaying. Is this scenario supported and if yes are there any
tutorials or documentation available for it?

I know the Kamailio Dispatcher Module, but this does as far as I know a
dispatching of also the SIP Traffic. Not just the Media Traffic.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Realtime Extensions SQLITE

2018-05-29 Thread Benjamin Marty
I compiled a fresh Asterisk 13.18 certified with res_config_sqlite.

I configured following:

extconfig.conf
[settings]
sippeers => sqlite,asterisk,ast_config

res_config_sqlite.conf
[general]
dbfile => /home/myuser/database.db

On Bootup it gives the following error:
[May 29 17:07:14] WARNING[32444]: res_config_sqlite.c:1206
realtime_multi_handler: no such table: ast_config

Is the sqlite module deprecated or is my configuration wrong? Couldn't
really find any documentation on that topic. The table ast_config is
definitely present in the sqlite file.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio to Asterisk Proxy with NAT

2018-03-29 Thread Benjamin Marty
I need the scenario for scalability on the asterisk side.

The scenario I still have in my head is that the clients -could- do the RTP
stream directly with the Asterisk Server. The Asterisk Instances have all
their own NATed Public IP (AWS EC2 Instances). But I think I will build
more problems than solving complexity with that approach.

I quite like the approach to use the internal network and don't use the
Asterisk Public IP's at all. So basically all Clients are doing SIP
Signalling + RTP Mediastream over the Kamailio Instance. Or would you avoid
that?

Thanks

Benjamin



2018-03-29 11:24 GMT+02:00 Daniel Tryba :

> > My Question is now how the RTP Media Stream should/can flow. The clients
> > are in different other networks. So P2P Media Stream isn't possible.
> Should
> > I now run the RTP Stream Client - Asterisk or Client - Kamailio -
> Asterisk?
>
> What do you want to accomplish?
>
> Fact is that asterisk has to handle RTP in case of transcoding or DTMF
> in RTP, reinvite/directmedia doesn't work in all scenarios. So why spend
> extra time/resources on relaying it on the kamailio machine with
> rtp(proxy|engine)? Having said this, it is much easier to maintain an
> asterisk cluster behind a machine with rtp(proxy|engine) doing NAT
> traversal.
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio to Asterisk Proxy with NAT

2018-03-29 Thread Benjamin Marty
Hello,

I have multiple Asterisk Servers in a private Network. They also have a
Public IP via Destination NAT. Now I want to use a Kamailio Proxy in front
of them. The Routing I want to do with the Kamailio Dispatcher module.

My Question is now how the RTP Media Stream should/can flow. The clients
are in different other networks. So P2P Media Stream isn't possible. Should
I now run the RTP Stream Client - Asterisk or Client - Kamailio - Asterisk?

Is there an Example for an such scenario?

Thanks

Benjamin
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio NAT AWS EC2

2018-03-29 Thread Benjamin Marty
I have now put a fix_nated_sdp statement to the route[RELAY]. But the media
proxy over the rtpproxy still doesn't work. The SIP Signalling itself works
perfectly (I can start a call an the other client receives it).

fix_nated_sdp("2", "MYPUBLICIP");

Thanks

Benjamin

2018-03-27 12:15 GMT+02:00 Arsen <arsen.semio...@gmail.com>:

> Since you are on Amazon AWS, make sure that you advertise the instance
> public IP address in the listen parameter
>
> listen=udp:private_ip:5060 advertise public_ip:5060
>
> according to the default kamailio cfg rtpproxy will be applied if an
> INVITE request passes nat_uac_test("19")
> https://kamailio.org/docs/modules/5.1.x/modules/
> nathelper.html#nathelper.f.nat_uac_test
>
> make sure that rtpproxy is installed and running, you also need to set
> public IP address in the rtpproxy startup options.
>
>
> Regards,
>
>
>
> Arsen Semionov
> www.eurolan.info
> cell: +442035198881 <+44%2020%203519%208881>
>
> On Tue, Mar 27, 2018 at 10:45 AM, Benjamin Marty <benjamin.ma...@gmail.com
> > wrote:
>
>> Hi Arsen,
>>
>> Thanks to clean up that understanding block :)
>>
>> I still have a (little?) issue in my Installation. I installed the
>> Kamailio with standard configuration and enabled "WITH_NAT".
>>
>> If I now register two clients (both Zoiper) they try to do the RTP P2P to
>> each other. But I want to process the RTP on the Server. What Parameter do
>> I have to change?
>>
>> Thanks
>>
>> Benjamin
>>
>> 2018-03-27 8:07 GMT+02:00 Arsen <arsen.semio...@gmail.com>:
>>
>>> Hi Benjamin,
>>>
>>> Yes, Kamailio is a SIP proxy and does not deal with RTP, so rptproxy is
>>> the tool to handle media traffic in your case.
>>> rtpproxy is not the only choice, you also can check rtpengine.
>>> https://github.com/sipwise/rtpengine
>>>
>>>
>>> Regards,
>>>
>>>
>>> Arsen Semionov
>>> www.eurolan.info
>>> cell: +442035198881 <+44%2020%203519%208881>
>>>
>>> On Tue, Mar 27, 2018 at 8:54 AM, Benjamin Marty <
>>> benjamin.ma...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am new to Kamailio and coming a bit from the Asterisk side.
>>>>
>>>> My goal is to set up a bunch of users on a Kamailio Instance on AWS EC2 
>>>> and get them able to call each other and talk to each other over the 
>>>> Internet without P2P media stream.
>>>>
>>>> Is rtpproxy the tool that enables that? As far my knowledge is right 
>>>> Kamailio isn't able to do any sort of RTP handling.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Benjamin
>>>>
>>>>
>>>> ___
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users@lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio NAT AWS EC2

2018-03-27 Thread Benjamin Marty
Hi Arsen,

Thanks to clean up that understanding block :)

I still have a (little?) issue in my Installation. I installed the Kamailio
with standard configuration and enabled "WITH_NAT".

If I now register two clients (both Zoiper) they try to do the RTP P2P to
each other. But I want to process the RTP on the Server. What Parameter do
I have to change?

Thanks

Benjamin

2018-03-27 8:07 GMT+02:00 Arsen <arsen.semio...@gmail.com>:

> Hi Benjamin,
>
> Yes, Kamailio is a SIP proxy and does not deal with RTP, so rptproxy is
> the tool to handle media traffic in your case.
> rtpproxy is not the only choice, you also can check rtpengine.
> https://github.com/sipwise/rtpengine
>
>
> Regards,
>
>
> Arsen Semionov
> www.eurolan.info
> cell: +442035198881 <+44%2020%203519%208881>
>
> On Tue, Mar 27, 2018 at 8:54 AM, Benjamin Marty <benjamin.ma...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am new to Kamailio and coming a bit from the Asterisk side.
>>
>> My goal is to set up a bunch of users on a Kamailio Instance on AWS EC2 and 
>> get them able to call each other and talk to each other over the Internet 
>> without P2P media stream.
>>
>> Is rtpproxy the tool that enables that? As far my knowledge is right 
>> Kamailio isn't able to do any sort of RTP handling.
>>
>>
>> Regards,
>>
>> Benjamin
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio NAT AWS EC2

2018-03-26 Thread Benjamin Marty
Hi,

I am new to Kamailio and coming a bit from the Asterisk side.

My goal is to set up a bunch of users on a Kamailio Instance on AWS
EC2 and get them able to call each other and talk to each other over
the Internet without P2P media stream.

Is rtpproxy the tool that enables that? As far my knowledge is right
Kamailio isn't able to do any sort of RTP handling.


Regards,

Benjamin
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio behind NAT no Audio

2018-03-22 Thread Benjamin Marty
Hi,

I am new to Kamailio and coming a bit from the Asterisk side.

Currently I'm using the Amazon EC2 Infrastructure and set up an Kamailio
with standard configuration. EC2 uses Destination NAT on their side. Thus I
enabled WITH_NAT and WITH_NATSIPPING. I'm using the rtpproxy from master
branch of https://github.com/miconda/rtpproxy.

Besides those two parameters I also changed the listen parameter in the
Kamailio config:
listen=udp:10.0.0.221:5060 advertise 52.59.XXX.XXX:5060

My rtpproxy is running with following parameters:
./rtpproxy -A 52.59.XXX.XXX -F -l 10.0.0.221 -m 2 -M 3 -s
udp:*:7722 -d INFO

When I use two Softclients (Zoiper) on different Networks (with Source NAT
on the Firewall) the Softclient tries to transmit the RTP Packets to the
Public IP of the other Network. But the Client obviously thus doesn't get
the RTP Packets. Is there an easy and documented way to solve that issue?

If I understood it correctly Kamailio together with rtpproxy should be able
to receive the RTP Packets and forward them to the other client. So it
should signal the IP of the Kamailio to send the RTP packets to. Or am I on
the complete wrong way?

Regards,

Benjamin
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users