Re: [SR-Users] call disconnects after 32 seconds

2017-09-26 Thread Adesh Pandey
Hi Alex, Could you please help me to fix that or inspect that? On Wed, Sep 27, 2017 at 10:20 AM Alex Balashov wrote: > That sounds a lot like an end-to-end ACK that isn't making it from > caller to callee. > > On Wed, Sep 27, 2017 at 04:46:45AM +, Adesh Pandey

Re: [SR-Users] call disconnects after 32 seconds

2017-09-26 Thread Alex Balashov
That sounds a lot like an end-to-end ACK that isn't making it from caller to callee. On Wed, Sep 27, 2017 at 04:46:45AM +, Adesh Pandey wrote: > Hi, > I have set up the Kamailio as load balancer using dispatcher module but all > the calls get disconnected after 30 seconds (call is forwarded

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Jean Cérien
Ok - found it !! I've managed to get the cseq incremented following the info in this post: https://github.com/kamailio/kamailio/issues/679 Many thanks for your help, J. On Tue, Sep 26, 2017 at 3:34 PM, Jean Cérien wrote: > > Hi > > Still searching on that one. My guess

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Jean Cérien
Hi Still searching on that one. My guess now is that I am receiving another 401 because the CSEQ does not get incremented. INVITE cseq 102---> < 401 (with nonce) cseq 102 ACK cseq 102 ---> INVITE ---> with correct nonce & response, I've recalculated the response, it is ok -- cseq 102 <---

Re: [SR-Users] dialog:active_dialogs counter is steadily increasing

2017-09-26 Thread Daniel-Constantin Mierla
Hello, is the sip server restarted? After a quick investigation, it appears that the saved dialogs in db are counted twice at startup ... I need to look more at it to confirm or not. Cheers, Daniel On 26.09.17 14:39, Andrew Pogrebennyk wrote: > Hi Daniel, > > On 09/26/2017 08:48 AM,

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Jean Cérien
Thanks - I've done some progress - I've hard coded temporarily the user, pass & realm, and authentication goes out now. However, the provider is answering with a 401 & a new nonce. here is what I have INVITE ---> < 401 (with nonce) ACK ---> INVITE ---> with correct nonce & response, I've

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Daniel Tryba
On Tue, Sep 26, 2017 at 09:36:19AM -0400, Jean Cérien wrote: > I've inserted the following block on the failure route: > if (t_check_status("401|407")) { > xlog("L_INFO","failure_route(ROUTEFAIL) @@ call to > uac_auth()\n"); > uac_auth(); >

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Jean Cérien
Thanks Daniel for your usual help, it is really appreciated ! I've inserted the following block on the failure route: if (t_check_status("401|407")) { xlog("L_INFO","failure_route(ROUTEFAIL) @@ call to uac_auth()\n"); uac_auth(); t_relay();

