Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
Just rectifying about the $snd variable. While the wiki tells that $snd == $sndfrom, I discovered that the $snd == $sndto. So in my case, the $sndfrom(ip) gives me the local socket the message is being sent. However this only works from the onsend_route. I wasn't using this route at all, so now I

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
Yes David, we have all sorts of weird things (specially legacy installations where creativity really shined). Also, in some private network architectures my external interface may not have a public IP at all Anyway, I first thought about applying some logic on the destination IP, but it is

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread David Villasmil
Hello, Interesting challenge you’ve got. It may fail in cases where my kernel routing table has some rule where a private IP is reachable via my external interface but different GW for example In this case then, the $du will be a rfc1918 ip but the outgoing interface will be a public ip? Have

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Patrick Wakano
Thanks for the replies and examples! Much appreciated! I was thinking of something similar to David suggestion, but I think this is not 100% reliable. It may fail in cases where my kernel routing table has some rule where a private IP is reachable via my external interface but different GW for

Re: [SR-Users] Adding SIP Gateway Endpoint in Kamailio

2019-11-21 Thread David Villasmil
Hello Sujit, On your first post you said you wanted to authenticate. By that I understood you would want your USERS to REGISTER, is this not the case? Or are you looking to authorize via IP address only? If so, the config is not the same. As Henning said, you need to enable WITH_IPAUTH REGARDS

Re: [SR-Users] Adding SIP Gateway Endpoint in Kamailio

2019-11-21 Thread Henning Westerholt
Hello, it seems that the method or module is not available (as indicated also from the error message). Check in your Kamailio.cfg if you load the permissions module. Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com

Re: [SR-Users] Problem with max tcp connections

2019-11-21 Thread Jose Fco . Irles Durá
Thanks for the info! Tomorrow I'll test it with the 5.1.9 version. Best regards El jue., 21 nov. 2019 a las 17:35, Daniel Tryba () escribió: > > On Thu, Nov 21, 2019 at 02:46:39PM +0100, Jose Fco. Irles Dur?? wrote: > > Hi > > > > I have a kamailio 5.1.2 as load balancer and registration

Re: [SR-Users] How to access different uris in a header

2019-11-21 Thread Alex Balashov
Why not just split them by comma using {s.select} and then fish them out with {nameaddr.uri}? On Thu, Nov 21, 2019 at 06:20:30PM +, Duarte Rocha wrote: > Greetings, > > In order to identify Redirecting Number and Original Called Number on a > given request i look for the top( Redirecting

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-21 Thread Joel Serrano
Hi Daniel, I sent you (privately) 2 pcaps. Please let me know if you need anything else. My current TCP params are: disable_tcp=no tcp_children=1 tcp_max_connections=12288 tcp_rd_buf_size=65536 tcp_conn_wq_max=131072 tcp_keepalive=yes tcp_crlf_ping=yes tcp_keepcnt=3 tcp_keepidle=30

[SR-Users] How to access different uris in a header

2019-11-21 Thread Duarte Rocha
Greetings, In order to identify Redirecting Number and Original Called Number on a given request i look for the top( Redirecting Number) and bottom (Original Called) Diversion headers using hdr(Diversion)[0] and hdr(Diversion)[-1]. However, i have a client that sends me all the Diversions URIS

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Sergey Safarov
Just pushed fix to rpm.kamailio.org On Thu, Nov 21, 2019 at 6:44 PM Karsten Horsmann wrote: > Thanks Sergey. > > Btw the same issue I reported at the end of October. Super that's fixed > now. > > Cheers > Karsten Horsmann > > Sergey Safarov schrieb am Do., 21. Nov. 2019, 16:08: > >> fixed on

Re: [SR-Users] Problem with max tcp connections

2019-11-21 Thread Daniel Tryba
On Thu, Nov 21, 2019 at 02:46:39PM +0100, Jose Fco. Irles Dur?? wrote: > Hi > > I have a kamailio 5.1.2 as load balancer and registration offloading, > but I have a problem with the max tcp connections that it can handle. > I suspect that is a linux limit, but I don't find the reason or config. >

Re: [SR-Users] Problem with max tcp connections

2019-11-21 Thread Jose Fco . Irles Durá
I thought that the 5.1.2 is the latest release in this branch, sorry. First I will upgrade to the latest version (5.1.9) and if the problem persists, I'll resend the email. Best regards El jue., 21 nov. 2019 a las 14:46, Jose Fco. Irles Durá () escribió: > > Hi > > I have a kamailio 5.1.2 as

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-21 Thread Joel Serrano
I don’t, but I’ll repeat the test with tcpdump active! I’ll report back shortly On Thu, Nov 21, 2019 at 03:50 Daniel-Constantin Mierla wrote: > Hello, > > do you have the pcap with the sip traffic for this case? > > Cheers, > Daniel > On 20.11.19 19:45, Joel Serrano wrote: > > Hello, > > I

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Karsten Horsmann
Thanks Sergey. Btw the same issue I reported at the end of October. Super that's fixed now. Cheers Karsten Horsmann Sergey Safarov schrieb am Do., 21. Nov. 2019, 16:08: > fixed on OBS > today will fix on rpm.kamailio.org > > On Thu, Nov 21, 2019 at 5:32 PM Sergey Safarov > wrote: > >> yes, I

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Sergey Safarov
fixed on OBS today will fix on rpm.kamailio.org On Thu, Nov 21, 2019 at 5:32 PM Sergey Safarov wrote: > yes, I can confirm issue with master and 5.3 branch. > During short time i will create fix on OBS to build RPM > > Issue already fixed for master and 5.3 branches. > > Sergey > > > On Thu,

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Sergey Safarov
yes, I can confirm issue with master and 5.3 branch. During short time i will create fix on OBS to build RPM Issue already fixed for master and 5.3 branches. Sergey On Thu, Nov 21, 2019 at 3:53 PM Daniel-Constantin Mierla wrote: > Hello, > > I think the same spec files are used, maybe Sergey

[SR-Users] Problem with max tcp connections

2019-11-21 Thread Jose Fco . Irles Durá
Hi I have a kamailio 5.1.2 as load balancer and registration offloading, but I have a problem with the max tcp connections that it can handle. I suspect that is a linux limit, but I don't find the reason or config. When that limit arrives, I can't connect to kamailio and I receive "Connection

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Daniel-Constantin Mierla
Hello, I think the same spec files are used, maybe Sergey can confirm that. On the other hand, the migration was not officially done. The v5.3.1 rpms were built on opensuse service. To move forward with the migrarion: there has to be a request for testing of the new repo and if all ok, then we

Re: [SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Henning Westerholt
Hello Zach, the respositories were moved from openSUSE build service to rpm.kamailio.org – probably the wiki docs needs some updates. In the majority of cases I use the provided repositories, some people compile from source as well (both “pure” and with their own package building service).

Re: [SR-Users] Re-use TCP connections on different transactions

2019-11-21 Thread Daniel-Constantin Mierla
Hello, do you have the pcap with the sip traffic for this case? Cheers, Daniel On 20.11.19 19:45, Joel Serrano wrote: > Hello, > > I added to the config file: > > tcp_no_connect=yes > > And with that param, the same test results in a different behavior, > but still not working: > > "message":"

[SR-Users] kamailio IMS supporting VOLTE

2019-11-21 Thread Shubhendu Das
Hi , I have a query regarding Kamailio open source SIP server. Does it have any release, where its supports the feature of IMS supporting VOLTE with real commercial mobile phones(IMSI based) ? If so, what is the release number ? Please also let me know about the supported mobile phones

[SR-Users] CentOS Repo for Kamailio 5.3 - Strange Python23 Dependency?

2019-11-21 Thread Zach Nielsen
Hi all, Working with some of our Centos-based Kamailio boxes lately has produced a strange result when using the provided yum repos (download.opensuse.org). When trying to yum update the system or install some additional modules, we're getting feedback from yum indicating that it's expecting

[SR-Users] Query regarding Kamailio Sip Server for IMS supporting VOLTE

2019-11-21 Thread Shubhendu Das
Hi , I have a query regarding Kamailio open source SIP server. Does it have any release, where its supports the feature of IMS supporting VOLTE with real commercial mobile phones(IMSI based) ? If so, what is the release number ? Please also let me know about the supported mobile phones

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Grant Bagdasarian
Hi, You can also inspect the SDP and look for private or public IPs and perform some logic based on that. sdp_get_line_startswith("$avp(sdp_media_ip)", "c="); if (is_ip_rfc1918("$(avp(sdp_media_ip){s.select,2, })")) {} The delimiter for the transformation is an empty space in this case. Hope

Re: [SR-Users] Adding SIP Gateway Endpoint in Kamailio

2019-11-21 Thread Sujit Roy
Hello David I have successfully installed kamailio with rtp proxy. I also have added incoming sip endpoint as below kamctl address add 1 XX.YY.ZZ.177 0 but when i am doing reload i m getting below output. [root@unassigned ~]# kamctl address reload which: no gdb in

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread Karsten Horsmann
Hi Patrick, If you don't use tls at this moment, the config from sbc OS is also an good example of using dispatcher with the socket params to select the right sendsock and using vars to give rtpengine the right internal / external directions. They use numbers for internal and external. To figure

Re: [SR-Users] How to retrieve local socket that will be used to send a message from the branch route

2019-11-21 Thread David Villasmil
Hello, I'm not sure this is the best or even the right way, but i do that by figuring out where the call is coming from. In my case, an INVITE from an RFC1918 IP address will always be internal to external and vice versa. i.e.: # If the Source IP is an RFC1918 address, it's coming from an