Re: [SR-Users] Setting $conid per branch

2021-03-09 Thread Daniel-Constantin Mierla
Hello, a while ago I did some work to make possible to specify the outgoing tcp connection id, see:   * https://www.kamailio.org/docs/modules/stable/modules/tcpops.html#tcpops.f.tcp_set_otcpid And the next function after it. However, the testing was minimal, maybe not verifying the entire chain

Re: [SR-Users] limits in hashtable

2021-03-09 Thread Daniel-Constantin Mierla
Hello, double check and be sure that the key_type for these items in database is set to 1. And instead of kamcmd, try to use "kamctl rpc ..." (or "kamcli rpc"), they work with jsonrpcs module which should not use buffers with limited size for rpc response. Cheers, Daniel On 09.03.21 22:44, Henn

Re: [SR-Users] Setting $conid per branch

2021-03-09 Thread Marrold
Hi, I've done a bit more digging and realised that $conid is read-only, and only available for an inbound connection - so I dont think it will achieve what I need. I did a bit more troubleshooting and observed the differences in the debug log between two identical calls: This example failed - th

Re: [SR-Users] limits in hashtable

2021-03-09 Thread Henning Westerholt
Hi Fabian, just some notes, as it could be different causes. The hash table size (2^16) is just for the number of hash buckets; it can of course hold more values than this. Have e.g., a look to Wikipedia for the hash table data structure concepts. So, the hash table should be able to hold all

[SR-Users] limits in hashtable

2021-03-09 Thread Fabian Borot
Hi I have a hashtable with about 2500 elements in it. Some of the key_names are the same and in the config file and I traverse them using the index. The problem that I am having is that not all the values are loaded into memory. Lets say I have 5 entries with key_name and key_values like this: 1

Re: [SR-Users] kamcmd dlg.end_dlg not working in shell script

2021-03-09 Thread Andrew Chen
Thanks guys. Here is the whole function I created: function FollowUpAction { SIPCallID=$1 if [ $callStatus -ge 7 ] && [ $callStatus -le 15 ]; then GetDialogID $SIPCallID log "$(date) Found active dialog on completed call. Delete call using $h_entry $h_id on SIP Call-ID $SIPCallI

Re: [SR-Users] Can't show single location via kamctl

2021-03-09 Thread Jon Bonilla (Manwe)
El Tue, 9 Mar 2021 12:32:19 +0100 Daniel-Constantin Mierla escribió: > The domain in the jsonrpc response refers to the location table -- > somehow internally the name of the table storing the contacts is also > referred as domain. I just pushed a patch to add table to the response text. > > Do

Re: [SR-Users] kamcmd dlg.end_dlg not working in shell script

2021-03-09 Thread David Villasmil
Specially if you don’t show the script source. On Tue, 9 Mar 2021 at 08:51, Daniel-Constantin Mierla wrote: > Hello, > > it is hard to say why your shell script does not work, when the command > runs ok in the terminal. Maybe missing/empty parameters, or insufficient > access rights, ... > > Che

Re: [SR-Users] Can't show single location via kamctl

2021-03-09 Thread Daniel-Constantin Mierla
The domain in the jsonrpc response refers to the location table -- somehow internally the name of the table storing the contacts is also referred as domain. I just pushed a patch to add table to the response text. Do you use save("location") and lookup("location") or another table name? The kamctl

[SR-Users] Server requirements estimation

2021-03-09 Thread Marat Gareev
Hello! I'm configuring Kamailio proxy and trying to find instructions or advises for choosing the following options: *Host specific* - Number of cores - RAM size *Kamailio specific* - Number of children to fork for the UDP interfaces - Shared memory size The proxy will not connect

Re: [SR-Users] Can't show single location via kamctl

2021-03-09 Thread Jon Bonilla (Manwe)
El Tue, 9 Mar 2021 09:32:00 +0100 Daniel-Constantin Mierla escribió: > Hello, > > the error message from kamctl, not from kamailio. You need to set > SIP_DOMAIN inside kamctlrc file or do: kamctl ul show username@domain, > where domain can be localhost or anything else. The kamctl is built that

Re: [SR-Users] Route - loose_route

2021-03-09 Thread Daniel-Constantin Mierla
Hello, do you add the route header content manually? Because there is a r2=on but there is a single Route header. The r2=on means that the kamailio added two Record-Route (and thus there have to be 2 Route headers) and it will consume 2 of them. So, just remove r2=on if that is the case. Cheers,

Re: [SR-Users] kamcmd dlg.end_dlg not working in shell script

2021-03-09 Thread Daniel-Constantin Mierla
Hello, it is hard to say why your shell script does not work, when the command runs ok in the terminal. Maybe missing/empty parameters, or insufficient access rights, ... Cheers, Daniel On 08.03.21 20:23, Andrew Chen wrote: > Hi all, > > I have a script that cleans up hanging dialog and for some

[SR-Users] Setting $conid per branch

2021-03-09 Thread Marrold
Hi all, I'm currently adding a feature to our Kamailio configuration to fork calls based on user agent. To do so I'm getting the registered endpoints with reg_fetch_contacts() iterating through and matching on them, then using seturi() / append_branch() and setting the dst-uri and flags as requir

Re: [SR-Users] Lookup issue with websockets contacts

2021-03-09 Thread Daniel-Constantin Mierla
Hello, the lookup location is not done on contact, but on the AoR, so be sure the r-uri is like sip:user@domain and not the WS contact address. To troubleshoot, maybe you can set debug=3 in kamailio.cfg and then watch the DEBUG messages, they can provide further details about what happens when pr

Re: [SR-Users] TLS certificate unknown

2021-03-09 Thread Daniel-Constantin Mierla
Hello, if the certificates are deployed, be sure that the process running kamailio has privileges to read them. You can set: debug=3 in kamailio.cfg and then run again kamailio, you should see many DEBUG messages, many from tls module that should give more hints about what happens there.

Re: [SR-Users] client TLS session reuse problem

2021-03-09 Thread Daniel-Constantin Mierla
Hello, the renegotiation parameter is for cyphers, not for reusing the session. Kamailio relies on libssl and does not do anything specific for reusing the session. On the other hand, maybe you refer to reusing the same connections between kamailio and the next sip node, for the traffic that is

Re: [SR-Users] Core dumps/crash handlers

2021-03-09 Thread Daniel-Constantin Mierla
Hello, the core dump should be written no matter the parent process catches the child signals. You have to be sure that the process can write the core file, either by having a sufficient limit or the user that runs the process has enough privileges (e.g., run as root). Cheers, Daniel On 07.03.2

Re: [SR-Users] Can't show single location via kamctl

2021-03-09 Thread Daniel-Constantin Mierla
Hello, the error message from kamctl, not from kamailio. You need to set SIP_DOMAIN inside kamctlrc file or do: kamctl ul show username@domain, where domain can be localhost or anything else. The kamctl is built that way, is not really aware that the kamailio is multi-domain enabled or not. Actual