[SR-Users] Building Debian packages for further modules

2024-02-21 Thread Christian Berger via sr-users

Hi,

for our workflow we build our own Debian packages for kamailio.

We are currently trying and failing to create a package for the kafka 
modules.


What we have tried so far:
Adding the "Build-Depends:" entries for librdkafka-dev in debian/control
Adding a "Package" in debian/control
Adding kafka to the PACKAGE_GROUPS in debian/rules

So far it seems to build the module and a package for it, but the 
package only contains metadata, but no .so file.


We are currently running out of ideas. What else can we do?

Best wishes
  Christian Berger

--

Christian Berger - ber...@sipgate.de
Telefon: +49 (0)211-63 55 55-0
Telefax: +49 (0)211-63 55 55-22

sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391

www.sipgate.de - www.sipgate.co.uk
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Kemi questions

2024-02-21 Thread Stefan-Cristian Mititelu via sr-users
Hi,

I have a follow-up question related to this.

I would like to use a python lib for mysql db connections and some simple 
queries(beside what other kama module queries). I tried to make a db connection 
per process in kemi "child_init()" function. All queries work ok for first and 
2'nd requests. However on 3'rd request received I get this error:


 kamailio[87876]: ERROR: db_mysql [km_dbase.c:122]: db_mysql_submit_query(): 
driver error on query: Lost connection to server during query (2013)
ERROR:  [db_query.c:141]: db_do_query_internal(): error while submitting 
query
ERROR: auth_db [authorize.c:178]: get_ha1(): failed to query database

The error goes away if I close the python db connection after each request. So 
it requires a new connect/disconnect for each request.

My questions are:

  1.  If I keep the python lib db connection per process, it should be 
available among new requests, right?
  2.  Is the above a bug when I do KSR.auth_db.auth_check(str,str,int)?

Thank you,
Stefan

From: Stefan-Cristian Mititelu via sr-users 
Sent: Tuesday, December 5, 2023 4:15:47 PM
To: Kamailio (SER) - Users Mailing List
Cc: Stefan-Cristian Mititelu
Subject: [SR-Users] Re: Kemi questions


Thank you,
Stefan


From: Daniel-Constantin Mierla 
Sent: Tuesday, December 5, 2023 4:06:08 PM
To: Kamailio (SER) - Users Mailing List
Cc: Stefan-Cristian Mititelu
Subject: Re: [SR-Users] Kemi questions

Hello,

On 05.12.23 14:50, Stefan-Cristian Mititelu via sr-users wrote:

Hello,

When writing kemi cfg (python in my case), is there any way to get rid of 
standard cfg shared variables and use kemi cfg variables instead?


E.g. Instead of $shv(blabla) (in standard config) can I use some global python 
var called 'blabla'? Is it seen and shared by all kamailio processes? Or I 
still need to use KSR.pv.get/set("$shv(blabla)") ?

the global python native variables are per process, so you can't replace 
$shv(...) with them. The python ones are more like $var(...) from kamailio.


However, instead of the generic KSR.pv.get/set(), you can use the alternative 
KEMI functions -- see them starting at:


  - 
https://www.kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#ksrpvxshv_get


Cheers,
Daniel


--
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy and Development Services
Kamailio Advanced Training -- asipto.com
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Freeswitch and Kamailio Integration.

2024-02-21 Thread Alex Balashov via sr-users
Hi Jayapal,

"Integration" is a vague concept. It's important to have some understanding of 
where Kamailio fits in in relation to FreeSWITCH, and what sort of 
functionality is provided by each. 

Broadly speaking, absent any other clarity, FreeSWITCH is a PBX and voice 
application server, while Kamailio can be thought of as a "router" or 
infrastructural "glue" that gets the traffic in and out of FreeSWITCH. A common 
application is to use Kamailio to scale up FreeSWITCH, e.g. as a load balancer. 
Kamailio has some other capabilities as well, such as being a centralised 
registrar used by multiple FreeSWITCH servers to reach end-user devices. 

Kamailio's logging destinations are basically up to you to manage. 
Traditionally, this was a matter of setting the `log_facility` core parameter:

https://www.kamailio.org/wikidocs/cookbooks/5.7.x/core/#log_facility

e.g. `log_facility=LOG_LOCAL0`, and then routing that facility in your syslog 
daemon configuration to a particular log file, e.g. in /etc/rsyslog.conf:

   local0.*  -/var/log/kamailio.log

With the advent of `systemd`, there is a systemd-journald and syslog forwarding 
dimension to this as well.

-- Alex

> On 21 Feb 2024, at 06:26, jayapal--- via sr-users 
>  wrote:
> 
> Greetings,
> 
> I am new to Kamailio and seeking assistance. I have installed FreeSWITCH 
> version 1.10.11 and Kamailio version 5.6.5. I have two inquiries:
> 
> I aim to configure FreeSWITCH with Kamailio. Could someone kindly guide me on 
> achieving this integration?
> 
> I am curious about the storage location of Kamailio's log files. Could 
> someone please provide information regarding this?
> 
> Thank you in advance for your help and guidance.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Freeswitch and Kamailio Integration.

2024-02-21 Thread jayapal--- via sr-users
Yes, for now, I need integration for the services like voicemail only.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Freeswitch and Kamailio Integration.

2024-02-21 Thread Who AmI via sr-users
Hi there,

The wiki is really good for this information and getting a base
understanding of the Kamailio software:
https://www.kamailio.org/wiki/tutorials/getting-started/main

I assume you mean Kamailio in front of your FreeSWITCH as an edge
gateway/loadbalancer? A really helpful site for me was nick vs networking
and his Kamailio series here:
https://nickvsnetworking.com/kamailio-introduction/

The default log local is syslog, but I export Kamailio specific logs to a
separate file these days. I think I used this to set it up years ago and it
still works with newer versions:
https://www.kamailio.org/wikidocs/tutorials/3.2.x/syslog/

Thanks,

John.



On Wed, 21 Feb 2024 at 11:49, jayapal--- via sr-users <
sr-users@lists.kamailio.org> wrote:

> Greetings,
>
> I am new to Kamailio and seeking assistance. I have installed FreeSWITCH
> version 1.10.11 and Kamailio version 5.6.5. I have two inquiries:
>
> I aim to configure FreeSWITCH with Kamailio. Could someone kindly guide me
> on achieving this integration?
>
> I am curious about the storage location of Kamailio's log files. Could
> someone please provide information regarding this?
>
> Thank you in advance for your help and guidance.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Freeswitch and Kamailio Integration.

2024-02-21 Thread Social Boh via sr-users

Hello,

what type of integration do you need?

Only media services like voicemail or?

Regards

---
I'm SoCIaL, MayBe

El 21/02/2024 a las 6:26 a. m., jayapal--- via sr-users escribió:

Greetings,

I am new to Kamailio and seeking assistance. I have installed FreeSWITCH 
version 1.10.11 and Kamailio version 5.6.5. I have two inquiries:

I aim to configure FreeSWITCH with Kamailio. Could someone kindly guide me on 
achieving this integration?

I am curious about the storage location of Kamailio's log files. Could someone 
please provide information regarding this?

Thank you in advance for your help and guidance.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Freeswitch and Kamailio Integration.

2024-02-21 Thread jayapal--- via sr-users
Greetings,

I am new to Kamailio and seeking assistance. I have installed FreeSWITCH 
version 1.10.11 and Kamailio version 5.6.5. I have two inquiries:

I aim to configure FreeSWITCH with Kamailio. Could someone kindly guide me on 
achieving this integration?

I am curious about the storage location of Kamailio's log files. Could someone 
please provide information regarding this?

Thank you in advance for your help and guidance.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: htable write access state

2024-02-21 Thread Daniel-Constantin Mierla via sr-users
Hello,

On 21.02.24 10:30, Patrick Karton via sr-users wrote:
> Hello are htable protected for  multiple write access? 
>
> can i safely update htable from one process and be sure another
> process will access it for write operation ? if yes is the lock on all
> the htable or only on the bucket where the key belongs ? 

yes, read and write are protected by a lock on the bucket where the key
is stored.


Only if you need to do a read, plus some other operations to update the
item and then write back, without letting other process to update the
item meanwhile, you need to do locking using the functions provided by
htable in this scope.


Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, February 20-22, 2024 -- asipto.com
Kamailio World Conference, April 18-19, 2024, Berlin -- kamailioworld.com
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] htable write access state

2024-02-21 Thread Patrick Karton via sr-users
Hello are htable protected for  multiple write access?

can i safely update htable from one process and be sure another process will 
access it for write operation ? if yes is the lock on all the htable or only on 
the bucket where the key belongs ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: