Re: [SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Iñaki Baz Castillo
2010/4/20 Alex Balashov : >> Hi, yes, a workaround is adding the headers in branch_route, it works. >> However I wonder if the expected behavior is that added headers are >> not keep in serial forking. Well, it could make sense. I just want to >> confirm. > > I too am surprised by this.  It seems t

Re: [SR-Users] Catching internally generated BYE event & other

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 8:36 PM, Alex Balashov wrote: On 04/19/2010 05:15 AM, Daniel-Constantin Mierla wrote: event_route should be called in this case. Can you test with dlg bridge to see if the event route is executed? I have not had a chance to test this with dlg_bridge() yet, but it clearly is not

Re: [SR-Users] Unregister when tcp connection timeout

2010-04-20 Thread Daniel-Constantin Mierla
please keep the mailing list cc-ed, others may benefit of this discussion, participate with ideas or solutions. On 4/20/10 9:18 PM, Bruno Bresciani wrote: Thank you for your help Daniel... I was reading the source code to understand the parameter "connection_timeout" in the TLS module 3.0.x ve

Re: [SR-Users] Catching internally generated BYE event & other

2010-04-20 Thread Alex Balashov
On 04/19/2010 05:15 AM, Daniel-Constantin Mierla wrote: event_route should be called in this case. Can you test with dlg bridge to see if the event route is executed? I have not had a chance to test this with dlg_bridge() yet, but it clearly is not working so well with dialog timeout/BYE. T

Re: [SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Alex Balashov
On 04/20/2010 12:46 PM, Iñaki Baz Castillo wrote: 2010/4/20 Juha Heinanen: lcr module does nothing to any headers, just destination set. what i do, i add gw specific headers in branch route block separately for each gw. if your gws share the headers, you should be able to add them in route blo

Re: [SR-Users] Unregister when tcp connection timeout

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 8:29 PM, Daniel-Constantin Mierla wrote: On 4/20/10 7:30 PM, Iñaki Baz Castillo wrote: 2010/4/20 Bruno Bresciani: Hi people, this is my first time that I writing to this list and I nedd some help... When kamailio lost connection with a user registred over TLS (timeout for examlp

Re: [SR-Users] Unregister when tcp connection timeout

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 7:30 PM, Iñaki Baz Castillo wrote: 2010/4/20 Bruno Bresciani: Hi people, this is my first time that I writing to this list and I nedd some help... When kamailio lost connection with a user registred over TLS (timeout for examlple), I want this user be unregister in kamailio too.

Re: [SR-Users] Unregister when tcp connection timeout

2010-04-20 Thread Iñaki Baz Castillo
2010/4/20 Bruno Bresciani : > Hi people, this is my first time that I writing to this list and I nedd some > help... When kamailio lost connection with a user registred over TLS > (timeout for examlple), I want this user be unregister in kamailio too. How > can I make this unregister? It's a comme

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 7:16 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: > Does not make lot of sense in my opinion since it is very easy to do > with substr: > > head: {s.substr, 0, len} > tail: {s.substr, -len, 0} > > striptail requied computation of the length and use of

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Does not make lot of sense in my opinion since it is very easy to do > with substr: > > head: {s.substr, 0, len} > tail: {s.substr, -len, 0} > > striptail requied computation of the length and use of that in substr, > making it a bit too complex. yes

[SR-Users] Unregister when tcp connection timeout

2010-04-20 Thread Bruno Bresciani
Hi people, this is my first time that I writing to this list and I nedd some help... When kamailio lost connection with a user registred over TLS (timeout for examlple), I want this user be unregister in kamailio too. How can I make this unregister? Thank you... __

Re: [SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Iñaki Baz Castillo
2010/4/20 Iñaki Baz Castillo : > Hi, yes, a workaround is adding the headers in branch_route, it works. > However I wonder if the expected behavior is that added headers are > not keep in serial forking. Well, it could make sense. I just want to > confirm. Issue solved! The problem is that I was

Re: [SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Iñaki Baz Castillo
2010/4/20 Juha Heinanen : > lcr module does nothing to any headers, just destination set.  what i > do, i add gw specific headers in branch route block separately for each > gw.  if your gws share the headers, you should be able to add them in > route block before starting to call next_gw()s and t_

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 6:30 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: > should be fixed now. Let me know if works fine for you. the same test now worked ok. i'll make more tests later. now that you have implemented strips, how about the opposite, i.e., head and tail? Does not m

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > should be fixed now. Let me know if works fine for you. the same test now worked ok. i'll make more tests later. now that you have implemented strips, how about the opposite, i.e., head and tail? -- juha ___ SIP E

[SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Juha Heinanen
Iñaki Baz Castillo writes: > Hi, I receive a request, append some custom headers and use > "load_gws()" (from LCR module). > If the first gateway fails I do "next_gw()" and this second request to > the second gateway doesn't contain the previously appended custom > headers. > > Is it the e

[SR-Users] Appended headers are not added in serial forking

2010-04-20 Thread Iñaki Baz Castillo
Hi, I receive a request, append some custom headers and use "load_gws()" (from LCR module). If the first gateway fails I do "next_gw()" and this second request to the second gateway doesn't contain the previously appended custom headers. Is it the expected behavior? -- Iñaki Baz Castillo _

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Daniel-Constantin Mierla
On 4/20/10 5:36 PM, Juha Heinanen wrote: Juha Heinanen writes: > i got core dump. most like from this statement: > > $rU = $(var(unescaped_user){s.strip,4}); it turned out that in this test $var(unescaped_user) only had 4 chars, i.e., they all got stripped. then this empty string is

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Daniel-Constantin Mierla
Hello, On 4/20/10 5:36 PM, Juha Heinanen wrote: Juha Heinanen writes: > i got core dump. most like from this statement: > > $rU = $(var(unescaped_user){s.strip,4}); it turned out that in this test $var(unescaped_user) only had 4 chars, i.e., they all got stripped. then this empty str

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Juha Heinanen
Juha Heinanen writes: > i got core dump. most like from this statement: > > $rU = $(var(unescaped_user){s.strip,4}); it turned out that in this test $var(unescaped_user) only had 4 chars, i.e., they all got stripped. then this empty string is supposed to be assigned to $rU. the test may no

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I just committed s.strip and s.striptail transformations: > http://sip-router.org/wiki/cookbooks/transformations/devel#sstrip_len > > Testing and feedback is appreciated. daniel, i got core dump. most like from this statement: $rU = $(var(unescaped_user)

Re: [SR-Users] PVs in Regular Expression Transformations

2010-04-20 Thread Daniel-Constantin Mierla
On 4/12/10 8:04 PM, Daniel-Constantin Mierla wrote: On 4/12/10 7:59 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: > it supports only strings. The subst expression is pre-compiled at startup. > > Some development is required to extend for what you want. daniel, no problem,

Re: [SR-Users] new module: embedded lua

2010-04-20 Thread Daniel-Constantin Mierla
fyi, i just added support to execute module functions from Lua. There is a restriction not to execute functions with fixups for parameters but no free-fixup. SR Lua API is documented at: http://sip-router.org/wiki/api/lua/devel Cheers, Daniel On 2/11/10 12:28 PM, Daniel-Constantin Mierla wro

Re: [SR-Users] Re-invite problems with t.38?

2010-04-20 Thread Klaus Darilion
Hi Espen, can you provide the traces with proper line break? E.g. I always use "ngrep -W byline -t -q -P "" any-pattery port 5060" regards klaus Am 17.04.2010 21:39, schrieb Espen Berg: Den 15.04.2010 13:27, skrev Klaus Darilion: How would you have written it? I prefer this logic: ... if