[SR-Users] parallel media forking during ringing phase

2017-01-25 Thread Tomas Zanet
Hi all, I'm writing to the community because I need a hint from Kamailio and voip gurus: the goal is adding parallel forking call with early-media to our PABX where there's a Kamailio instance running. I mean media streams should be sent to all call destinations before answering the call order,

Re: [SR-Users] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-25 Thread Pranathi Venkatayogi
By setting $du, I was able to force proxy1 to use TLS instead of UDP. $du = "sip:ip:port;transport=tls"; t_relay(); Thanks Daniel for your input. From: Pranathi Venkatayogi Sent: Wednesday, January 25, 2017 8:25 AM To: 'mico...@gmail.com' ; 'Kamailio (SER) - Users Mailing List' Subject: RE: [S

[SR-Users] missing memory after tls cleanup

2017-01-25 Thread Andy
Hi, the tls total memory before and after a tls connection is cleaned up does not match, during test there were 10 tls connection created for which I see tls_h_close and tls_h_tcpconn_clean were called exactly 10 times for the same connection ids, bit before and after the tls shm memory does not

[SR-Users] rtpengine - Key file error

2017-01-25 Thread Serhat Guler
Hello, I am trying to setup my Kamailio environment on a new Debian system. Everything went well, except I started facing a problem with the rtpengine. It did install it fine and I can view the program parameters via the help menu; however, when I run it with this command "rtpengine --interface 1

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Jeremy Gadd
Holy cow, sorry about that! Put the hostname in dispatcher (no port or _sip._udp) and enable these: use_dns_cache=on use_dns_failover=on dns_srv_lb=on That's how I got it working (using the LCR module). On Wed, Jan 25, 2017 at 1:05 PM, Jeremy Gadd wrote: > Put the hostname in dispatcher (no p

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Jeremy Gadd
Put the hostname in dispatcher (no port) and enable these: On Wed, Jan 25, 2017 at 9:30 AM, Casco, Alessio wrote: > Hello Guys! > > I'd like to be able to use SRV records inside dispatcher groups, so I can > automatise the discovery of new backends on my network using DNS > > I've tried with th

[SR-Users] mhomed opened sockets

2017-01-25 Thread Diego Nadares
Hi Guys, We have two network interfaces. One public and one private. We had enabled mhomed and works great BUT if we do a netstat -naup | grep 5060 we see that some sockets keeps opened also when the call is finished. The source port in netstat it's not 5060 so I suppose that kamailio use another

Re: [SR-Users] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-25 Thread Pranathi Venkatayogi
I am attaching all the information needed: Here is invite sent by the customer - 10.11.200.21:58822 -(SIP over TLS)-> 10.0.16.52:5061 INVITE sip:span...@translation.sms-test.cyracom.com SIP/2.0 Via: SIP/2.0/TLS 10.11.200.21:58822;rport;branch=z9hG4bKPj40846ca84d834aeb9d6ae838e7d01166;alias Max-Fo

[SR-Users] kamailio proxy behind firewall

2017-01-25 Thread JBF
Hello, we have the following Configuration for our kamailio installation (we are using TLS and not udp) (1) F5 Firewall (configured as message fowarding), opening a TLS server on the outside (2) SIP proxy, with a TLS server accessed by the F5 . The SIP proxy doesnt see the F5 TLS server (3) SIP r

[SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Casco, Alessio
Hello Guys! I'd like to be able to use SRV records inside dispatcher groups, so I can automatise the discovery of new backends on my network using DNS I've tried with the following formats into the dispatcher.list file: $group _sip._udp.sip-voice_backends $group sip-voice_backends and none lo

Re: [SR-Users] kamctl cr reload got 500 failed to re-built tree

2017-01-25 Thread Igor Potjevlesch
Hello, I change the shared memory from 256 to 512 and it works now. Thank you! Regards, Igor. De : Daniel-Constantin Mierla [mailto:mico...@gmail.com] Envoyé : mardi 24 janvier 2017 12:02 À : Igor Potjevlesch ; 'Kamailio (SER) - Users Mailing List' Objet : Re: [SR-Users] kamctl cr rel

Re: [SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Jonathan Hunter
Hi Daniel, Ok perfect thank you for the detailed response, I will look to test and implement! Thank you! Jon From: Daniel-Constantin Mierla Sent: 25 January 2017 16:14 To: Jonathan Hunter; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Issue w

Re: [SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Daniel-Constantin Mierla
The mechanism to update and restore the From header is relying on the fact that the UA sticks to the RFC requirements of not changing the values, because it using a XOR masking algorithm. If the From is not preserved by the UA, then it screws up the update/restore for subsequent requests/replies.

Re: [SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Jonathan Hunter
Hi Daniel, This is the initial invite from the carrier; From: "+44792498881474" ;tag=carrier.peering.telecom.im+4+c538fe37+7570d4e5 From: sr-users on behalf of Daniel-Constantin Mierla Sent: 25 January 2017 14:28 To: Kamailio (SER) - Users Mailing List S

Re: [SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Jonathan Hunter
Sorry Daniel, hit reply by mistake! So The initial invite shows; From: "+44792498881474" ;tag=carrier.peering.telecom.im+4+c538fe37+7570d4e5 And the ACK has the resolved From domain, as in IP address and port; From: "+44792498881474" ;tag=carrier.peering.telecom.im+4+c538fe37+7570d4e5 Alt

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Daniel-Constantin Mierla
Hello, dispatcher module executes some event routes -- it has a wrapper function: https://github.com/kamailio/kamailio/blob/master/src/modules/dispatcher/dispatch.c#L2261 For acc should be simpler, because the sip request should be there, used by acc to get the attributes, so no need to make

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Olle E. Johansson
You could check the dialog module that already has an event_route executed when a call ends. /O > On 25 Jan 2017, at 15:45, Tobias wrote: > > Hi Daniel, > > Thanks. Can you point me to a good example of how this is implemented in > another module, perhaps I could then add it myself to acc? >

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Tobias
Hi Daniel, Thanks. Can you point me to a good example of how this is implemented in another module, perhaps I could then add it myself to acc? /Tobias From: Daniel-Constantin Mierla Sent: Wednesday, January 25, 2017 3:20 PM To: Tobias; Kamailio (SER) - Users

Re: [SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Daniel-Constantin Mierla
Hello, is the From in incoming INVITE same as in ACK? Cheers, Daniel On 25/01/2017 15:16, Jonathan Hunter wrote: > Hi Guys, > > running kamailio 4.1.4 and using uac_replace_from, I am seeing a > strange issue with the proxying of an ACK message back from a carrier > to freeswitch on the ingre

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Daniel-Constantin Mierla
Hello, On 25/01/2017 09:44, Tobias wrote: > > Hi Daniel, > > > Thanks for your reply. > > > Disregarding the MySQL ID, would it be possible to get the callid of > the call back from the acc module once a write has been made? > to my knowledge, there is no cfg event_route executed at that moment.

[SR-Users] Issue with From address being modified in ACK when UAC module used version 4.1

2017-01-25 Thread Jonathan Hunter
Hi Guys, running kamailio 4.1.4 and using uac_replace_from, I am seeing a strange issue with the proxying of an ACK message back from a carrier to freeswitch on the ingress path into a network. So its just a normal call inbound, where on outbound leg we modify the From address, on the inbound

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Daniel-Constantin Mierla
On 25/01/2017 09:47, Sebastian Damm wrote: > Hi, > > On Wed, Jan 25, 2017 at 9:26 AM, Daniel-Constantin Mierla > mailto:mico...@gmail.com>> wrote: > > To some extent you may be able to do it in configuration file by > replacing the acc default behaviour with sqlops. The records are >

Re: [SR-Users] FOSDEM 2017

2017-01-25 Thread Olle E. Johansson
> On 25 Jan 2017, at 12:52, Victor Seva > wrote: > > El 24 ene. 2017 15:05, "Daniel-Constantin Mierla" > escribió: > Hello, > > anyone else interested in having a dinner event at Fosdem? > > > I'll be there and I would love to join. Sounds like a great idea! /O___

Re: [SR-Users] FOSDEM 2017

2017-01-25 Thread Victor Seva
El 24 ene. 2017 15:05, "Daniel-Constantin Mierla" escribió: Hello, anyone else interested in having a dinner event at Fosdem? I'll be there and I would love to join. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-user

Re: [SR-Users] Executing perl script with command line parameters.

2017-01-25 Thread Tobias
Hi! I suggest moving the script out of the "/root"-folder into a folder that you know Kamailio is able to access (unless you run Kamailio as root), and then make sure the file is executable by Kamailio, i.e. "mv /root/test.pl /var/tmp && chmod 755 /var/tmp/test.pl". For example I'm running t

[SR-Users] Executing perl script with command line parameters.

2017-01-25 Thread Venkatesh Macha
Hi all, I am trying to execute external Perl script from the Kamailio config file. My script accepts few command line parameters but if I try to pass command line parameters like below, It is not working. exec_msg("/root/test.pl 1 '$var(env)' '$fU'"); # i tried with exec_avp also How to

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Tobias
Hi Sebastian, Thanks, that's what I would like to avoid =) /Tobias From: sr-users on behalf of Sebastian Damm Sent: Wednesday, January 25, 2017 9:47 AM To: Daniel-Constantin Mierla; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Event when acc

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Sebastian Damm
Hi, On Wed, Jan 25, 2017 at 9:26 AM, Daniel-Constantin Mierla wrote: > To some extent you may be able to do it in configuration file by replacing > the acc default behaviour with sqlops. The records are written by mysql > when 200ok is received (which can be caught via an onreply_route) or a > f

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Tobias
Hi Daniel, Thanks for your reply. Disregarding the MySQL ID, would it be possible to get the callid of the call back from the acc module once a write has been made? Thanks, /Tobias From: Daniel-Constantin Mierla Sent: Wednesday, January 25, 2017 9:26 AM T

Re: [SR-Users] Event when acc is written?

2017-01-25 Thread Daniel-Constantin Mierla
Hello, On 24/01/2017 18:03, Tobias wrote: > > Hi Daniel, > > > I'd still like the acc record to be written, and then get notified > about that writing was completed, including the mysql ID, callid and > maybe something more, perhaps the whole record written? I'd like a > notification for all writ

Re: [SR-Users] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-25 Thread Daniel-Constantin Mierla
Hello, On 25/01/2017 00:11, Pranathi Venkatayogi wrote: > > In the case below though TLS session is established between proxy1 and > proxy2, invite is fwded on UDP. > > 1. How to force Kamailio to use existing tls session to > communicate? (proxy1) > you can force the destination of a packet

Re: [SR-Users] How does Kamailio decide which protocol to use when fwding to another proxy?

2017-01-25 Thread Daniel-Constantin Mierla
Hello, first thing: do not reply to other emails from the mailing list, create a new one -- at the end of your message is a previous email from the list. It keeps the conversation clean, doesn't mess the email thread id and also makes it easier to understand what's all about (and less bandwidth) o

Re: [SR-Users] kamdbctl error.

2017-01-25 Thread Daniel-Constantin Mierla
Great! I added an option to kamctlrc to allow setting it there and make it more visible that can be changed as an option: - https://github.com/kamailio/kamailio/commit/c58a829af6d14a7b85fa03618f58ff315940ed43 Cheers, Daniel On 24/01/2017 18:46, Venkatesh Macha wrote: > Thanks, Denial. It is w