[SR-Users] Missing documentation

2018-10-16 Thread Pan Christensen
Hello. The documentation for the ims_usrloc_scscf module seems to be missing: Not Found The requested URL /docs/modules/stable/modules/ims_usrloc_scscf.html was not found on this server. Apache/2.4.10 (Debian) Server at www.kamailio.org Port 443 Pan B. Christe

Re: [SR-Users] Missing documentation

2018-10-16 Thread Pan Christensen
Also missing from devel: Not Found The requested URL /docs/modules/devel/modules/ims_usrloc_scscf.html was not found on this server. Apache/2.4.10 (Debian) Server at www.kamailio.org Port 443 Pan B. Christensen Utvikler Phonect AS Mail: pan.christen...@phonect

[SR-Users] Problem with callid as htable key

2018-10-16 Thread jenus
Hello, I'm running kamailio 5.1.4 and running into a issue with htable. I use it to store some dialog data so i can use it in a http route. When i use the callid as a key it creates a issue for callid's starting with eq. Here some example code that i use to reproduce the issue: modparam("ht

Re: [SR-Users] Missing documentation

2018-10-16 Thread Pan Christensen
The documentation for this module seems to be missing everywhere: I've checked 4.0, 4.1, 4.2, 4.3, 4.4, 5.0 and 5.1 in addition to stable and devel. Pan B. Christensen Utvikler Phonect AS Mail: pan.christen...@phonect.no + 47 41 88 88 00 [mail_footer] From:

Re: [SR-Users] Problem with callid as htable key

2018-10-16 Thread Daniel-Constantin Mierla
Hello, the expression in the $shtcn(table=>exp) can have some operators at the beginning, see:   - https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#shtcn_htable_exp So, eq is one of them, the safest is to explicitly set the operator if you cannot predict what is the key, like in thi

Re: [SR-Users] Missing documentation

2018-10-16 Thread Daniel-Constantin Mierla
Hello, the module came via the openimscore.org project and it was missing docs from its import time. Maybe someone that is using the module can add docs for it. Cheers, Daniel On 16.10.18 09:49, Pan Christensen wrote: > > The documentation for this module seems to be missing everywhere: > >   >

[SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Daniel-Constantin Mierla
Hello, kamcli tool just got its first official release, a step forward in the process of packaging it. It is a command line tool that aims to be a modern alternative to the venerable kamctl, being written in Python and having already a large set of implemented sub-commands, such as:   * subscrib

Re: [SR-Users] Problem with callid as htable key

2018-10-16 Thread jenus
Daniel, Thanks for the quick response, that indeed solves my problem. Jan Daniel-Constantin Mierla schreef op 2018-10-16 09:55: Hello, the expression in the $shtcn(table=>exp) can have some operators at the beginning, see:   - https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#sh

Re: [SR-Users] Problem with callid as htable key

2018-10-16 Thread Daniel-Constantin Mierla
Just to add that regexp matching when using keys from the sip message such as call-id is exposed further to some issues -- for example, it is common to have . (dot) in call-id, which for a regexp is matching any char, so a call id having 123.456 is matching 123x456. So depending on what you want to

Re: [SR-Users] Problem with callid as htable key

2018-10-16 Thread jenus
Daniel, Ok so if i'm correct i can prefix the callid with for example 1234 to avoid matching the eq. In other words eq will only match the regex code if the callid string starts with it? And by mathing on equal you mean: $shtcn(ht_test=>==$var(htid)) ? Thanks, Jan Daniel-Constantin Mierla

Re: [SR-Users] Problem with callid as htable key

2018-10-16 Thread Daniel-Constantin Mierla
If no operator is matched in the first two characters of expression part for $shtcn(...), then regexp is used. That's because initially the $shtcn() was doing only regexp matching, later it was added support for additional operators. Yes, == is the operator for equal. Cheers, Daniel On 16.10.18

Re: [SR-Users] Missing documentation

2018-10-16 Thread Carsten Bock
Hi, can you open a ticket on the GitHub Tracker for this? Otherwise this might get lost at some point... I don't have time to take care of it immediately as I am travelling this and next week, more likely I would take care of it later in November. Thanks, Carsten -- Carsten Bock CEO (Geschäftsfü

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Samuel F .
Great and thank you! Is there a writeup on how these tools differ and what one should use? kamcmd kamcli kamctl kamdbctl From: sr-users on behalf of Daniel-Constantin Mierla Sent: Tuesday, October 16, 2018 10:03 To: Kamailio (SER) - Devel Mailing List; Kamaili

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Daniel-Constantin Mierla
Probably we should put this information somewhere in the wiki, for now here is sort of short presentation for each: 1) kamctl and kamdbctl are related, both being shell scripts (developed over the time from the old serctl/openserctl), the first is for interacting with a kamailio instances, the se

Re: [SR-Users] Sharing xavp’s between nodes.

2018-10-16 Thread Igor Olhovskiy
Idea is I’m not sure I can store XAVP in htable due to different data types they are handle. Regards, Igor On Oct 15, 2018, 10:39 PM +0300, Henning Westerholt , wrote: > Am Donnerstag, 11. Oktober 2018, 09:21:28 CEST schrieb Igor Olhovskiy: > > Is there any possibility to share xavp’s between Kam

[SR-Users] Kamailio topoh and t_check_trans not working.

2018-10-16 Thread José Seabra
Hi all, I noticed that using the module TOPOH with the parameter mask call id enabled and the t_check_trans together isn't working correctly. When i receive the BYE message my script call the function t_check_trans() in order to check if a message belongs or is related to a transaction. This func

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Samuel F .
Thank you for the clarifications. It would be great to add that to the wiki. It would also be nice to have a recommendation to users what tool should be used by newcomers, ie. what is currently the tool under development / not being deprecated. From: Daniel-Const

Re: [SR-Users] Kamailio topoh and t_check_trans not working.

2018-10-16 Thread Daniel-Constantin Mierla
Hello, t_check_trans() is checking if there is a retransmission, not if a request belongs to a dialog. Did you get the same BYE sent twice at more or less same time? Cheers, Daniel On 16.10.18 18:00, José Seabra wrote: > Hi all, > > I noticed that using the module TOPOH with the parameter mask

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Daniel-Constantin Mierla
None of them is deprecated at this moment. Both kamctl and kamcli can execute rpc commands, but over jsonrpc (relying on jsonrpcs module), not over binrpc (which relies on ctl module) like kamcmd. The features in kamcmd not existing in the other are tab completion for rpc command names and sessio

Re: [SR-Users] Missing documentation ims_usrloc_scscf module

2018-10-16 Thread Henning Westerholt
Am Dienstag, 16. Oktober 2018, 13:31:08 CEST schrieb Carsten Bock: > can you open a ticket on the GitHub Tracker for this? Otherwise this might > get lost at some point... I don't have time to take care of it immediately > as I am travelling this and next week, more likely I would take care of it >

Re: [SR-Users] Kamailio topoh and t_check_trans not working.

2018-10-16 Thread José Seabra
Hi Daniel, Thank you for the clarification regarding to the t_check_trans. Kamailio only receives one BYE, pls note that in the same call scenario but with mask call ID disabled it works correctly. we are using the default kamailio script, we just included the topoh module on it. Thank you for t

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Samuel F .
Alright, I was more thinking about it from a newcomer perspective. When one is evaluating Kamailio, it will be difficult to understand what to use. Documentations and tutorials everywhere will be messy since all of them will use different tools. Also, from a development perspective, is it not a

Re: [SR-Users] Kamailio topoh and t_check_trans not working.

2018-10-16 Thread Daniel-Constantin Mierla
Hello, not sure about what you mean with "the same call scenario but with mask call ID disabled it works correctly". Initially you said about t_check_trans(): "once that the BYE belongs to an existing dialog it must return true". Again, this is not something t_check_trans() does, only if you have

Re: [SR-Users] kamcli v1.1.0 released

2018-10-16 Thread Daniel-Constantin Mierla
Only kamctl and kamcli overlap in what they try to be. Maybe at some point one will become more popular and the other can be obsoleted. kamctl tries to have dependencies only among core utils of a unix/linux system, but then it has the limitations of a shell script. kamcmd is just a binrpc client

Re: [SR-Users] Sharing xavp’s between nodes.

2018-10-16 Thread Daniel-Constantin Mierla
The xavps are specific for an transaction, even if you replicate them, it won't make much sense on the other instance if you do not have the transaction to associate the replicated xavps to it. One of the xavps related to dispatcher is storing the pointer to the local socket to be used for sending