Re: [SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Daniel Tryba
On Tue, Sep 26, 2017 at 09:08:26AM -0400, Jean Cérien wrote: > With the UACREG module, I am registering to a remote provider. Register > goes out, 401 back, Register goes out with nonce & co, OK > > Later, when I send an invite, the provider issues an 401 Unauthorized. I > guess it expects me to

[SR-Users] UACREG - answering to 401 on invite

2017-09-26 Thread Jean Cérien
Hello I'm using Kamailio 5.0.1 With the UACREG module, I am registering to a remote provider. Register goes out, 401 back, Register goes out with nonce & co, OK Later, when I send an invite, the provider issues an 401 Unauthorized. I guess it expects me to resubmit an INVITE with the

Re: [SR-Users] dialog:active_dialogs counter is steadily increasing

2017-09-26 Thread Andrew Pogrebennyk
Hi Daniel, On 09/26/2017 08:48 AM, Daniel-Constantin Mierla wrote: > do you have dialogs terminated due to timeout or via rpc commands? the rpc is not being used, but we do have a dlg_timeout of 12 hours. There are a few calls every day that are terminated on timeout, but this is a very small

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-26 Thread George Diamantopoulos
I forgot to mention, I'm using Kamailio 5.0.3 on debian "stretch". On 26 September 2017 at 14:40, George Diamantopoulos wrote: > Hello all, > > I've been trying to utilise event_route[htable:mod-init] in order to load > information from the database into an htable on

[SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-26 Thread George Diamantopoulos
Hello all, I've been trying to utilise event_route[htable:mod-init] in order to load information from the database into an htable on startup. However, Kamailio exits with an error for no obvious (to me) reason. Here's the log output: DEBUG: htable [htable.c:226]: child_init(): rank is (-127)

Re: [SR-Users] How to change SDP in 200 Ok reply

2017-09-26 Thread Jurijs Ivolga
Hi, Sorry it was my mistake, I was searching for wrong string. :) With kind regards, Jurijs On Tue, Sep 26, 2017 at 10:47 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > if it is onreply_route{} (or reply_route{}), then it is executed for SIP > replies, not requests. > >

Re: [SR-Users] How to do replace_body_all with Kemi python version kamailio 5.0.x

2017-09-26 Thread Muhammad Zaka
Hi We are experiencing issue with python script KSR. textops.replace_body_all using branch 5.0.2: - Example Code: KSR.textops.replace_body_all("a=sendonly", "a=sendrecv") It looks like that the module textops and textopsx are not available. Using $rb or $msg(body) pseudo variables isn't

Re: [SR-Users] Send 407 for Invite

2017-09-26 Thread Daniel-Constantin Mierla
Hello, a rather safe bet is using auth_challenge() for any SIP request that you want to authenticate. For invite it will send 407:   - https://kamailio.org/docs/modules/devel/modules/auth.html#auth.f.auth_challenge It is used also in the default kamailio.cfg, so that's a good example of how to

Re: [SR-Users] Send 407 for Invite

2017-09-26 Thread Logeshwaran G
Got it, Thanks a lot Thanks & Kind Regards, *Logeshwaran G* *"Be Hungry, Stay Foolish"* On Tue, Sep 26, 2017 at 1:19 PM, Sebastian Damm wrote: > Hello, > > http://www.kamailio.net/docs/modules/5.0.x/modules/auth.html > > Sebastian > > On Tue, Sep 26, 2017 at 9:28 AM,

Re: [SR-Users] Send 407 for Invite

2017-09-26 Thread Sebastian Damm
Hello, http://www.kamailio.net/docs/modules/5.0.x/modules/auth.html Sebastian On Tue, Sep 26, 2017 at 9:28 AM, Logeshwaran G wrote: > Hi, > > How to send the 407 proxy authentication for Invite message? > > Input Please > > Thanks & Kind Regards, > Logeshwaran G > >

Re: [SR-Users] How to change SDP in 200 Ok reply

2017-09-26 Thread Daniel-Constantin Mierla
Hello, if it is onreply_route{} (or reply_route{}), then it is executed for SIP replies, not requests. Are you sure it is executed against the INVITE request? You can add an xlog at the top of the block and see in the logs if it is reply or request (there are functions or variables for it).

[SR-Users] How to change SDP in 200 Ok reply

2017-09-26 Thread Jurijs Ivolga
Hi, I have difficult times to edit SDP in 200 ok replies, I need to change RTP/SAVPF to UDP/TLS/RTP/SAVPF in all 200 Ok. Here is code snippet: onreply_route { if ( $rm == "INVITE" && status=="200") { if (search_body("a=fingerprint")) {

Re: [SR-Users] Having kamailio bind to a VRF device

2017-09-26 Thread Daniel-Constantin Mierla
Hello, I haven't worked with vrf here, so no first hand experience ... What happens if you try with next option? listen=vrf-green:5060 advertise 2.2.2.2:5060 Cheers, Daniel On 25.09.17 19:10, George Diamantopoulos wrote: > Sorry to bump this, but it would be very useful if I knew whether >

Re: [SR-Users] dialog:active_dialogs counter is steadily increasing

2017-09-26 Thread Daniel-Constantin Mierla
Hello, On 25.09.17 15:57, Andrew Pogrebennyk wrote: > Hi, > using kamailio 4.4.5, we have noticed that the active_dialogs counter is > not accurate and there seems to be some kind of "leak" present at least > on higher loaded systems. > > For example, here active_dialogs was reporting just a bit