Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
On 15.03.22 18:46, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> Not the author, but the sanity module seems also designed around the >> format, not the content of the parts, relying mainly on parser. > OK, but the missing userpart before @ is a format thing? It is, that's why I

Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
The SIP parser was designed on purpose to be loosely in order to be able to fix broken SIP traffic. Without this "feature", making the parser very strict and dropping the traffic, Kamailio won't be that useful. I have been But there are config functions in textops, siputils, ... or regexp options

Re: [SR-Users] typo in documentation

2022-03-15 Thread Daniel-Constantin Mierla
Hello, although the recommended way is without db_ prefix, the db url should support also the name of the module as it is. What was the error message when using db_text? Cheers, Daniel On 15.03.22 17:16, Ovidiu Sas wrote: > Hello David, > > Example config updated! > Thank you for reporting it.

Re: [SR-Users] typo in documentation

2022-03-15 Thread Ovidiu Sas
Hello David, Example config updated! Thank you for reporting it. -ovidiu On Tue, Mar 15, 2022 at 8:59 AM David Villasmil wrote: > > Hello all, > > I was trying to implement db_text and the documentation states it should be > something like > > modparam("usrloc|auth_db", "db_url",

Re: [SR-Users] load to htable from flat file

2022-03-15 Thread David Villasmil
Thanks guys, Yeah i ended up using db_text (whose documentation is wrong, i sent another email on that) Many thanks! Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Tue, Mar 15, 2022 at 3:04 PM E. Schmidbauer wrote: > I prefer sqlite for something like

Re: [SR-Users] load to htable from flat file

2022-03-15 Thread E. Schmidbauer
I prefer sqlite for something like this On Tue, Mar 15, 2022, 7:11 AM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Hello guys, > > Is this possible? > > Regards, > > David Villasmil > email: david.villasmil.w...@gmail.com > phone: +34669448337 >

Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
Strange! The next log message indicates that it gets to From URI check: Mar 15 14:58:42 /usr/bin/sip-proxy[3043875]: DEBUG: sanity [sanity.c:776]: check_parse_uris(): looking up From header But for what so ever reason is not triggering a failure, it needs to dig in ... Daniel On 15.03.22

Re: [SR-Users] load to htable from flat file

2022-03-15 Thread Henning Westerholt
Hello, you could try dbtext module, is pretty similar to a flat-file format. Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com From: sr-users On Behalf Of David Villasmil Sent: Tuesday, March 15, 2022 12:11 PM To:

[SR-Users] typo in documentation

2022-03-15 Thread David Villasmil
Hello all, I was trying to implement db_text and the documentation states it should be something like modparam("usrloc|auth_db", "db_url", "db_text:///tmp/kamailiodb") but that doesn't work, it's modparam("usrloc|auth_db", "db_url", "text:///tmp/kamailiodb") so this line should probably be

Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
Can you double check that latest version is used for testing? You can also run with debug=3 and provide the logs printed by core and sanity module. Daniel On 15.03.22 11:13, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> Try again with a fresh master, let's see if this time

[SR-Users] load to htable from flat file

2022-03-15 Thread David Villasmil
Hello guys, Is this possible? Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list

Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
Try again with a fresh master, let's see if this time catches it. Daniel On 15.03.22 09:56, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> Just pushed a commit trying to catch this case. Can you test and see if >> works? > Unfortunately not catching the wrong From URI yet. > > --

Re: [SR-Users] clean an easy way to get sip uri of contact header

2022-03-15 Thread Henning Westerholt
Hello, you can use transformations together with the mentioned pseudo-variable for that. You can find a whole presentation about this topic here: https://skalatan.de/en/archive/presentations/kamailio-world-2021-presentation.pdf Cheers, Henning -- Henning Westerholt –

Re: [SR-Users] limit the length of Via branch parameter

2022-03-15 Thread Henning Westerholt
Hello Patrick, then you probably need to change the code of Kamailio. The length of the Via branch parameter is not restricted in RFC 3261. The relevant section only states: https://www.rfc-editor.org/rfc/rfc3261#section-8.1.1.7 The branch parameter value MUST be unique across space and

Re: [SR-Users] sanity from uri check

2022-03-15 Thread Daniel-Constantin Mierla
Just pushed a commit trying to catch this case. Can you test and see if works? Cheers, Daniel On 14.03.22 13:31, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> I pushed a commit for it. The new function was defined only when memory >> debug was on. > Thanks, now build succeeded,

Re: [SR-Users] clean an easy way to get sip uri of contact header

2022-03-15 Thread Patrick Karton
Yes just want to know how to strip down display name in Contact header if present.Le 15 mars 2022 01:54, Alex Balashov a écrit :Won’t $ct vs $hdr(Contact) address that?—Sent from mobile, with due apologies for brevity and errors.On Mar 14, 2022, at 8:51 PM, Patrick Karton wrote: