[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
Daniel-Constantin Mierla writes: > It might be a regression by commit 675f6c02248, can you try with latest > master or with the patch of the commit: > >   - > https://github.com/kamailio/kamailio/commit/4dc37aee853bbcf9d7fdb96245b76aaa8dfa2930 I tried with latest master and it started OK.

[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Daniel-Constantin Mierla via sr-users
On 11.03.24 20:45, Juha Heinanen via sr-users wrote: > Daniel-Constantin Mierla writes: > >> what are the operating system and the compiler used? > Sorry, Debian 12 using gcc version 12.2.0. It might be a regression by commit 675f6c02248, can you try with latest master or with the patch of the

[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
Daniel-Constantin Mierla writes: > what are the operating system and the compiler used? Sorry, Debian 12 using gcc version 12.2.0. -- Juha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to

[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Daniel-Constantin Mierla via sr-users
Hello, what are the operating system and the compiler used? Cheers, Daniel On 11.03.24 07:45, Juha Heinanen via sr-users wrote: > My SIP proxy didn't start with Kamailio 5.8 using the same config that > starts OK with 5.7. The error is: > > 2024-03-11T06:56:06.457107+02:00 lohi

[SR-Users] 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
My SIP proxy didn't start with Kamailio 5.8 using the same config that starts OK with 5.7. The error is: 2024-03-11T06:56:06.457107+02:00 lohi /usr/bin/sip-proxy[2358954]: DEBUG: acc [acc_mod.c:362]: parse_failed_filter(): failed_filter 0 = 407 2024-03-11T06:56:06.457265+02:00 lohi

[SR-Users] Re: topology hiding with active dispatcher ip

2024-03-11 Thread Alex Balashov via sr-users
You can obtain the destination set IP from $dd, or $(du{uri.host}). However, you can't just modify the To URI like that. You will need to do it in a way that doesn't break standards-based proscriptions about what a proxy can do, otherwise endpoint A can look at the modified header received in

[SR-Users] topology hiding with active dispatcher ip

2024-03-11 Thread marek via sr-users
hi, i have kamailio acting as SBC i need hide topology like this ds_select_dst(DSP_GRP_TRUNK, "6"); $tu = $(tu{re.subst,/PRIVATE_IP/IP_OF_CURRENT_SELECTED_DISPATCHER/g}); what is best way for IP extraction  from $du? thanks Marek __

[SR-Users] Kamailio Yocto package

2024-03-11 Thread Olle E. Johansson via sr-users
Hello Kamailians! Before I start going down this path - anyone that has written a Kamailio Yocto layer and want to share either layer or experience or both? For those that doesn’t know: Yocto is a toolkit for building your own Linux distros for embedded systems. /O

[SR-Users] Re: append_hf not working

2024-03-11 Thread Calvin E. via sr-users
Thank you everyone for the feedback. I realized my initial post was bereft of details. I'm not at liberty to share the entire script, but I will try to distill it. The original INVITE is sent to our internal STI-VS which returns a 302. Kamilio handles that locally and then sends the INVITE back to

[SR-Users] Re: append_hf not working

2024-03-11 Thread Ben Kaufman via sr-users
There's also the question of when the header was appended as well, right? Calling append_hf() after creating a transaction will only apply that header to the current branch, not to subsequent branches. -Original Message- From: James Browne via sr-users Sent: Monday, March 11, 2024

[SR-Users] Re: append_hf not working

2024-03-11 Thread James Browne via sr-users
One pitfall would be to think that this function would add this header field to any reply that kamailio would send. This append_hf() function should add a header field to a SIP request that it *relays*, but would not add it to a response that kamailio *generates* (for that, you would use the

[SR-Users] Re: append_hf not working

2024-03-11 Thread Alex Balashov via sr-users
Indeed, it has become a bit of a cliché that msg_apply_changes() should be called after append_hf(), uac_replace_from(), etc. This should be dispelled. In the vast majority of use-cases, it is not only unnecessary, but highly undesirable. -- Alex > On 11 Mar 2024, at 06:45, Henning Westerholt

[SR-Users] Re: append_hf not working

2024-03-11 Thread Henning Westerholt via sr-users
Hello, the usage of msg_apply_changes is not necessary (not even recommended) for append_hf (and other functions) to work. The OP was talking about a packet capture, so I assume that he got the capture after the proxy send out the message. Cheers, Henning -- Henning Westerholt –

[SR-Users] Re: SIP Redirect Server

2024-03-11 Thread Ihor Olkhovskyi via sr-users
As I was involed in this conversation via other channel, some comments on this to the community. 1. Kamailio is acting according to these parts of 3261 - https://www.rfc-editor.org/rfc/rfc3261.html#section-18.2.1 If the host portion of the "sent-by" parameter contains a domain name, or if it

[SR-Users] Re: append_hf not working

2024-03-11 Thread Unai Rodriguez via sr-users
Using https://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.f.msg_apply_changes might be relevant in your case... With best wishes, Unai Rodriguez On 11 Mar 2024 at 09:22 +0100, Benoit Panizzon via sr-users , wrote: > Hi Calvin > > > I'm trying to add something simple like

[SR-Users] Re: append_hf not working

2024-03-11 Thread Benoit Panizzon via sr-users
Hi Calvin > I'm trying to add something simple like the following: > > append_hf("X-testheader: True\r\n", "From"); > > However, I don't see my X-testheader in a packet capture. Are there > any common pitfalls that would prevent append_hf from working as > expected? Weird, I use this a lot and