[SR-Users] TOPOS module and fix_nated_contact

2020-10-12 Thread Minh Phan
Hi List, I am using Topos module to hide network topology. I am having a problem of routing the ACK request for REINVITE. Here is the schema: A KAMAILIO B 1. - INVITE > 2. < 180 RINGING --- 3. < 200 OK--- 4

[SR-Users] Regd : SIP Configuration in Kamailio

2020-10-12 Thread Santanu B
Hi, We are using Jitsi Meet for Video Conference Service. We want our SIP endpoint to join in the conference room in Jitsi. For that i am trying to configure Kamailio SIP Server in our environment. I have installed the Server and my endpoints are registered in my SIP server. Both endpoints are able

Re: [SR-Users] Load balance on HA scenario

2020-10-12 Thread Alex Balashov
How useful that Kamailio can now do this independently! On 10/13/20 12:48 AM, Sergey Safarov wrote: Are you looking   ip_free_bind = 1? https://www.kamailio.org/wiki/cookbooks/5.4.x/core On Mon, Oct 12, 2020 at 5:34 PM Duarte Rocha > wrote: Greetings,

Re: [SR-Users] Load balance on HA scenario

2020-10-12 Thread Sergey Safarov
Are you looking ip_free_bind = 1? https://www.kamailio.org/wiki/cookbooks/5.4.x/core On Mon, Oct 12, 2020 at 5:34 PM Duarte Rocha wrote: > Greetings, > > I have two machines with Kamailio in a HA setup with replicated DB. For > simplicity let's say each machine has one HA IP and that IP can ju

Re: [SR-Users] Permissions address

2020-10-12 Thread David Villasmil
that's exactly what i did, thanks guys!! Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Tue, Oct 13, 2020 at 1:27 AM Alex Balashov wrote: > Try jsonrpc_exec()... > > — > Sent from mobile, with due apologies for brevity and errors. > > On Oct 12, 2020, at

Re: [SR-Users] Permissions address

2020-10-12 Thread Alex Balashov
Try jsonrpc_exec()... — Sent from mobile, with due apologies for brevity and errors. > On Oct 12, 2020, at 7:21 PM, David Villasmil > wrote: > >  > Hello guys, > > Is there any way to reload the address table in the cfg? I always need to use > "kamctl address reload"... > > > Regards, >

Re: [SR-Users] Permissions address

2020-10-12 Thread Sergiu Pojoga
Not entirely clear what you mean by 'in the cfg'. If you wanted to reload it from the kam config logic upon some event, then you can always execute RPC commands like so: jsonrpc_exec('{"jsonrpc": "2.0", "method": "permissions.addressReload ", "id": 1}'); On Mon, Oct 12, 2020 at 7:21 PM David Vil

[SR-Users] Permissions address

2020-10-12 Thread David Villasmil
Hello guys, Is there any way to reload the address table in the cfg? I always need to use "kamctl address reload"... Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 ___ Kamailio (SER) - Users Mailing List sr-users@li

Re: [SR-Users] Local cache registration

2020-10-12 Thread Daniel-Constantin Mierla
Hello, somehow I haven't approached un-registrations in the previous email ... but it doesn't add that much. If the expires is 0 (variable $expires(...) can be useful here) in REGISTER and comes from a trusted security token, you can call save() with the flag for no-reply and forward to the main

[SR-Users] Load balance on HA scenario

2020-10-12 Thread Duarte Rocha
Greetings, I have two machines with Kamailio in a HA setup with replicated DB. For simplicity let's say each machine has one HA IP and that IP can jump to the other machine in case something happens (kamailio stopping, etc). I'm using Dispatcher with load balance configuration. I have Dispatcher

Re: [SR-Users] Local cache registration

2020-10-12 Thread David VILLAUME
Hello Daniel, Thanks for your clear and complete answer knowing I’ts nor part of a module your approach seems totally comprehensible to me . I imagine I can add a second htable with the A-leg expiration interval and a trigger on expire to perform an uac request to unregister on the B-leg. Than

Re: [SR-Users] Local cache registration

2020-10-12 Thread Daniel-Constantin Mierla
Hello, if you just want to accept intermediate every 5-min registrations based on source ip and port of a successful registration done every hour, that's quite simple to do in kamailio without any new module, actually not using uac module at all (see next details). The uac module is more flexible

Re: [SR-Users] Dispatcher stops working

2020-10-12 Thread Daniel-Constantin Mierla
If you are not sure that keepalives are configured properly or next hop gateways can reply promptly to OPTIONS keepalives, then just let dispatcher route calls anyhow to gateways and set a low value for retransmission timeout (see t_set_fr() from tm module). I noticed some old gateways forget to se

Re: [SR-Users] Local cache registration

2020-10-12 Thread David VILLAUME
Hello, I just try to reproduce what we actually have on Oracle or what is done in opensips mid_registrar module and trust the A leg user as long as it come from the same IP/port couple that have successfully registered. I paste the process description of the mechanism described on opensips modu

Re: [SR-Users] Local cache registration

2020-10-12 Thread Daniel-Constantin Mierla
Hello, just to add that the examples given in that old discussion with jsonrpc commands are now available with module functions, e.g.:   - https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg_enable So it is more simpler config these days and many more related features in

Re: [SR-Users] Local cache registration

2020-10-12 Thread Henning Westerholt
Hello, have a look e.g. at this thread (also the replies) to get some ideas: https://puck.nether.net/pipermail/voiceops/2018-June/007716.html Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com From: sr-users On Behalf

Re: [SR-Users] Local cache registration

2020-10-12 Thread Daniel-Constantin Mierla
If you do not have access to credentials on Kamailio, how do you want to authenticate registrations coming every 5min? If you want to reuse the auth headers from the 1-hour based registration, then you create a big security problem, normally nonce is valid very short time to avoid reply and offline

Re: [SR-Users] Local cache registration

2020-10-12 Thread Mack Hendricks
Hey David, No, the uac module really doesn’t do what you want based on how I understand your request. You really want to do what I call “Pass-Thru” auth with a cache. This is where your phones register thru Kamailio. But, you want Kamailio to act as a cache and invalidate the cache every hou

Re: [SR-Users] Local cache registration

2020-10-12 Thread David VILLAUME
I read again the uac doc and didn’t find a way to perform this using the functions that seems to require credentials that I don’t have on the kamailio host. Is the uac module really designed to perform this operation is that way ? Regards, David El Sun, 11 Oct 2020 20:07:58 +

Re: [SR-Users] Logging problem

2020-10-12 Thread Daniel-Constantin Mierla
Hello, can you make a pull request to update the documentation for acc module as you think it is the best, eventually adding also (with another commit) a note to dialog module docs as well? Just note that you have to change only the xml files inside the doc/ subfolder of the module, not the README

Re: [SR-Users] Logging problem

2020-10-12 Thread Jan Rozhon
Hi, I am writing only to finish this thread. I managed to make the cdr logging work. As I thought it was all about flags. The missing piece of information for me was that there is a need to set dialog flag for incoming invites: #!define FLD_DLG 4 modparam("dialog", "dlg_flag", FLD_DLG) if (is_me