From ascanio.alba7 at gmail.com Tue Dec 1 08:53:35 2020 From: ascanio.alba7 at gmail.com (Anthony Alba) Date: Tue, 1 Dec 2020 15:53:35 +0800 Subject: [SR-Users] Kamailio behind HAProxy In-Reply-To: References: <4636b203-e500-4fb3-9afe-86a0af431ab3@Spark> <9f440793-f273-4f56-bf8d-57d577baa0db@Spark> <6b76acfc-842b-474f-af9e-91b8f1c152ab@Spark> <8286c30c-613f-4ad0-9a16-ae2f80825bf2@Spark> <89c33bb9-867e-4a76-b147-8e4ac3945ee2@Spark> <052cfeb8-ad16-b56c-2b4b-af5d0ce837e7@evaristesys.com> Message-ID: Hi Joel, 1. kamailio will think that the UA src-ip/port is the incoming connection from haproxy, is that what you want? 2. Is the real src-ip/port available to haproxy from the cloud SSL terminator? Otherwise won't haproxy think the incoming src-ip/port is the leg from the SSL terminator? 3. I have tried haproxy as a dumb(not PROXY protocol) SSL-terminator proxying TLS to TCP/kamailio (without Path header). It works as expected, all the Contact addresses are that of the haproxy device. When the UA REGISTERs, some are smart (too smart?), that their Contact address and Via are already changed to the received/rport from the Via. 4. If I need the "real" address for logging, it is collected separately. Also the first REGISTER from a UA usually has the "real" src-ip/port as it hasn't cached the received/rport parameters yet. Cheers Anthony On Thu, Nov 12, 2020 at 10:21 AM Joel Serrano wrote: > > In one case, it was to take advantage of the SSL offloading from the cloud provided load balancer (among other features, but that was the main one). I never got it fully working though.. > > See: https://github.com/kamailio/kamailio/issues/2103 and the thread https://lists.kamailio.org/pipermail/sr-users/2019-November/107222.html > > So it could end up being useful for something like: > > UA <-> TCP load balancer (that *proxies* the connection but doesn't talk SIP) <-> Kamailio -> destination. > > > I'm also curious to know if/how the rest are using it.. > > > > > > On Wed, Nov 11, 2020 at 9:24 AM Alex Balashov wrote: >> >> The motive is still a bit of a mystery to me. Yes, it allows Kamailio to >> discover the true source IP/port of a message, but given the function >> performed by HAProxy for TCP connections, it seems generally useful to >> think of HAProxy as the other endpoint of the connection? Moreover, it >> makes it that much more complicated to send requests to reach the client >> _via_ HAProxy (e.g. following a lookup()), since HAProxy isn't a SIP >> proxy and doesn't add a Path hop. >> >> Am I missing something vital about the nature of HAProxy + Kamailio >> deployments? >> >> -- Alex >> >> On 11/11/20 8:23 AM, Henning Westerholt wrote: >> > Hello, >> > >> > bascially this allows Kamailio to understand the HAProxy protocol to be >> > used behind this particular proxy. Some discussion can be found at the >> > list and also at https://github.com/kamailio/kamailio/pull/1765 >> > >> > Cheers, >> > >> > Henning >> > >> > -- >> > >> > Henning Westerholt ? https://skalatan.de/blog/ >> > >> > Kamailio services ? https://gilawa.com >> > >> > *From:* sr-users *On Behalf Of >> > *Joey Golan >> > *Sent:* Wednesday, November 11, 2020 1:47 PM >> > *To:* Kamailio (SER) - Users Mailing List >> > *Subject:* Re: [SR-Users] Kamailio behind HAProxy >> > >> > Thanks Sergey. >> > >> > Can anyone please explain how and why to use tcp_accept_haproxy? >> > >> > On 11 Nov 2020, 10:39 +0200, Sergey Safarov > > >, wrote: >> > >> > Now I not use pike. >> > >> > On Wed, Nov 11, 2020 at 10:21 AM Joey Golan > > > wrote: >> > >> > So on your AWS deployment are you working without ANTIFLOOD(pike)? >> > >> > I still don?t understand how and why to use tcp_accept_haproxy. >> > >> > On 9 Nov 2020, 11:49 +0200, Sergey Safarov > > >, wrote: >> > >> > In AWS I now use the network load balancer without enabled >> > HAproxy protocol. >> > >> > On EC2 instances used two ENI. >> > >> > First for traffic via NLB for Inbound traffic. >> > >> > And second ENI for outbound traffic. >> > >> > This works but, maybe complex to implement. >> > >> > Now I looking to: >> > >> > 1) enable TCP + HAproxy protocol support in Kamailio; >> > >> > 2) add UDP + HAproxy protocol feature support; >> > >> > 3) add connection support "with" and "without" HAproxy protocol. >> > >> > But I am not a developer and cannot say when it implemented. >> > >> > If your usage case, is business requirements and need >> > extended HAproxy implementation in Kamailio, then your >> > company can hire devs from the community. >> > >> > On Mon, Nov 9, 2020 at 11:22 AM Joey Golan > > > wrote: >> > >> > Maybe I miss understood you. >> > For local installations you mean HAProxy with >> > transparent mode? >> > >> > I have a functioning setup without proxy protocol >> > enabled but without anitflood enabled because all >> > traffic comes from same HAProxy address. >> > >> > I?m not sure I understand the purpose of >> > tcp_accept_haproxy. When and how this parameter should >> > be used? >> > >> > Thanks, >> > Joey. >> > >> > On 9 Nov 2020, 0:27 +0200, Sergey Safarov >> > >, wrote: >> > >> > Why you cannot use this in the local installation? >> > >> > On AWS I have multiple kamailio servers behind ELB. >> > >> > Why you do not use a network load-balancer? NLB also >> > offers HAproxy protocol support (TCP and UDP). >> > >> > In AWS installation you can use dedicated Kamailio >> > groups for inbound connections and SIP clients with >> > registration. >> > >> > And use other Kamailio group for outbound >> > connections like carriers. >> > >> > >> > Sergey >> > >> > On Sun, Nov 8, 2020 at 9:07 PM Joey Golan >> > > wrote: >> > >> > It doesn?t make much sense to me. >> > On local installations (on-premise) I have 1 >> > HAProxy and multiple kamailio servers. >> > On AWS I have multiple kamailio servers behind ELB. >> > >> > On 8 Nov 2020, 19:45 +0200, Sergey Safarov >> > > > >, wrote: >> > >> > you can try place haproxy + NAT on your own >> > Linux router. >> > >> > In this case inbound connections with be >> > delivered via HAproxy. >> > Outbound connections will be NAT-ed on the >> > same host, to the same IP. >> > >> > On Sun, Nov 8, 2020 at 6:31 PM Joey Golan >> > > >> > wrote: >> > >> > Hello, >> > I have a kamailio server running behind >> > HAProxy with proxy protocol v2 enabled. >> > In Kamailio I have set the parameter >> > tcp_accept_haproxy=yes and loaded tcpops >> > module. >> > UEs are registered using TLS and >> > kamailio sees that the message has >> > received from their real ip address + >> > port and not HAProxy ip + port. >> > When UE A calls UE B, kamailio is trying >> > to reach UE B using his real ip address >> > and port instead of HAProxy IP address + >> > port. >> > >> > I know I can get the tcp ip and port of >> > HAProxy using $tcp(c_si) and $tcp(c_sp) >> > but I can?t make it work. >> > What is the right way to do this? How >> > should I use these variables properly in >> > order to establish the call successfully? >> > >> > Thanks, >> > Joey. >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> > >> > _______________________________________________ >> > Kamailio (SER) - Users Mailing List >> > sr-users at lists.kamailio.org >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > >> >> -- >> Alex Balashov | Principal | Evariste Systems LLC >> >> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) >> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ >> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> sr-users at lists.kamailio.org >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users From miconda at gmail.com Tue Dec 1 09:35:19 2020 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Tue, 1 Dec 2020 09:35:19 +0100 Subject: [SR-Users] vscode-kamailio-syntax - issue with empty comment line In-Reply-To: References: <8634d75d-3a7e-f27f-42b2-dd8c8d0b4adb@gmail.com> Message-ID: Fixed and published a new version of the extension, since I took the time to add detection of indexes and transformations for pseudo-variables: ? * https://www.kamailio.org/w/2020/12/vscode-syntax-highlighting-for-kamailio-cfg-v1-0-8/ Cheers, Daniel On 30.11.20 10:23, Chaigneau, Nicolas wrote: > Done: > https://github.com/miconda/vscode-kamailio-syntax/issues/5 > > Thanks for your time. :) > > > Regards, > Nicolas. > >> >> can you open an issue on the tracker of the projects, not to be forgotten -- I will try to look at it when I get some spare time: >> >> ? * https://github.com/miconda/vscode-kamailio-syntax/issues >> >> Cheers, >> Daniel >> >>> One issue I've noticed: >>> If you have an empty comment line (just # on a single line), then the next line is wrongly highlighted as comments. >>> >>> For example: >>> >>> # >>> loadmodule "db_postgres.so" >>> > This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla From ascanio.alba7 at gmail.com Tue Dec 1 09:36:13 2020 From: ascanio.alba7 at gmail.com (Anthony Alba) Date: Tue, 1 Dec 2020 16:36:13 +0800 Subject: [SR-Users] How to msg_apply_changes in a branch route? Message-ID: Is there a way to obtain the effect of msg_apply_changes in a branch route? I want to do: route[BRANCHMANAGE] { rtpengine_manage() msg_apply_changes() // further mangle the SDP with textops for // obtuse UAs } The reason for this, is that after forking, I have some UAs that are extremely picky about SDP, and I need to mangle the body to make them happy. (4000 char limit, 68 attribute limit on SDP body - ever seen that? Compared with the absolutely gigantic OFFERs from WebRTC signalling libraries...) Now rtpengine_manage() and textops are working on separate copies of the msg body and the results don't stack correctly. Cheers Anthony Alba From hw at skalatan.de Tue Dec 1 11:05:01 2020 From: hw at skalatan.de (Henning Westerholt) Date: Tue, 1 Dec 2020 10:05:01 +0000 Subject: [SR-Users] Kamailio Failover In-Reply-To: References: Message-ID: Hi Rolly, Hard to say without more details, but have a look to the SDP for the problematic calls, so see if everything is rewritten or inserted correctly. Cheers, Henning -- Henning Westerholt ? https://skalatan.de/blog/ Kamailio services ? https://gilawa.com From: sr-users On Behalf Of Rolly Casuga Jr. Sent: Wednesday, November 25, 2020 5:32 AM To: sr-users at lists.kamailio.org Subject: [SR-Users] Kamailio Failover Hi, I am having a problem on fail overing my master kamailio server and slave kamailio server. I use kamailio as a load balancer for my asterisk servers. And it is working with calls, but when I added failover with keepalived to the slave, there is no audio during calls. Thank you, Rolly -------------- next part -------------- An HTML attachment was scrubbed... URL: From hw at skalatan.de Tue Dec 1 11:07:01 2020 From: hw at skalatan.de (Henning Westerholt) Date: Tue, 1 Dec 2020 10:07:01 +0000 Subject: [SR-Users] [sr-dev] kamailio SIP and RTP proxy In-Reply-To: References: Message-ID: Hi Patrick, better to contact our sr-users list with the usage related questions, added to CC. Have a look to the SDP of the SIP packets to see if it contains the correct IP would be one idea to debug this further. Feel free to ask again on sr-users after you have got more details. Cheers, Henning -- Henning Westerholt ? https://skalatan.de/blog/ Kamailio services ? https://gilawa.com From: sr-dev On Behalf Of Patrick Leybag Sent: Wednesday, November 25, 2020 6:26 AM To: sr-dev at lists.kamailio.org Subject: [sr-dev] kamailio SIP and RTP proxy Hi, Can someone help me? I self host a kamailio using my raspberry pi as a load balancer for my two asterisk servers and get a did number. when I call to my DID number it points to my kamailio and kamailio will distribute to asterisk server but the call has no audio. I tried port forwarding ports 5060 for SIP and 10000-20000 for RTP but it still does not work. Any help is much appreciated. Thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceo at teo-en-ming.com Tue Dec 1 16:17:19 2020 From: ceo at teo-en-ming.com (Turritopsis Dohrnii Teo En Ming) Date: Tue, 01 Dec 2020 23:17:19 +0800 Subject: [SR-Users] How to DIY/Setup An Open Source IP PBX Appliance/Server? Message-ID: Subject: How to DIY/Setup An Open Source IP PBX Appliance/Server? Good day from Singapore, After reading recent reviews, I gather that Asterisk is the gold standard when it comes to open source VoIP systems and it is the most famous open source PBX out there. Article: Compare the Top 10 Best Open Source PBX Software of 2020 Link: https://www.voipreview.org/business-voip/best-open-source-pbx-software Article: Top 10 Free Open Source PBX Software Solutions Link: https://getvoip.com/blog/2016/09/23/best-open-source-pbx-software/ The following is an excerpt from Wikipedia: "Asterisk is a core component in many commercial products and open-source projects. Some of the commercial products are hardware and software bundles, for which the manufacturer supports and releases the software with an open-source distribution model. AskoziaPBX, a fork of the m0n0wall project, uses Asterisk PBX software to realize all telephony functions. AstLinux is a "Network Appliance for Communications" open-source software distribution.[15] FreePBX, an open-source graphical user interface, bundles Asterisk as the core of its FreePBX Distro[16] LinuxMCE bundles Asterisk to provide telephony; there is also an embedded version of Asterisk for OpenWrt routers. PBX in a Flash/Incredible PBX and trixbox are software PBXes based on Asterisk. Elastix previously used Asterisk, HylaFAX, Openfire and Postfix to offer PBX, fax, instant messaging and email functions, respectively, before switching to 3CX. Issabel is an open-source Unified Communications software which uses Asterisk for telephony functions. It was forked from the open-source versions of Elastix when 3CX acquired it. *astTECS uses Asterisk in its VoIP and mobile gateways." Link: https://en.wikipedia.org/wiki/Asterisk_(PBX) I would like to DIY/setup an IP PBX appliance/server using free open source projects. Which free open source project, mentioned in the list and links above, would you recommend to DIY my IP PBX appliance/server? Should I buy a desktop computer or get one of those appliances listed in the link below to serve as my IP PBX appliance/server? Link: https://www.lazada.sg/products/pfsense-iron-metal-case-fanless-intel-celeron-j1800-dual-core-mini-pc-firewall-soft-router-with-ddr3l-msata-ssd-4-gigabit-lan-rj45-com-port-i449270007-s1196780479.html?spm=a2o42.searchlist.list.89.100857d22PjCYx&search=1 Please also refer me to very good, detailed and well explained guides/tutorials/manuals on setting up open source IP PBX appliances/servers. Lastly, please recommend a cheap and affordable IP phone (suggest brand and model) to go along with my DIY open source IP PBX appliance/server. Mr. Turritopsis Dohrnii Teo En Ming, 42 years as of 1st December 2020 Tuesday, is a TARGETED INDIVIDUAL (TI) living in Singapore. Thank you very much. -----BEGIN EMAIL SIGNATURE----- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link: https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html ******************************************************************************************** Singaporean Targeted Individual Mr. Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 14 Feb 2019 and refugee seeking attempts at the United Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) and Australia (25 Dec 2019 to 9 Jan 2020): [1] https://tdtemcerts.wordpress.com/ [2] https://tdtemcerts.blogspot.sg/ [3] https://www.scribd.com/user/270125049/Teo-En-Ming -----END EMAIL SIGNATURE----- From oej at edvina.net Tue Dec 1 16:26:13 2020 From: oej at edvina.net (Olle E. Johansson) Date: Tue, 1 Dec 2020 16:26:13 +0100 Subject: [SR-Users] How to DIY/Setup An Open Source IP PBX Appliance/Server? In-Reply-To: References: Message-ID: If you want to discuss Asterisk, I recommend that you use the Asterisk mailing lists. This is not it. /O > On 1 Dec 2020, at 16:17, Turritopsis Dohrnii Teo En Ming wrote: > > Subject: How to DIY/Setup An Open Source IP PBX Appliance/Server? > > Good day from Singapore, > > After reading recent reviews, I gather that Asterisk is the gold standard when it comes to open source VoIP systems and it is the most famous open source PBX out there. > > Article: Compare the Top 10 Best Open Source PBX Software of 2020 > Link: https://www.voipreview.org/business-voip/best-open-source-pbx-software > > Article: Top 10 Free Open Source PBX Software Solutions > Link: https://getvoip.com/blog/2016/09/23/best-open-source-pbx-software/ > > The following is an excerpt from Wikipedia: > > "Asterisk is a core component in many commercial products and open-source projects. Some of the commercial products are hardware and software bundles, for which the manufacturer supports and releases the software with an open-source distribution model. > > AskoziaPBX, a fork of the m0n0wall project, uses Asterisk PBX software to realize all telephony functions. > > AstLinux is a "Network Appliance for Communications" open-source software distribution.[15] > > FreePBX, an open-source graphical user interface, bundles Asterisk as the core of its FreePBX Distro[16] > > LinuxMCE bundles Asterisk to provide telephony; there is also an embedded version of Asterisk for OpenWrt routers. > > PBX in a Flash/Incredible PBX and trixbox are software PBXes based on Asterisk. > > Elastix previously used Asterisk, HylaFAX, Openfire and Postfix to offer PBX, fax, instant messaging and email functions, respectively, before switching to 3CX. > > Issabel is an open-source Unified Communications software which uses Asterisk for telephony functions. It was forked from the open-source versions of Elastix when 3CX acquired it. > > *astTECS uses Asterisk in its VoIP and mobile gateways." > > Link: https://en.wikipedia.org/wiki/Asterisk_(PBX) > > I would like to DIY/setup an IP PBX appliance/server using free open source projects. > Which free open source project, mentioned in the list and links above, would you recommend to DIY my IP PBX appliance/server? > > Should I buy a desktop computer or get one of those appliances listed in the link below to serve as my IP PBX appliance/server? > > Link: https://www.lazada.sg/products/pfsense-iron-metal-case-fanless-intel-celeron-j1800-dual-core-mini-pc-firewall-soft-router-with-ddr3l-msata-ssd-4-gigabit-lan-rj45-com-port-i449270007-s1196780479.html?spm=a2o42.searchlist.list.89.100857d22PjCYx&search=1 > > Please also refer me to very good, detailed and well explained guides/tutorials/manuals on setting up open source IP PBX appliances/servers. > > Lastly, please recommend a cheap and affordable IP phone (suggest brand and model) to go along with my DIY open source IP PBX appliance/server. > > Mr. Turritopsis Dohrnii Teo En Ming, 42 years as of 1st December 2020 Tuesday, is a TARGETED INDIVIDUAL (TI) living in Singapore. > > Thank you very much. > > > > > > > > -----BEGIN EMAIL SIGNATURE----- > > The Gospel for all Targeted Individuals (TIs): > > [The New York Times] Microwave Weapons Are Prime Suspect in Ills of > U.S. Embassy Workers > > Link: https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html > > ******************************************************************************************** > > Singaporean Targeted Individual Mr. Turritopsis Dohrnii Teo En Ming's Academic > Qualifications as at 14 Feb 2019 and refugee seeking attempts at the United Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) and Australia (25 Dec 2019 to 9 Jan 2020): > > [1] https://tdtemcerts.wordpress.com/ > > [2] https://tdtemcerts.blogspot.sg/ > > [3] https://www.scribd.com/user/270125049/Teo-En-Ming > > -----END EMAIL SIGNATURE----- > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users From nicolas.chaigneau at capgemini.com Tue Dec 1 17:01:09 2020 From: nicolas.chaigneau at capgemini.com (Chaigneau, Nicolas) Date: Tue, 1 Dec 2020 16:01:09 +0000 Subject: [SR-Users] vscode-kamailio-syntax - issue with empty comment line In-Reply-To: References: <8634d75d-3a7e-f27f-42b2-dd8c8d0b4adb@gmail.com> Message-ID: Great! :) Thanks Daniel. > Fixed and published a new version of the extension, since I took the time to add detection of indexes and transformations for pseudo-variables: > > https://www.kamailio.org/w/2020/12/vscode-syntax-highlighting-for-kamailio-cfg-v1-0-8/ > > Cheers, > Daniel This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. From miconda at gmail.com Tue Dec 1 18:57:12 2020 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Tue, 1 Dec 2020 18:57:12 +0100 Subject: [SR-Users] How to msg_apply_changes in a branch route? In-Reply-To: References: Message-ID: Hello, at this moment, msg_apply_changes() works before the transaction is created. Transaction itself is rather big structure and handling it is done with a complex state machine (lifetime timers, retransmissions, callbacks, ...). If someone wants to work on such enhancement, is more than welcome, just make it configurable and as much as possible not intrusive. For the moment, obviously branch processing is done in the context of transaction. On the other hand, if you need it in relation with rtpengine, there are variables that you can use to set/get the sdp exchanged with rtpengine: ? * https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengine.p.read_sdp_pv Then you can change what is returned and use set_body(). Cheers, Daniel On 01.12.20 09:36, Anthony Alba wrote: > Is there a way to obtain the effect of msg_apply_changes in a branch route? > > I want to do: > > route[BRANCHMANAGE] { > > rtpengine_manage() > msg_apply_changes() > // further mangle the SDP with textops for > // obtuse UAs > > } > > The reason for this, is that after forking, I have some UAs that are > extremely picky about SDP, and I need to mangle the body to make them > happy. (4000 char limit, 68 attribute limit on SDP body - ever seen > that? Compared with the absolutely gigantic OFFERs from WebRTC > signalling libraries...) > > Now rtpengine_manage() and textops are working on separate copies of > the msg body and the results don't stack correctly. > > Cheers > Anthony Alba > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla From david.villasmil.work at gmail.com Wed Dec 2 00:26:21 2020 From: david.villasmil.work at gmail.com (David Villasmil) Date: Tue, 1 Dec 2020 23:26:21 +0000 Subject: [SR-Users] How to DIY/Setup An Open Source IP PBX Appliance/Server? In-Reply-To: References: Message-ID: +1 And Personally I like FS much much more. :) On Tue, 1 Dec 2020 at 15:29, Olle E. Johansson wrote: > If you want to discuss Asterisk, I recommend that you use the Asterisk > mailing lists. > This is not it. > > /O > > > On 1 Dec 2020, at 16:17, Turritopsis Dohrnii Teo En Ming < > ceo at teo-en-ming.com> wrote: > > > > Subject: How to DIY/Setup An Open Source IP PBX Appliance/Server? > > > > Good day from Singapore, > > > > After reading recent reviews, I gather that Asterisk is the gold > standard when it comes to open source VoIP systems and it is the most > famous open source PBX out there. > > > > Article: Compare the Top 10 Best Open Source PBX Software of 2020 > > Link: > https://www.voipreview.org/business-voip/best-open-source-pbx-software > > > > Article: Top 10 Free Open Source PBX Software Solutions > > Link: https://getvoip.com/blog/2016/09/23/best-open-source-pbx-software/ > > > > The following is an excerpt from Wikipedia: > > > > "Asterisk is a core component in many commercial products and > open-source projects. Some of the commercial products are hardware and > software bundles, for which the manufacturer supports and releases the > software with an open-source distribution model. > > > > AskoziaPBX, a fork of the m0n0wall project, uses Asterisk PBX software > to realize all telephony functions. > > > > AstLinux is a "Network Appliance for Communications" open-source > software distribution.[15] > > > > FreePBX, an open-source graphical user interface, bundles Asterisk as > the core of its FreePBX Distro[16] > > > > LinuxMCE bundles Asterisk to provide telephony; there is also an > embedded version of Asterisk for OpenWrt routers. > > > > PBX in a Flash/Incredible PBX and trixbox are software PBXes based on > Asterisk. > > > > Elastix previously used Asterisk, HylaFAX, Openfire and Postfix to offer > PBX, fax, instant messaging and email functions, respectively, before > switching to 3CX. > > > > Issabel is an open-source Unified Communications software which uses > Asterisk for telephony functions. It was forked from the open-source > versions of Elastix when 3CX acquired it. > > > > *astTECS uses Asterisk in its VoIP and mobile gateways." > > > > Link: https://en.wikipedia.org/wiki/Asterisk_(PBX) > > > > I would like to DIY/setup an IP PBX appliance/server using free open > source projects. > > Which free open source project, mentioned in the list and links above, > would you recommend to DIY my IP PBX appliance/server? > > > > Should I buy a desktop computer or get one of those appliances listed in > the link below to serve as my IP PBX appliance/server? > > > > Link: > https://www.lazada.sg/products/pfsense-iron-metal-case-fanless-intel-celeron-j1800-dual-core-mini-pc-firewall-soft-router-with-ddr3l-msata-ssd-4-gigabit-lan-rj45-com-port-i449270007-s1196780479.html?spm=a2o42.searchlist.list.89.100857d22PjCYx&search=1 > > > > Please also refer me to very good, detailed and well explained > guides/tutorials/manuals on setting up open source IP PBX > appliances/servers. > > > > Lastly, please recommend a cheap and affordable IP phone (suggest brand > and model) to go along with my DIY open source IP PBX appliance/server. > > > > Mr. Turritopsis Dohrnii Teo En Ming, 42 years as of 1st December 2020 > Tuesday, is a TARGETED INDIVIDUAL (TI) living in Singapore. > > > > Thank you very much. > > > > > > > > > > > > > > > > -----BEGIN EMAIL SIGNATURE----- > > > > The Gospel for all Targeted Individuals (TIs): > > > > [The New York Times] Microwave Weapons Are Prime Suspect in Ills of > > U.S. Embassy Workers > > > > Link: > https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html > > > > > ******************************************************************************************** > > > > Singaporean Targeted Individual Mr. Turritopsis Dohrnii Teo En Ming's > Academic > > Qualifications as at 14 Feb 2019 and refugee seeking attempts at the > United Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) > and Australia (25 Dec 2019 to 9 Jan 2020): > > > > [1] https://tdtemcerts.wordpress.com/ > > > > [2] https://tdtemcerts.blogspot.sg/ > > > > [3] https://www.scribd.com/user/270125049/Teo-En-Ming > > > > -----END EMAIL SIGNATURE----- > > > > _______________________________________________ > > Kamailio (SER) - Users Mailing List > > sr-users at lists.kamailio.org > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Regards, David Villasmil email: david.villasmil.work at gmail.com phone: +34669448337 -------------- next part -------------- An HTML attachment was scrubbed... URL: From me.projects at yahoo.com Wed Dec 2 09:58:43 2020 From: me.projects at yahoo.com (me.projects at yahoo.com) Date: Wed, 2 Dec 2020 08:58:43 +0000 (UTC) Subject: [SR-Users] MSTeams Kamailio with PBX Hold Refer issue References: <1620937435.3504796.1606899523387.ref@mail.yahoo.com> Message-ID: <1620937435.3504796.1606899523387@mail.yahoo.com> Hi, I have been trying to integrate MSTeams with PBX Through Kamailio. Calls are working now. Hold has Issues. MSTeams uses REFER to manage this all with NOTIFY.? I am sending t_send_reply("202", "Accepted"); when receive Refer now I need to send NOTIFY I think I can use?t_uac_send() NOTIFY I am unable to send t_uac_send properly on when?recertifications refer from MSTeams. Any one with the?experience on this ? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From adi.tabacioiu at c-s.ro Wed Dec 2 10:22:39 2020 From: adi.tabacioiu at c-s.ro (Adrian Tabacioiu) Date: Wed, 2 Dec 2020 11:22:39 +0200 Subject: [SR-Users] REGINFO events not sending In-Reply-To: References: <000001d6c3e5$8a057970$9e106c50$@c-s.ro> Message-ID: <00d401d6c88c$ae5597f0$0b00c7d0$@c-s.ro> Hello Henning, I receive presence notifications are working, I activated presence using "WITH_PRESENCE" define. Is there anything else I should do for reginfo ? On the internet I don't find other examples than smsops project which seams very particular, and documentation is very thin. Thanks, Adrian From: Henning Westerholt Sent: Friday, November 27, 2020 9:58 PM To: Kamailio (SER) - Users Mailing List Cc: Adrian Tabacioiu Subject: RE: [SR-Users] REGINFO events not sending Hello Adrian, are you also doing the usual presence stuff in your config, e.g. handling subscriptions of the users? The module documentation not much extensive, I would suggest to search for some examples how to use it. There might be also something in the kamailio repository or can be found on the net. Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.com From: sr-users > On Behalf Of Adrian Tabacioiu Sent: Thursday, November 26, 2020 12:16 PM To: 'Kamailio (SER) - Users Mailing List' > Subject: [SR-Users] REGINFO events not sending Hello, Does anybody has used with success the reginfo modules ? I added lines bellow in configuration, and tried different variations, Even if my subscribe for "reginfo" events is accepted (with 202 OK), I receive no notification when respective user registers. Nor do I get the xml body in the first notification. Added in my config: loadmodule "presence_reginfo.so" loadmodule "pua_reginfo.so" modparam("pua_reginfo", "default_domain", "192.168.60.65") modparam("pua_reginfo", "server_address", "sip:reginfo at 192.168.60.65") modparam("pua_reginfo", "publish_reginfo", 1) Thank you in advance, Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastian.triller at gmail.com Wed Dec 2 14:25:34 2020 From: bastian.triller at gmail.com (Bastian Triller) Date: Wed, 2 Dec 2020 14:25:34 +0100 Subject: [SR-Users] Kamailio Remove Remove "Allow" features from header In-Reply-To: <1846545269.1831326.1606395218275@mail.yahoo.com> References: <1846545269.1831326.1606395218275.ref@mail.yahoo.com> <1846545269.1831326.1606395218275@mail.yahoo.com> Message-ID: Try exclude_hf_value("Allow", "REFER"); in your initial INVITE to Teams resp. your reply on initial INVITE from Teams. https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.exclude_hf_value On Thu, Nov 26, 2020, 13:54 me.projects at yahoo.com wrote: > Hi, > > I want to remove some "Allow" features from my Kamailio SBC like I want to > keep following only > > *Allow: OPTIONS, NOTIFY, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, > REGISTER,* > > How can I achieve that? > > Thanks, > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From llcfhllml at gmail.com Wed Dec 2 15:36:28 2020 From: llcfhllml at gmail.com (beer Ll) Date: Wed, 2 Dec 2020 15:36:28 +0100 Subject: [SR-Users] android client SIP TLS client autentication + kamailio Message-ID: Hello Has anybody use a android SIP client with TLS client authentication enabled with kamailio? Do you have suggestion ? Many thanks Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From me.projects at yahoo.com Wed Dec 2 16:17:59 2020 From: me.projects at yahoo.com (me.projects at yahoo.com) Date: Wed, 2 Dec 2020 15:17:59 +0000 (UTC) Subject: [SR-Users] android client SIP TLS client autentication + kamailio In-Reply-To: References: Message-ID: <2144736997.3612856.1606922279877@mail.yahoo.com> Hi, I have used it. Some older version of Android I think before Android 4.0 but not sure, does not support TLS so you have to work with older version of TLS or SSL. Security with HTTPS and SSL | Android Developers | | | | | | | | | | | Security with HTTPS and SSL | Android Developers | | | How to enable TLS 1.2 support in an Android application (running on Android 4.1 JB) | | | | | | | | | | | How to enable TLS 1.2 support in an Android application (running on Andr... As per the docs in Android for SSLSocket and SSLContext, TLS v1.1 and v1.2 protocols are supported in API level ... | | | Which Library you are using on Android ? On Wednesday, December 2, 2020, 07:37:02 PM GMT+5, beer Ll wrote: HelloHas anybody use a android SIP client with TLS client authentication enabled with?kamailio?Do you have?suggestion ? Many?thanks Luca _______________________________________________ Kamailio (SER) - Users Mailing List sr-users at lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jh at tutpro.com Wed Dec 2 17:10:06 2020 From: jh at tutpro.com (Juha Heinanen) Date: Wed, 2 Dec 2020 18:10:06 +0200 Subject: [SR-Users] android client SIP TLS client autentication + kamailio In-Reply-To: References: Message-ID: <24519.48222.66595.301156@tutpro.com> beer Ll writes: > Has anybody use a android SIP client with TLS client authentication enabled > with kamailio? One possibility is baresip and baresip+ available from Play Store and F-Droid. -- Juha From ascanio.alba7 at gmail.com Thu Dec 3 00:53:40 2020 From: ascanio.alba7 at gmail.com (Anthony Alba) Date: Thu, 3 Dec 2020 07:53:40 +0800 Subject: [SR-Users] kamailio not absorbing ACK to CANCEL when behind a Path proxy Message-ID: Folks, I have a weird situation, when I enable Path header, kamailio behind a Path proxy, that kamailio doesn't recognise the ACK to CANCEL and tries to forward it. Test scenario: - voice.example.com is a stateless proxy with TLS/UDP bridging to kamailio. - on the UDP leg to kamailio it will add a Path: header to REGISTER UA1 = david is calling UA2 = charles and UA2 is sending 603 1 . UA1: preloaded route set (outbound proxy) # this is the Path proxy Route: sip:voice.example.com;transport=tls;lr 2. UA2: sends CANCEL 603 - kamailio immediately sends its (per-hop?) ACK - kamailio forwards CANCEL to UA1 kamailio sent this (per-hop?) ACK - the Route header is the internal UDP interface of the Path proxy ACK sip:charles at 192.168.1.7:37309;transport=TCP;ob SIP/2.0 Via: SIP/2.0/UDP 192.168.122.99:5064;branch=z9hG4bK735d.6b27c8d09e40462ef47eccf90eb10823.0 Max-Forwards: 70 From: sip:david at voice.example.com;tag=i1acAHsitf2gcN9uHH-ZSyJ5OdT8O5M0 To: ;tag=LmUY79rIdBQiiSakML4F0lHl271VdUn8 Call-ID: qM3W-fMrzPsvcjRSD1okEp5nbgHCF5Hu CSeq: 16667 ACK Route: Content-Length: 0 3. UA1 sends ACK kamailio sees this - top Via is path proxy - 2nd Via is UA (caller) - CSeq correctly matches the INVITE - kamailio does not recognise this ACK from UA1(caller), tries to forward it, and also resends 603 to UA1(caller) 3 times ACK sip:charles at voice.example.com SIP/2.0 Via: SIP/2.0/UDP 192.168.122.100:5060;branch=z9hG4bKb3c9a7a3b6ec9e78d0144cda709f7047 Via: SIP/2.0/TLS 192.168.1.17:44925;rport=44925;branch=z9hG4bKPjFM-9gpaJEghJvN19TjnvScCwCoAGzwEc;alias;received=192.168.1.17 Max-Forwards: 70 From: sip:david at voice.example.com;tag=i1acAHsitf2gcN9uHH-ZSyJ5OdT8O5M0 To: sip:charles at voice.example.com;tag=LmUY79rIdBQiiSakML4F0lHl271VdUn8 Call-ID: qM3W-fMrzPsvcjRSD1okEp5nbgHCF5Hu CSeq: 16667 ACK Route: Content-Length: 0 Now kamailio should absorb this ACK, as it has already sent its per-hop ACK. Instead I see ERROR: [core/forward.c:541]: forward_request(): cannot forward to af 2, proto 3 no corresponding listening socket I don't expect kamailio to forward anything at this point. The route block is route[WITHINDLG] and it calls t_relay() normally. route[WITHINDLG] { if (!has_totag()) return; # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { route(DLGURI); if (is_method("BYE")) { setflag(FLT_ACC); # do accounting ... setflag(FLT_ACCFAILED); # ... even if the transaction fails } else if ( is_method("ACK") ) { # ACK is forwarded statelessly route(NATMANAGE); } else if ( is_method("NOTIFY") ) { # Add Record-Route for in-dialog NOTIFY as per RFC 6665. record_route(); } route(RELAY); # we should absorb this ACK, no? exit; } 4. If I remove the Path proxy and kamailio is the TLS proxy at voice.example.com the call flow works perfectly. The ACK from caller (david) is absorbed. 5. Regular calls, when UA2 accepts the call, work fine. In-dialog requests for BYE, from both UAs, work correctly with this Path proxy. Each UA has the complete 5 element route set( 2 x Path proxy + kamailio + 2 x Path proxy). The working route set looks like this: BYE sip:david at 192.168.1.17:44925;transport=TCP;ob SIP/2.0 Via: SIP/2.0/TLS 192.168.1.7:37309;rport;branch=z9hG4bKPjHdUtaUL5AfRcV-SX1Puya4niJKOOQ4VQ;alias Max-Forwards: 70 From: ;tag=6zOt.H7w8NL5njV7klwGLlSJy.U5yBC9 To: ;tag=Pa0ORUxA-7lK0BnR4pLJ5n8rn2OvQrJy Call-ID: 3gWy4Q7O.-zQ-I07lRKHyFyX6azyCSwG CSeq: 12855 BYE Route: Route: Route: Route: Route: User-Agent: basesip 1.0.0 Content-Length: 0 Any ideas? Anthony Alba From david.villasmil.work at gmail.com Thu Dec 3 01:31:24 2020 From: david.villasmil.work at gmail.com (David Villasmil) Date: Thu, 3 Dec 2020 00:31:24 +0000 Subject: [SR-Users] kamailio51 installs 5.2.1? Message-ID: Hello everyone, On a debian buster i added the repo deb http://deb.kamailio.org/kamailio51 buster main deb-src http://deb.kamailio.org/kamailio51 buster main But when i install i get 5.2, is this right? additional info: # apt-cache showpkg kamailio Package: kamailio Versions: 5.2.1-1 (/var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-i386_Packages) (/var/lib/dpkg/status) Description Language: File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-i386_Packages MD5: df3e15f422439e08c305782f5650a98c Description Language: en File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_i18n_Translation-en MD5: df3e15f422439e08c305782f5650a98c 5.1.10.1+bpo10 (/var/lib/apt/lists/deb.kamailio.org_kamailio51_dists_buster_main_binary-i386_Packages) Description Language: File: /var/lib/apt/lists/deb.kamailio.org_kamailio51_dists_buster_main_binary-i386_Packages MD5: ebddf40d0dfbfde1c479419970f978c7 Regards, David Villasmil email: david.villasmil.work at gmail.com phone: +34669448337 -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.donoghue at freespee.com Wed Dec 2 17:04:15 2020 From: daniel.donoghue at freespee.com (Daniel Donoghue) Date: Wed, 2 Dec 2020 17:04:15 +0100 Subject: [SR-Users] Kamailio 5.4 ndb_redis, selecting a database Message-ID: <307DDA68-28B6-407D-9A20-2171248D5C5F@freespee.com> Hello, I note that I can use the ndb_redis server config parameter to specify connection details for my redis servers; I also note that the connection string can specify a ?db? parameter which can be set from 0 to 9, with the default being 0. I am looking for a way to dynamically set the db parameter. I do not which to add the same server with different names N times just to select a different db and having N times more connections to it than necessary. It looks as though I can call redis_cmd(?svrN?, ?SELECT dbN?, ?init?); but will that propagate properly and set the correct db for all connections to my redis server for the lifetime of the request? Ideally, I?d like to be able to specify an avp for the db, or have a function to set the db per request. With every blessing, ? Daniel Donoghue From g.wolzak at kazlow.nl Thu Dec 3 10:04:31 2020 From: g.wolzak at kazlow.nl (Gertjan Wolzak) Date: Thu, 3 Dec 2020 10:04:31 +0100 Subject: [SR-Users] Dialog profile not defined Message-ID: Hello Kamailions, I am running into the following issue. The same setup I had working on 5.0, now I am using a 5.4 version of Kamailio, but I do not believe it has to do with the version, more with my ability to make errors... I am trying to limit incoming calls by using the dialog module. The max concurrent calls value I retrieve from a database. But when I try to start Kamailio it will not because the dialog profile is not defined... These are my configured Dialog parameters: # ---- Dialog params ------------- modparam("dialog", "default_timeout", 7200) modparam("dialog", "db_mode", 0) modparam("dialog", "dlg_flag", DLG_FLAG) modparam("dialog", "hash_size", 4096) #modparam("dialog", "detect_spirals", 1) modparam("dialog", "profiles_with_value", "callee") My check on the concurrent inbound calls: route[CONCURRENT_IN] { ??????? #Add call to callee profile ??????? #Check if callee has not reached inbound call limit ??????? #Get max concurrent calls ??????? sql_query("cc", "select max_calls_in from calllimit where cust_id='$avp(custid)'", "ra"); ??????? $avp(maxcalls)=$dbr(ra=>[0,0]); ??????? sql_result_free("ra"); ??????? $avp(concurrent) = 0; ??????? get_profile_size("callee", "$avp(custid)", "$avp(concurrent)"); ??????? if( $avp(concurrent) = $var(max) ) ??????? { ??????????????? xlog("L_INFO"," Call limit reached for customer $avp(custid)\r\n "); ??????????????? sl_send_reply("503", "No Lines Available"); ??????????????? exit; ??????? } ??????? set_dlg_profile("callee", "$avp(custid)"); ??????? return; } And the kamailio log error: Dec? 3 09:12:08 proxy01 kamailio[74102]: INFO: [main.c:2833]: main(): processes (at least): 21 - shm size: 67108864 - pkg size: 8388608 Dec? 3 09:12:08 proxy01 kamailio[74102]: CRITICAL: dialog [dialog.c:391]: fixup_profile(): profile not defined Dec? 3 09:12:08 proxy01 kamailio[74102]: ERROR: [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at cfg:/usr/local/etc/kamailio/kamailio.cfg:1576 Is someone able to see where I go wrong and point me in the right direction? Thank you. Rgds, Gertjan Wolzak From volodyaivanets at gmail.com Thu Dec 3 13:38:58 2020 From: volodyaivanets at gmail.com (=?UTF-8?B?0JLQvtC70L7QtNC40LzQuNGAINCG0LLQsNC90LXRhtGM?=) Date: Thu, 3 Dec 2020 14:38:58 +0200 Subject: [SR-Users] $TF pseudo variable can not be used Message-ID: Hello! I'm using a $TF variable in my config for some logging purposes. It was providing the correct string with Kamailio version 5.3.8 on CentOS 6 and 8. After updating to Kamailio version 5.4.1, the variable started to show something else. I also tried versions 5.4.2 and development 5.5.0 on CentOS 6 and the problem still persists. With version 5.5.0_dev3 this variable shows "pG?" for me. I was wondering if someone else is using it too with Kamailio version 5.4.1 or newer on different platforms and has this issue. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From miconda at gmail.com Thu Dec 3 14:10:51 2020 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Thu, 3 Dec 2020 14:10:51 +0100 Subject: [SR-Users] $TF pseudo variable can not be used In-Reply-To: References: Message-ID: <2788e072-1ec3-73a1-adea-6c8fb798d86f@gmail.com> Hello, I found a regression introduced when switching to thread-safe time function. Can you test with master branch or with the patch from commit: ? * https://github.com/kamailio/kamailio/commit/02fc919e4f177cc3ab9c5d53eb9ea2019c572bd9 If works ok, then I will backport. Cheers, Daniel On 03.12.20 13:38, ????????? ??????? wrote: > Hello! > > I'm using a?$TF variable in my config for some logging purposes. It > was providing the correct string with Kamailio version 5.3.8 on CentOS > 6 and 8. After updating to Kamailio version 5.4.1, the variable > started to show something else. > > I also tried versions 5.4.2 and development 5.5.0 on CentOS 6 and the > problem still persists. With version 5.5.0_dev3 this variable shows > "pG?" for me. > > I was wondering if someone else is using it too with Kamailio version > 5.4.1 or newer on different platforms and has this issue. > > Thanks! > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at frideo.com Thu Dec 3 15:06:49 2020 From: james at frideo.com (James Browne) Date: Thu, 3 Dec 2020 14:06:49 +0000 Subject: [SR-Users] TOPOS replication with KDMQ Message-ID: Has anyone ever implemented DMQ replication of TOPOS data between kamailio servers? I'm trying to find the easiest (to maintain) way to implement this replication, possibly without using an external database. James From volodyaivanets at gmail.com Thu Dec 3 15:46:52 2020 From: volodyaivanets at gmail.com (=?UTF-8?B?0JLQvtC70L7QtNC40LzQuNGAINCG0LLQsNC90LXRhtGM?=) Date: Thu, 3 Dec 2020 16:46:52 +0200 Subject: [SR-Users] $TF pseudo variable can not be used In-Reply-To: <2788e072-1ec3-73a1-adea-6c8fb798d86f@gmail.com> References: <2788e072-1ec3-73a1-adea-6c8fb798d86f@gmail.com> Message-ID: Hello Daniel, Your patch worked. Thank you! ??, 3 ????. 2020 ? 15:11 Daniel-Constantin Mierla ????: > Hello, > > I found a regression introduced when switching to thread-safe time > function. Can you test with master branch or with the patch from commit: > > * > https://github.com/kamailio/kamailio/commit/02fc919e4f177cc3ab9c5d53eb9ea2019c572bd9 > > If works ok, then I will backport. > > Cheers, > Daniel > On 03.12.20 13:38, ????????? ??????? wrote: > > Hello! > > I'm using a $TF variable in my config for some logging purposes. It was > providing the correct string with Kamailio version 5.3.8 on CentOS 6 and 8. > After updating to Kamailio version 5.4.1, the variable started to show > something else. > > I also tried versions 5.4.2 and development 5.5.0 on CentOS 6 and the > problem still persists. With version 5.5.0_dev3 this variable shows "pG?" > for me. > > I was wondering if someone else is using it too with Kamailio version > 5.4.1 or newer on different platforms and has this issue. > > Thanks! > > _______________________________________________ > Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > -- > Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda > Funding: https://www.paypal.me/dcmierla > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From achen at fuze.com Thu Dec 3 19:39:46 2020 From: achen at fuze.com (Andrew Chen) Date: Thu, 3 Dec 2020 13:39:46 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection Message-ID: Hi all, I was wondering if someone can help me understand how the ICE parameter works in the rtpengine module works. So basically our client does an ICE candidate lookup and grabs a list of them and applies it to the INVITE that gets sent to the Kamailio. The list looks like this: 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: a=candidate:3373280875 1 udp 2122262783 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 network-id 2 network-cost 10 2020-12-03T18:05:46.456057+00:00 ashmainkama51 kamailio[22147]: a=candidate:3040609428 1 udp 2122197247 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 59828 typ host generation 0 network-id 3 network-cost 10 2020-12-03T18:05:46.456081+00:00 ashmainkama51 kamailio[22147]: a=candidate:1681997092 1 udp 2122129151 192.168.1.66 59829 typ host generation 0 network-id 1 network-cost 10 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: a=candidate:2274611867 1 tcp 1518283007 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active generation 0 network-id 2 network-cost 10 2020-12-03T18:05:46.456131+00:00 ashmainkama51 kamailio[22147]: a=candidate:4223662180 1 tcp 1518217471 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 9 typ host tcptype active generation 0 network-id 3 network-cost 10 2020-12-03T18:05:46.456155+00:00 ashmainkama51 kamailio[22147]: a=candidate:717406676 1 tcp 1518149375 192.168.1.66 9 typ host tcptype active generation 0 network-id 1 network-cost 10 2020-12-03T18:05:46.456180+00:00 ashmainkama51 kamailio[22147]: a=candidate:2130547417 1 udp 8199935 206.81.191.27 61165 typ relay raddr 85.247.0.121 rport 53091 generation 0 network-id 1 network-cost 10 In the rtpengine_offer, I have this: rtpengine_offer("ICE=force DTLS=passive replace-session-connection replace-origin external internal"); What i am trying to do is to tell the freeswitch endpoint to use rtpengine as ICE candidate and I see in the SDP this is happening: a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host generation 0 Btw..206.81.191.52 is a separate AWS instance running rtpengine binary. On the rtpengine_answer, I tell the remote client side the same thing..use rtpengine as your ICE candidate: rtpengine_answer("ICE=force DTLS=passive replace-session-connection replace-origin internal external"); and this is snippet from 200 OK: a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host generation 0 Question: Why does the rtpengine logs still show that it's trying to use 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 as RTP candidate in this scenario? Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) I thought ICE=force will handle such adjustments so that all rtp is handled by the rtpengine to our client and bypass the STUN server? Thanks. -- Andy Chen Sr. Telephony Lead Engineer achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From pojogas at gmail.com Thu Dec 3 20:39:15 2020 From: pojogas at gmail.com (Sergiu Pojoga) Date: Thu, 3 Dec 2020 14:39:15 -0500 Subject: [SR-Users] Dialog profile not defined In-Reply-To: References: Message-ID: Hi Gertjan, Probably unrelated, but you have a syntax error in the IF statement, has to be double == if( $avp(concurrent) == $var(max) ) See if that helps. Otherwise, what's the line #1576? Regards, --Sergiu On Thu, Dec 3, 2020 at 4:06 AM Gertjan Wolzak wrote: > Hello Kamailions, > > I am running into the following issue. > > The same setup I had working on 5.0, now I am using a 5.4 version of > Kamailio, but I do not believe it has to do with the version, more with > my ability to make errors... > > I am trying to limit incoming calls by using the dialog module. The max > concurrent calls value I retrieve from a database. > > But when I try to start Kamailio it will not because the dialog profile > is not defined... > > These are my configured Dialog parameters: > > # ---- Dialog params ------------- > modparam("dialog", "default_timeout", 7200) > modparam("dialog", "db_mode", 0) > modparam("dialog", "dlg_flag", DLG_FLAG) > modparam("dialog", "hash_size", 4096) > #modparam("dialog", "detect_spirals", 1) > modparam("dialog", "profiles_with_value", "callee") > > > My check on the concurrent inbound calls: > > route[CONCURRENT_IN] > { > #Add call to callee profile > #Check if callee has not reached inbound call limit > > #Get max concurrent calls > sql_query("cc", "select max_calls_in from calllimit where > cust_id='$avp(custid)'", "ra"); > $avp(maxcalls)=$dbr(ra=>[0,0]); > sql_result_free("ra"); > $avp(concurrent) = 0; > get_profile_size("callee", "$avp(custid)", "$avp(concurrent)"); > if( $avp(concurrent) = $var(max) ) > { > xlog("L_INFO"," Call limit reached for customer > $avp(custid)\r\n "); > sl_send_reply("503", "No Lines Available"); > exit; > } > > set_dlg_profile("callee", "$avp(custid)"); > > return; > } > > > And the kamailio log error: > > Dec 3 09:12:08 proxy01 kamailio[74102]: INFO: [main.c:2833]: > main(): processes (at least): 21 - shm size: 67108864 - pkg size: 8388608 > Dec 3 09:12:08 proxy01 kamailio[74102]: CRITICAL: dialog > [dialog.c:391]: fixup_profile(): profile not defined > Dec 3 09:12:08 proxy01 kamailio[74102]: ERROR: > [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at > cfg:/usr/local/etc/kamailio/kamailio.cfg:1576 > > > Is someone able to see where I go wrong and point me in the right > direction? > > Thank you. > > Rgds, > > Gertjan Wolzak > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hw at skalatan.de Thu Dec 3 20:59:15 2020 From: hw at skalatan.de (Henning Westerholt) Date: Thu, 3 Dec 2020 19:59:15 +0000 Subject: [SR-Users] TOPOS replication with KDMQ In-Reply-To: References: Message-ID: Hi James, I am not aware of a public DMQ extension or module for topos. You coult create an enhancement request for this on our tracker for this. If you want to start to work on this by yourself, sending an e-mail to sr-dev list would be also good to discuss the implementation approach. Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.com -----Original Message----- From: sr-users On Behalf Of James Browne Sent: Thursday, December 3, 2020 3:07 PM To: sr-users at lists.kamailio.org Subject: [SR-Users] TOPOS replication with KDMQ Has anyone ever implemented DMQ replication of TOPOS data between kamailio servers? I'm trying to find the easiest (to maintain) way to implement this replication, possibly without using an external database. James _______________________________________________ Kamailio (SER) - Users Mailing List sr-users at lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users From pojogas at gmail.com Thu Dec 3 21:31:43 2020 From: pojogas at gmail.com (Sergiu Pojoga) Date: Thu, 3 Dec 2020 15:31:43 -0500 Subject: [SR-Users] Dialog profile not defined In-Reply-To: References: Message-ID: Bonus: better replace that equal with >= comparison. There may be conditions under which the dialog profile counting has already exceeded the max limit, in which case the call would go through. Regards, --Sergiu On Thu, Dec 3, 2020 at 2:39 PM Sergiu Pojoga wrote: > Hi Gertjan, > > Probably unrelated, but you have a syntax error in the IF statement, has > to be double == > > if( $avp(concurrent) == $var(max) ) > > See if that helps. Otherwise, what's the line #1576? > > Regards, > --Sergiu > > On Thu, Dec 3, 2020 at 4:06 AM Gertjan Wolzak wrote: > >> Hello Kamailions, >> >> I am running into the following issue. >> >> The same setup I had working on 5.0, now I am using a 5.4 version of >> Kamailio, but I do not believe it has to do with the version, more with >> my ability to make errors... >> >> I am trying to limit incoming calls by using the dialog module. The max >> concurrent calls value I retrieve from a database. >> >> But when I try to start Kamailio it will not because the dialog profile >> is not defined... >> >> These are my configured Dialog parameters: >> >> # ---- Dialog params ------------- >> modparam("dialog", "default_timeout", 7200) >> modparam("dialog", "db_mode", 0) >> modparam("dialog", "dlg_flag", DLG_FLAG) >> modparam("dialog", "hash_size", 4096) >> #modparam("dialog", "detect_spirals", 1) >> modparam("dialog", "profiles_with_value", "callee") >> >> >> My check on the concurrent inbound calls: >> >> route[CONCURRENT_IN] >> { >> #Add call to callee profile >> #Check if callee has not reached inbound call limit >> >> #Get max concurrent calls >> sql_query("cc", "select max_calls_in from calllimit where >> cust_id='$avp(custid)'", "ra"); >> $avp(maxcalls)=$dbr(ra=>[0,0]); >> sql_result_free("ra"); >> $avp(concurrent) = 0; >> get_profile_size("callee", "$avp(custid)", "$avp(concurrent)"); >> if( $avp(concurrent) = $var(max) ) >> { >> xlog("L_INFO"," Call limit reached for customer >> $avp(custid)\r\n "); >> sl_send_reply("503", "No Lines Available"); >> exit; >> } >> >> set_dlg_profile("callee", "$avp(custid)"); >> >> return; >> } >> >> >> And the kamailio log error: >> >> Dec 3 09:12:08 proxy01 kamailio[74102]: INFO: [main.c:2833]: >> main(): processes (at least): 21 - shm size: 67108864 - pkg size: 8388608 >> Dec 3 09:12:08 proxy01 kamailio[74102]: CRITICAL: dialog >> [dialog.c:391]: fixup_profile(): profile not defined >> Dec 3 09:12:08 proxy01 kamailio[74102]: ERROR: >> [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at >> cfg:/usr/local/etc/kamailio/kamailio.cfg:1576 >> >> >> Is someone able to see where I go wrong and point me in the right >> direction? >> >> Thank you. >> >> Rgds, >> >> Gertjan Wolzak >> >> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> sr-users at lists.kamailio.org >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Thu Dec 3 23:38:37 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Thu, 3 Dec 2020 17:38:37 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: Message-ID: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> On 03/12/2020 13.39, Andrew Chen wrote: > Hi all, > > I was wondering if someone can help me understand how the ICE > parameter works in the rtpengine module works. > > So basically our client does an ICE candidate lookup and grabs a list > of them and applies it to the INVITE that gets sent to the Kamailio.? > The list looks like this: > > 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: > a=candidate:3373280875 1 udp 2122262783 > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 > network-id 2 network-cost 10 > 2020-12-03T18:05:46.456057+00:00 ashmainkama51 kamailio[22147]: > a=candidate:3040609428 1 udp 2122197247 > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 59828 typ host generation 0 > network-id 3 network-cost 10 > 2020-12-03T18:05:46.456081+00:00 ashmainkama51 kamailio[22147]: > a=candidate:1681997092 1 udp 2122129151 192.168.1.66 59829 typ host > generation 0 network-id 1 network-cost 10 > 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: > a=candidate:2274611867 1 tcp 1518283007 > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active > generation 0 network-id 2 network-cost 10 > 2020-12-03T18:05:46.456131+00:00 ashmainkama51 kamailio[22147]: > a=candidate:4223662180 1 tcp 1518217471 > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 9 typ host tcptype active > generation 0 network-id 3 network-cost 10 > 2020-12-03T18:05:46.456155+00:00 ashmainkama51 kamailio[22147]: > a=candidate:717406676 1 tcp 1518149375 192.168.1.66 9 typ host tcptype > active generation 0 network-id 1 network-cost 10 > 2020-12-03T18:05:46.456180+00:00 ashmainkama51 kamailio[22147]: > a=candidate:2130547417 1 udp 8199935 206.81.191.27 61165 typ relay > raddr 85.247.0.121 rport 53091 generation 0 network-id 1 network-cost 10 > > > In the rtpengine_offer, I have this: > > rtpengine_offer("ICE=force DTLS=passive replace-session-connection > replace-origin external internal"); > > What i am trying to do is to tell the freeswitch endpoint?to use > rtpengine as ICE candidate and I see in the SDP this is happening: > > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host > generation 0 > > Btw..206.81.191.52 is a separate AWS instance running rtpengine binary. > > On the rtpengine_answer, I tell the remote client side the same > thing..use rtpengine as your ICE candidate: > > rtpengine_answer("ICE=force DTLS=passive replace-session-connection > replace-origin internal external"); > > and this is snippet from 200 OK: > > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host > generation 0 > > Question: > > Why does the rtpengine logs still show?that it's trying to use > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 as RTP candidate in this scenario? > > Dec? 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) > > I thought ICE=force will handle such adjustments so that all rtp is > handled by the rtpengine to our client and bypass the STUN server? > Isn't that what's happening? Rtpengine receives media from one peer and forwards it to one of the ICE candidates (presumably the primary one that was negotiated) of the other peer. Or am I misunderstanding what you posted? Cheers From miconda at gmail.com Fri Dec 4 08:56:15 2020 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Fri, 4 Dec 2020 08:56:15 +0100 Subject: [SR-Users] TOPOS replication with KDMQ In-Reply-To: References: Message-ID: <1dd869b2-a3af-6917-e536-b05a06bf8aa0@gmail.com> Hello, topos was designed with a backend, being it db/sql-like using the db connectors (e.g., mysql, postgres, ...) or with topos_redis, tailored for it to use a redis (or variants) backend. >From this perspective, there is nothing at this moment that dmq could replicate. It would require to make first an in-memory storage, then look at adding dmq layer. However, the idea of using from beginning a backend like redis, mysql, ... was to leverage the replication mechanism offered by the backend. Unlike topoh, note that persistence is needed for topos, otherwise traffic for active dialogs cannot be routed anymore. Cheers, Daniel On 03.12.20 20:59, Henning Westerholt wrote: > Hi James, > > I am not aware of a public DMQ extension or module for topos. You coult create an enhancement request for this on our tracker for this. If you want to start to work on this by yourself, sending an e-mail to sr-dev list would be also good to discuss the implementation approach. > > Cheers, > > Henning > > -- > Henning Westerholt - https://skalatan.de/blog/ > Kamailio services - https://gilawa.com > > -----Original Message----- > From: sr-users On Behalf Of James Browne > Sent: Thursday, December 3, 2020 3:07 PM > To: sr-users at lists.kamailio.org > Subject: [SR-Users] TOPOS replication with KDMQ > > Has anyone ever implemented DMQ replication of TOPOS data between kamailio servers? > > I'm trying to find the easiest (to maintain) way to implement this replication, possibly without using an external database. > > James > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla From ovoshlook at gmail.com Fri Dec 4 09:31:17 2020 From: ovoshlook at gmail.com (Yuriy Gorlichenko) Date: Fri, 4 Dec 2020 09:31:17 +0100 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> Message-ID: Hello 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: a=candidate:2274611867 1 tcp 1518283007 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active generation 0 network-id 2 network-cost 10 is a local candidate sent in the offer from the client ICE=force just says rtpengine: "when you will resend this offer to the receiver, remove all candidates sent by sender and put yourself as the only candidate" But rtpengine still has to follow the ICE check for the received candidates as in that case rtpengine is the receiver and it can't just not check local candidates. That is why you facing this behaviour from the rtpengine, which is totally correct. In other terms Sender -----------> rtpengine : rtpengine must follow ice procedure and check availability of these local candidates to establish connection between Sender and rtpengine rtpengine ---------> Receiver: rtpengine pretends to be a Sender for the ICE agent of the receiver. but in this term, RTPengine will be the only candidate for this part of the call, so this part is establishing a connection between rtpengine and Receiver ??, 3 ???. 2020 ?. ? 23:40, Richard Fuchs : > On 03/12/2020 13.39, Andrew Chen wrote: > > Hi all, > > > > I was wondering if someone can help me understand how the ICE > > parameter works in the rtpengine module works. > > > > So basically our client does an ICE candidate lookup and grabs a list > > of them and applies it to the INVITE that gets sent to the Kamailio. > > The list looks like this: > > > > 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:3373280875 1 udp 2122262783 > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 > > network-id 2 network-cost 10 > > 2020-12-03T18:05:46.456057+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:3040609428 1 udp 2122197247 > > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 59828 typ host generation 0 > > network-id 3 network-cost 10 > > 2020-12-03T18:05:46.456081+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:1681997092 1 udp 2122129151 192.168.1.66 59829 typ host > > generation 0 network-id 1 network-cost 10 > > 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:2274611867 1 tcp 1518283007 > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active > > generation 0 network-id 2 network-cost 10 > > 2020-12-03T18:05:46.456131+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:4223662180 1 tcp 1518217471 > > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 9 typ host tcptype active > > generation 0 network-id 3 network-cost 10 > > 2020-12-03T18:05:46.456155+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:717406676 1 tcp 1518149375 192.168.1.66 9 typ host tcptype > > active generation 0 network-id 1 network-cost 10 > > 2020-12-03T18:05:46.456180+00:00 ashmainkama51 kamailio[22147]: > > a=candidate:2130547417 1 udp 8199935 206.81.191.27 61165 typ relay > > raddr 85.247.0.121 rport 53091 generation 0 network-id 1 network-cost 10 > > > > > > In the rtpengine_offer, I have this: > > > > rtpengine_offer("ICE=force DTLS=passive replace-session-connection > > replace-origin external internal"); > > > > What i am trying to do is to tell the freeswitch endpoint to use > > rtpengine as ICE candidate and I see in the SDP this is happening: > > > > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host > > generation 0 > > > > Btw..206.81.191.52 is a separate AWS instance running rtpengine binary. > > > > On the rtpengine_answer, I tell the remote client side the same > > thing..use rtpengine as your ICE candidate: > > > > rtpengine_answer("ICE=force DTLS=passive replace-session-connection > > replace-origin internal external"); > > > > and this is snippet from 200 OK: > > > > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host > > generation 0 > > > > Question: > > > > Why does the rtpengine logs still show that it's trying to use > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 as RTP candidate in this scenario? > > > > Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) > > > > I thought ICE=force will handle such adjustments so that all rtp is > > handled by the rtpengine to our client and bypass the STUN server? > > > Isn't that what's happening? Rtpengine receives media from one peer and > forwards it to one of the ICE candidates (presumably the primary one > that was negotiated) of the other peer. Or am I misunderstanding what > you posted? > > Cheers > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aatif.shaikh at ecosmob.com Fri Dec 4 09:41:44 2020 From: aatif.shaikh at ecosmob.com (Aatif Shaikh) Date: Fri, 4 Dec 2020 14:11:44 +0530 Subject: [SR-Users] presence not work proper with subs_db_mode = 2 Message-ID: Hello, all have a problem with Kamailio presence, I have configured my kamailio.cfg to handle dialog presence and facing issue in case of subs_db_mode = 2 in case of mode 2 facing the following presence issue. 1. after hangup presence is still up 2. sometimes stuck in a ringing state 3. sometimes presence not came..etc but in the case of subs_db_mode = 3 (DB ONLY) mode presence working fine not facing any issue with this mode. I noticed that sometimes Kamailio will throw the following message during PUBLISH processing and it will not generate appropriate NOTIFY I also verify inactive watcher subscription is there for that user and also a proper entry in the dialog table. MSG during PUBLISH processesing and it will not generate appropriate NOTIFY Oct 30 07:42:10 NC-HOSTED-1 /usr/local/sbin/kamailio[2409]: DEBUG: presence [notify.c:1444]: publ_notify(): Could not find subs_dialog kamailio.cfg param modparam("pua", "db_url", DBURL_KAMAILIO) modparam("pua", "db_mode", 2) modparam("pua", "update_period", 100) modparam("pua", "dlginfo_increase_version", 1) modparam("pua", "default_expires", 3600) modparam("pua", "fetch_rows", 1000) modparam("pua", "outbound_proxy", SERVER_IP) modparam("dialog", "db_url", DBURL_KAMAILIO ) modparam("dialog", "db_mode", 1) modparam("dialog", "db_update_period", 260) modparam("dialog", "db_fetch_rows", 500) modparam("pua_dialoginfo", "include_callid", 1) modparam("pua_dialoginfo", "send_publish_flag", 8) modparam("pua_dialoginfo", "caller_confirmed", 0) modparam("pua_dialoginfo", "include_tags", 1) modparam("pua_dialoginfo", "use_pubruri_avps", 1) modparam("pua_dialoginfo", "include_localremote", 1) modparam("pua_dialoginfo", "override_lifetime", 300) modparam("pua_dialoginfo", "pubruri_caller_avp", "$avp(s:puburis_caller)") modparam("pua_dialoginfo", "pubruri_caller_dlg_var", "pubruri_caller") modparam("pua_dialoginfo", "pubruri_callee_dlg_var", "pubruri_callee") modparam("pua_dialoginfo", "pubruri_callee_avp", "$avp(s:puburis_callee)") modparam("presence_dialoginfo", "force_single_dialog", 1) modparam("presence", "db_table_lock_type", 0) modparam("presence", "db_url", DBURL_KAMAILIO) modparam("presence", "db_update_period", 5) modparam("presence", "send_fast_notify", 1) modparam("presence", "clean_period", 100) modparam("presence", "subs_db_mode", 2) //modparam("presence", "subs_db_mode", 3) modparam("presence", "timeout_rm_subs", 1) //new/ //modparam("presence", "notifier_processes", 2) //new// modparam("presence", "notifier_poll_rate", 20) //new// modparam("presence", "waitn_time",1) modparam("presence", "fetch_rows", 1000) modparam("presence", "presentity_table", "presentity") modparam("presence", "active_watchers_table", "active_watchers") modparam("presence", "watchers_table", "watchers") modparam("presence", "max_expires", 3600) modparam("presence_xml", "db_url", DBURL_KAMAILIO) modparam("presence_xml", "force_active", 1) logic for presence request_route { if(is_method("PUBLISH") || is_method("SUBSCRIBE")) { route(HANDLE_PRESENCE); } } route[HANDLE_PRESENCE] { if (! t_newtran()) { sl_reply_error(); exit; } if(is_method("PUBLISH")) { handle_publish(); t_release(); } else if( is_method("SUBSCRIBE")) { handle_subscribe(); t_release(); } exit; } route[RELAY] { if(is_method("INVITE|BYE|UPDATE|CANCEL|ACK")) { $avp(t_ext) = $tU ; $avp(domain) = $fd ; $avp(et) = $_s(sip:$avp(t_ext)@$avp(domain)) ; $avp(s:puburis_callee) = $avp(et); setflag(8); dlg_manage(); } } I already report this issue in Kamailio git https://github.com/kamailio/kamailio/issues/2540 -- -- Regards, *Aatif Shaikh *| Software Developer +91 9033976268Hangout: aatif.shaikh at ecosmob.comSkype : aatif.shaikh at ecosmob.com *Ecosmob Technologies Pvt. Ltd. * https://www.ecosmob.com VoIP | Web | Mobile | IoT | Big Data This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. Ecosmob Technologies is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company. -- *Disclaimer* In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded. *Confidentiality* This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error. *Caution for viruses, malware etc.* This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at frideo.com Fri Dec 4 13:37:07 2020 From: james at frideo.com (James Browne) Date: Fri, 4 Dec 2020 12:37:07 +0000 Subject: [SR-Users] TOPOS replication with KDMQ In-Reply-To: <1dd869b2-a3af-6917-e536-b05a06bf8aa0@gmail.com> References: <1dd869b2-a3af-6917-e536-b05a06bf8aa0@gmail.com> Message-ID: Thanks, Daniel That explains it perfectly. I was thinking that this would be a huge undertaking to implement it in DMQ, anyway, and now I know that this would be the wrong way to approach it. As it happens, TOPOH (with no storage needed) was unsuitable due to a UA requirement to avoid using routesets. Thanks, Henning That makes sense, but that's probably beyond my skill level for now. I was hoping to find out either that it's never been done or that someone would just hand me the solution, so I'm satisfied with the answers. Thanks for the quick responses, James On Fri, 4 Dec 2020 at 07:57, Daniel-Constantin Mierla wrote: > > Hello, > > topos was designed with a backend, being it db/sql-like using the db > connectors (e.g., mysql, postgres, ...) or with topos_redis, tailored > for it to use a redis (or variants) backend. > > From this perspective, there is nothing at this moment that dmq could > replicate. It would require to make first an in-memory storage, then > look at adding dmq layer. > > However, the idea of using from beginning a backend like redis, mysql, > ... was to leverage the replication mechanism offered by the backend. > > Unlike topoh, note that persistence is needed for topos, otherwise > traffic for active dialogs cannot be routed anymore. > > Cheers, > Daniel > > On 03.12.20 20:59, Henning Westerholt wrote: > > Hi James, > > > > I am not aware of a public DMQ extension or module for topos. You coult create an enhancement request for this on our tracker for this. If you want to start to work on this by yourself, sending an e-mail to sr-dev list would be also good to discuss the implementation approach. > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt - https://skalatan.de/blog/ > > Kamailio services - https://gilawa.com > > > > -----Original Message----- > > From: sr-users On Behalf Of James Browne > > Sent: Thursday, December 3, 2020 3:07 PM > > To: sr-users at lists.kamailio.org > > Subject: [SR-Users] TOPOS replication with KDMQ > > > > Has anyone ever implemented DMQ replication of TOPOS data between kamailio servers? > > > > I'm trying to find the easiest (to maintain) way to implement this replication, possibly without using an external database. > > > > James > > > > _______________________________________________ > > Kamailio (SER) - Users Mailing List > > sr-users at lists.kamailio.org > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > > > _______________________________________________ > > Kamailio (SER) - Users Mailing List > > sr-users at lists.kamailio.org > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > -- > Daniel-Constantin Mierla -- www.asipto.com > www.twitter.com/miconda -- www.linkedin.com/in/miconda > Funding: https://www.paypal.me/dcmierla > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users From g.wolzak at kazlow.nl Fri Dec 4 13:48:59 2020 From: g.wolzak at kazlow.nl (Gertjan Wolzak) Date: Fri, 4 Dec 2020 13:48:59 +0100 Subject: [SR-Users] Dialog profile not defined Message-ID: <8573b9c1-c676-ab39-cf5f-e6f21cd32be2@kazlow.nl> Hello Sergiu, Thank you for the pointer, the line 1576 is: get_profile_size("callee", "$avp(custid)", "$avp(concurrent)"); That is where Kamailio refuses to start.... And as you mentioned my error in the IF statement after correction you pointed out, Kamailio still refuses on the fact that the profile was not defined... Dec? 4 13:42:50 proxy01 /usr/local/sbin/kamailio[75008]: CRITICAL: dialog [dialog.c:391]: fixup_profile(): profile not defined Dec? 4 13:42:50 proxy01 /usr/local/sbin/kamailio[75008]: ERROR: [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at cfg:/usr/local/etc/kamailio/kamailio.cfg:1576 Dec? 4 13:42:50 proxy01 systemd[1]: kamailio.service: Main process exited, code=exited, status=255/n/a Dec? 4 13:42:50 proxy01 systemd[1]: kamailio.service: Failed with result 'exit-code'. Does anyone else maybe have an idea on where I go wrong? Rgds, Gertjan From duarterocha91 at gmail.com Fri Dec 4 14:21:50 2020 From: duarterocha91 at gmail.com (Duarte Rocha) Date: Fri, 4 Dec 2020 13:21:50 +0000 Subject: [SR-Users] Fix Sdp Error Message-ID: Hello, I noticed that when i do calls behind NAT i'm getting this error when i call fix_nated_sdp() : "nathelper [nathelper.c:1659]: replace_sdp_ip(): can't extract 'a=rtcp' IP from the SDP" As far as i can see, all the ips on SDP are correctly replaced to a public IP, so i don't understand the origin of this error. This is the SDP received by Kamailio : Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): - 3421914885 1 IN IP4 192.168.24.89 Session Name (s): SIPPER for PhonerLite Connection Information (c): IN IP4 192.168.24.89 Time Description, active time (t): 0 0 Media Description, name and address (m): audio 5062 RTP/AVP 107 8 0 2 3 97 110 111 9 18 11 118 101 Media Attribute (a): rtpmap:107 opus/48000/2 Media Attribute (a): rtpmap:8 PCMA/8000 Media Attribute (a): rtpmap:0 PCMU/8000 Media Attribute (a): rtpmap:2 G726-32/8000 Media Attribute (a): rtpmap:3 GSM/8000 Media Attribute (a): rtpmap:97 iLBC/8000 Media Attribute (a): rtpmap:110 speex/8000 Media Attribute (a): rtpmap:111 speex/16000 Media Attribute (a): rtpmap:9 G722/8000 Media Attribute (a): rtpmap:18 G729/8000 Media Attribute (a): fmtp:18 annexb=yes Media Attribute (a): rtpmap:11 L16/44100 Media Attribute (a): rtpmap:118 L16/16000 Media Attribute (a): rtpmap:101 telephone-event/8000 Media Attribute (a): fmtp:101 0-16 Media Attribute (a): ssrc:2716178988 Media Attribute (a): sendrecv And this is the SDP sent by Kamailio after NAT being treated : Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): - 3421914885 1 IN IP4 1.1.1.1 (Public IP) Session Name (s): SIPPER for PhonerLite Connection Information (c): IN IP4 1.1.1.1 (Public IP) Time Description, active time (t): 0 0 Media Description, name and address (m): audio 5062 RTP/AVP 107 8 0 2 3 97 110 111 9 18 11 118 101 Media Attribute (a): rtpmap:107 opus/48000/2 Media Attribute (a): rtpmap:8 PCMA/8000 Media Attribute (a): rtpmap:0 PCMU/8000 Media Attribute (a): rtpmap:2 G726-32/8000 Media Attribute (a): rtpmap:3 GSM/8000 Media Attribute (a): rtpmap:97 iLBC/8000 Media Attribute (a): rtpmap:110 speex/8000 Media Attribute (a): rtpmap:111 speex/16000 Media Attribute (a): rtpmap:9 G722/8000 Media Attribute (a): rtpmap:18 G729/8000 Media Attribute (a): fmtp:18 annexb=yes Media Attribute (a): rtpmap:11 L16/44100 Media Attribute (a): rtpmap:118 L16/16000 Media Attribute (a): rtpmap:101 telephone-event/8000 Media Attribute (a): fmtp:101 0-16 Media Attribute (a): ssrc:2716178988 Media Attribute (a): sendrecv Media Attribute (a): oldmediaip:192.168.24.89 Media Attribute (a): oldmediaip:192.168.24.89 Is there something failing in the SDP fix? Best Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From achen at fuze.com Fri Dec 4 15:11:02 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 09:11:02 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> Message-ID: So for Yuriy's comment: I did issue ICE=force parameter but, as you can see my paste, it's still sending RTP sequence packets to the ICE candidate, which is not what I want to do. Richard, So our current setup is this: SIP client -> kamailio -> freeswitch RTP client -> freeswitch What I want to accomplish is this: SIP client -> kamailio -> freeswitch RTP (bypass ICE) client -> rtpengine -> freeswitch On Fri, Dec 4, 2020 at 3:34 AM Yuriy Gorlichenko wrote: > Hello > 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: > a=candidate:2274611867 1 tcp 1518283007 > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active generation > 0 network-id 2 network-cost 10 > is a local candidate sent in the offer from the client > ICE=force just says rtpengine: "when you will resend this offer to the > receiver, remove all candidates sent by sender and put yourself as the only > candidate" > But rtpengine still has to follow the ICE check for the received > candidates as in that case rtpengine is the receiver and it can't just not > check local candidates. That is why you facing this behaviour from the > rtpengine, which is totally correct. > > In other terms > Sender -----------> rtpengine : rtpengine must follow ice procedure and > check availability of these local candidates to establish connection > between Sender and rtpengine > rtpengine ---------> Receiver: rtpengine pretends to be a Sender for > the ICE agent of the receiver. but in this term, RTPengine will be the only > candidate for this part of the call, so this part is establishing a > connection between rtpengine and Receiver > > ??, 3 ???. 2020 ?. ? 23:40, Richard Fuchs : > >> On 03/12/2020 13.39, Andrew Chen wrote: >> > Hi all, >> > >> > I was wondering if someone can help me understand how the ICE >> > parameter works in the rtpengine module works. >> > >> > So basically our client does an ICE candidate lookup and grabs a list >> > of them and applies it to the INVITE that gets sent to the Kamailio. >> > The list looks like this: >> > >> > 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:3373280875 1 udp 2122262783 >> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 >> > network-id 2 network-cost 10 >> > 2020-12-03T18:05:46.456057+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:3040609428 1 udp 2122197247 >> > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 59828 typ host generation 0 >> > network-id 3 network-cost 10 >> > 2020-12-03T18:05:46.456081+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:1681997092 1 udp 2122129151 192.168.1.66 59829 typ host >> > generation 0 network-id 1 network-cost 10 >> > 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:2274611867 1 tcp 1518283007 >> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active >> > generation 0 network-id 2 network-cost 10 >> > 2020-12-03T18:05:46.456131+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:4223662180 1 tcp 1518217471 >> > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 9 typ host tcptype active >> > generation 0 network-id 3 network-cost 10 >> > 2020-12-03T18:05:46.456155+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:717406676 1 tcp 1518149375 192.168.1.66 9 typ host tcptype >> > active generation 0 network-id 1 network-cost 10 >> > 2020-12-03T18:05:46.456180+00:00 ashmainkama51 kamailio[22147]: >> > a=candidate:2130547417 1 udp 8199935 206.81.191.27 61165 typ relay >> > raddr 85.247.0.121 rport 53091 generation 0 network-id 1 network-cost 10 >> > >> > >> > In the rtpengine_offer, I have this: >> > >> > rtpengine_offer("ICE=force DTLS=passive replace-session-connection >> > replace-origin external internal"); >> > >> > What i am trying to do is to tell the freeswitch endpoint to use >> > rtpengine as ICE candidate and I see in the SDP this is happening: >> > >> > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host >> > generation 0 >> > >> > Btw..206.81.191.52 is a separate AWS instance running rtpengine binary. >> > >> > On the rtpengine_answer, I tell the remote client side the same >> > thing..use rtpengine as your ICE candidate: >> > >> > rtpengine_answer("ICE=force DTLS=passive replace-session-connection >> > replace-origin internal external"); >> > >> > and this is snippet from 200 OK: >> > >> > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host >> > generation 0 >> > >> > Question: >> > >> > Why does the rtpengine logs still show that it's trying to use >> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 as RTP candidate in this scenario? >> > >> > Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: >> > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: >> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) >> > >> > I thought ICE=force will handle such adjustments so that all rtp is >> > handled by the rtpengine to our client and bypass the STUN server? >> > >> Isn't that what's happening? Rtpengine receives media from one peer and >> forwards it to one of the ICE candidates (presumably the primary one >> that was negotiated) of the other peer. Or am I misunderstanding what >> you posted? >> >> Cheers >> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> sr-users at lists.kamailio.org >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From achen at fuze.com Fri Dec 4 15:14:32 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 09:14:32 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> Message-ID: Actually Yuriy's..sorry...I see what you are saying. So my question should be, this means I don't have a choice but to use the ICE candidate between client and kamailio? On Fri, Dec 4, 2020 at 9:11 AM Andrew Chen wrote: > So for Yuriy's comment: > > I did issue ICE=force parameter but, as you can see my paste, it's still > sending RTP sequence packets to the ICE candidate, which is not what I want > to do. > > Richard, > > So our current setup is this: > > SIP > client -> kamailio -> freeswitch > RTP > client -> freeswitch > > What I want to accomplish is this: > > SIP > client -> kamailio -> freeswitch > RTP (bypass ICE) > client -> rtpengine -> freeswitch > > > > On Fri, Dec 4, 2020 at 3:34 AM Yuriy Gorlichenko > wrote: > >> Hello >> 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: >> a=candidate:2274611867 1 tcp 1518283007 >> 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active generation >> 0 network-id 2 network-cost 10 >> is a local candidate sent in the offer from the client >> ICE=force just says rtpengine: "when you will resend this offer to the >> receiver, remove all candidates sent by sender and put yourself as the only >> candidate" >> But rtpengine still has to follow the ICE check for the received >> candidates as in that case rtpengine is the receiver and it can't just not >> check local candidates. That is why you facing this behaviour from the >> rtpengine, which is totally correct. >> >> In other terms >> Sender -----------> rtpengine : rtpengine must follow ice procedure >> and check availability of these local candidates to establish connection >> between Sender and rtpengine >> rtpengine ---------> Receiver: rtpengine pretends to be a Sender for >> the ICE agent of the receiver. but in this term, RTPengine will be the only >> candidate for this part of the call, so this part is establishing a >> connection between rtpengine and Receiver >> >> ??, 3 ???. 2020 ?. ? 23:40, Richard Fuchs : >> >>> On 03/12/2020 13.39, Andrew Chen wrote: >>> > Hi all, >>> > >>> > I was wondering if someone can help me understand how the ICE >>> > parameter works in the rtpengine module works. >>> > >>> > So basically our client does an ICE candidate lookup and grabs a list >>> > of them and applies it to the INVITE that gets sent to the Kamailio. >>> > The list looks like this: >>> > >>> > 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:3373280875 1 udp 2122262783 >>> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 >>> > network-id 2 network-cost 10 >>> > 2020-12-03T18:05:46.456057+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:3040609428 1 udp 2122197247 >>> > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 59828 typ host generation 0 >>> > network-id 3 network-cost 10 >>> > 2020-12-03T18:05:46.456081+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:1681997092 1 udp 2122129151 192.168.1.66 59829 typ host >>> > generation 0 network-id 1 network-cost 10 >>> > 2020-12-03T18:05:46.456106+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:2274611867 1 tcp 1518283007 >>> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 9 typ host tcptype active >>> > generation 0 network-id 2 network-cost 10 >>> > 2020-12-03T18:05:46.456131+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:4223662180 1 tcp 1518217471 >>> > 2001:8a0:78fc:7000:d979:bf75:dbc0:69f 9 typ host tcptype active >>> > generation 0 network-id 3 network-cost 10 >>> > 2020-12-03T18:05:46.456155+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:717406676 1 tcp 1518149375 192.168.1.66 9 typ host tcptype >>> > active generation 0 network-id 1 network-cost 10 >>> > 2020-12-03T18:05:46.456180+00:00 ashmainkama51 kamailio[22147]: >>> > a=candidate:2130547417 1 udp 8199935 206.81.191.27 61165 typ relay >>> > raddr 85.247.0.121 rport 53091 generation 0 network-id 1 network-cost >>> 10 >>> > >>> > >>> > In the rtpengine_offer, I have this: >>> > >>> > rtpengine_offer("ICE=force DTLS=passive replace-session-connection >>> > replace-origin external internal"); >>> > >>> > What i am trying to do is to tell the freeswitch endpoint to use >>> > rtpengine as ICE candidate and I see in the SDP this is happening: >>> > >>> > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host >>> > generation 0 >>> > >>> > Btw..206.81.191.52 is a separate AWS instance running rtpengine binary. >>> > >>> > On the rtpengine_answer, I tell the remote client side the same >>> > thing..use rtpengine as your ICE candidate: >>> > >>> > rtpengine_answer("ICE=force DTLS=passive replace-session-connection >>> > replace-origin internal external"); >>> > >>> > and this is snippet from 200 OK: >>> > >>> > a=candidate:6296910676 1 udp 659136 206.81.191.52 52766 typ host >>> > generation 0 >>> > >>> > Question: >>> > >>> > Why does the rtpengine logs still show that it's trying to use >>> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 as RTP candidate in this >>> scenario? >>> > >>> > Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: >>> > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: >>> > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) >>> > >>> > I thought ICE=force will handle such adjustments so that all rtp is >>> > handled by the rtpengine to our client and bypass the STUN server? >>> > >>> Isn't that what's happening? Rtpengine receives media from one peer and >>> forwards it to one of the ICE candidates (presumably the primary one >>> that was negotiated) of the other peer. Or am I misunderstanding what >>> you posted? >>> >>> Cheers >>> >>> _______________________________________________ >>> Kamailio (SER) - Users Mailing List >>> sr-users at lists.kamailio.org >>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >>> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> sr-users at lists.kamailio.org >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > > > -- > Andy Chen > Sr. Telephony Lead Engineer > 415 516 5535 (M) > achen@ fuze.com > > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 15:17:19 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 09:17:19 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> Message-ID: <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> On 04/12/2020 09.11, Andrew Chen wrote: > So for Yuriy's comment: > > I did issue ICE=force parameter but, as you can see my paste, it's > still sending RTP sequence packets to the ICE candidate, which is not > what I want to do. > > Richard, > > So our current setup is this: > > SIP > client -> kamailio -> freeswitch > RTP > client -> freeswitch > > What I want to accomplish is this: > > SIP > client -> kamailio -> freeswitch > RTP (bypass ICE) > client -> rtpengine -> freeswitch I still don't understand. What does "bypass ICE" mean? If you see rtpengine forwarding media packets as per the log you posted, what makes you think that media is not going through rtpengine? Cheers From achen at fuze.com Fri Dec 4 15:24:49 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 09:24:49 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> Message-ID: Hey Richard, So it is true rtpengine is handling rtp between kamailio and receiver (freeswitch). I'm trying to understand if there is a way to not forward rtp to any of the ICE candidates in the original INVITE request from the client side. In other words, have the client rtp forward directly to the rtpengine and not any of the STUN servers (or ICE candidates). i honestly thought putting ICE=force in the rtpengine_answer would help in this case...but I don't see this part working. On Fri, Dec 4, 2020 at 9:20 AM Richard Fuchs wrote: > On 04/12/2020 09.11, Andrew Chen wrote: > > So for Yuriy's comment: > > > > I did issue ICE=force parameter but, as you can see my paste, it's > > still sending RTP sequence packets to the ICE candidate, which is not > > what I want to do. > > > > Richard, > > > > So our current setup is this: > > > > SIP > > client -> kamailio -> freeswitch > > RTP > > client -> freeswitch > > > > What I want to accomplish is this: > > > > SIP > > client -> kamailio -> freeswitch > > RTP (bypass ICE) > > client -> rtpengine -> freeswitch > > I still don't understand. What does "bypass ICE" mean? > > If you see rtpengine forwarding media packets as per the log you posted, > what makes you think that media is not going through rtpengine? > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 15:33:29 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 09:33:29 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> Message-ID: On 04/12/2020 09.24, Andrew Chen wrote: > Hey Richard, > > So it is true rtpengine is handling rtp between kamailio and receiver > (freeswitch).? I'm trying to understand if there is a way to not > forward?rtp to any of the ICE candidates in the original INVITE > request from the client side.? In other words, have the client rtp > forward directly to the rtpengine and not any of the STUN servers (or > ICE candidates).? i honestly thought putting ICE=force in the > rtpengine_answer would help in this case...but I don't see this part > working. But that is what's happening, isn't it? What other media would rtpengine be sending to the client if not the media received from the other client? So your A client is sending to rtpengine, and rtpengine is forwarding that to B, while your B client is also sending to rtpengine, which then forwards it to A. Where do you not see that working? Cheers From achen at fuze.com Fri Dec 4 15:40:42 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 09:40:42 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> Message-ID: Hey Richard, So that's what I thought too until I saw this in rtpengine logs for one of my test calls: Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) unless I misunderstood what this line means. On Fri, Dec 4, 2020 at 9:34 AM Richard Fuchs wrote: > On 04/12/2020 09.24, Andrew Chen wrote: > > Hey Richard, > > > > So it is true rtpengine is handling rtp between kamailio and receiver > > (freeswitch). I'm trying to understand if there is a way to not > > forward rtp to any of the ICE candidates in the original INVITE > > request from the client side. In other words, have the client rtp > > forward directly to the rtpengine and not any of the STUN servers (or > > ICE candidates). i honestly thought putting ICE=force in the > > rtpengine_answer would help in this case...but I don't see this part > > working. > > But that is what's happening, isn't it? What other media would rtpengine > be sending to the client if not the media received from the other > client? So your A client is sending to rtpengine, and rtpengine is > forwarding that to B, while your B client is also sending to rtpengine, > which then forwards it to A. Where do you not see that working? > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 16:17:36 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 10:17:36 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> Message-ID: <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> On 04/12/2020 09.40, Andrew Chen wrote: > Hey Richard, > > So that's what I thought too until I saw this in rtpengine logs for > one of my test calls: > > Dec? 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) > > unless I misunderstood what this line means. I think you did. It means rtpengine has received a media packet from one side and has forwarded it to the other side. Of course it's one of the ICE candidates from the SDP because that's where the peer said it wants to receive the media from rtpengine. Cheers From pojogas at gmail.com Fri Dec 4 16:35:25 2020 From: pojogas at gmail.com (Sergiu Pojoga) Date: Fri, 4 Dec 2020 10:35:25 -0500 Subject: [SR-Users] Dialog profile not defined In-Reply-To: <8573b9c1-c676-ab39-cf5f-e6f21cd32be2@kazlow.nl> References: <8573b9c1-c676-ab39-cf5f-e6f21cd32be2@kazlow.nl> Message-ID: Hmmm... if dialog params are wrapped in a ifdef condition, then do you have something like #!define WITH_DIALOG at the top? Otherwise the rest looks ok to me judging by the snippet that was provided. On Fri, Dec 4, 2020 at 7:49 AM Gertjan Wolzak wrote: > Hello Sergiu, > > Thank you for the pointer, the line 1576 is: > > get_profile_size("callee", "$avp(custid)", "$avp(concurrent)"); > > > That is where Kamailio refuses to start.... > > And as you mentioned my error in the IF statement after correction you > pointed out, Kamailio still refuses on the fact that the profile > was not defined... > > Dec 4 13:42:50 proxy01 /usr/local/sbin/kamailio[75008]: CRITICAL: > dialog [dialog.c:391]: fixup_profile(): profile not defined > Dec 4 13:42:50 proxy01 /usr/local/sbin/kamailio[75008]: ERROR: > [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at > cfg:/usr/local/etc/kamailio/kamailio.cfg:1576 > Dec 4 13:42:50 proxy01 systemd[1]: kamailio.service: Main process > exited, code=exited, status=255/n/a > Dec 4 13:42:50 proxy01 systemd[1]: kamailio.service: Failed with result > 'exit-code'. > > Does anyone else maybe have an idea on where I go wrong? > > Rgds, > > Gertjan > > > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From achen at fuze.com Fri Dec 4 16:39:49 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 10:39:49 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> Message-ID: So my next question would be: My 200 OK back to the client should have rtpengine as the only ICE candidate. Shouldn't it use that one instead? On Fri, Dec 4, 2020 at 10:18 AM Richard Fuchs wrote: > On 04/12/2020 09.40, Andrew Chen wrote: > > Hey Richard, > > > > So that's what I thought too until I saw this in rtpengine logs for > > one of my test calls: > > > > Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) > > > > unless I misunderstood what this line means. > > I think you did. It means rtpengine has received a media packet from one > side and has forwarded it to the other side. Of course it's one of the > ICE candidates from the SDP because that's where the peer said it wants > to receive the media from rtpengine. > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 17:24:06 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 11:24:06 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> Message-ID: <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> On 04/12/2020 10.39, Andrew Chen wrote: > So my next question would be: > > My 200 OK back to the client should have rtpengine as the only ICE > candidate.? Shouldn't it use that one instead? Yes it should. And it probably does. Cheers From achen at fuze.com Fri Dec 4 17:31:11 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 11:31:11 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> Message-ID: If that's the case then I don't know why this line doesn't show the ipv6 address of the client: Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) On Fri, Dec 4, 2020 at 11:25 AM Richard Fuchs wrote: > On 04/12/2020 10.39, Andrew Chen wrote: > > So my next question would be: > > > > My 200 OK back to the client should have rtpengine as the only ICE > > candidate. Shouldn't it use that one instead? > > Yes it should. And it probably does. > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 17:37:14 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 11:37:14 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> Message-ID: On 04/12/2020 11.31, Andrew Chen wrote: > If that's the case then I don't know why this line doesn't show the > ipv6 address of the client: > > Dec? 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) It doesn't? 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: a=candidate:3373280875 1 udp 2122262783 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 network-id 2 network-cost 10 What is this then? Cheers From achen at fuze.com Fri Dec 4 17:39:00 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 11:39:00 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> Message-ID: oh...that's the IPv6 address of the STUN server, not the ipv6 of the rtpengine instance. On Fri, Dec 4, 2020 at 11:38 AM Richard Fuchs wrote: > On 04/12/2020 11.31, Andrew Chen wrote: > > If that's the case then I don't know why this line doesn't show the > > ipv6 address of the client: > > > > Dec 3 18:05:47 ashmainrtpe42 rtpengine[8505]: DEBUG: > > [ep1sbnkk9tikhg4kpmot]: Forward to sink endpoint: > > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71:59827 (RTP seq 25423 TS 0) > > It doesn't? > > 2020-12-03T18:05:46.456030+00:00 ashmainkama51 kamailio[22147]: > a=candidate:3373280875 1 udp 2122262783 > 2001:8a0:78fc:7000:e1d7:e93:3c50:ee71 59827 typ host generation 0 > network-id 2 network-cost 10 > > What is this then? > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From agiftel at gmail.com Fri Dec 4 17:30:32 2020 From: agiftel at gmail.com (Agiftel) Date: Fri, 4 Dec 2020 09:30:32 -0700 (MST) Subject: [SR-Users] REFER from MS teams to Kamailio. In-Reply-To: References: Message-ID: <1607099432839-0.post@n5.nabble.com> Hi Yuriy, regarding REFER, MS does not follow RFC at all!!!! I can tell you for sure. In REFER-TO it pretend to have Request-URI IP address. So is not telling you to who "REFER TO" but it telling you that it want to handle itself. Very strange interpretation of RFS ;-) Anyway, can you share your working code? Thanks -- Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html From rfuchs at sipwise.com Fri Dec 4 17:48:54 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 11:48:54 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> Message-ID: <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> On 04/12/2020 11.39, Andrew Chen wrote: > oh...that's the IPv6 address of the STUN server, not the ipv6 of the > rtpengine instance. Ok. From rtpengine's point of view, this is one of the client's IP addresses. The ICE candidate in the SDP is the client telling rtpengine: This is one of my own addresses (`typ host`) and I can receive media here. It is also listed (by the client who has sent the SDP) as the highest priority candidate, and this is why it's (presumably) negotiated as the candidate to use. This is why rtpengine is sending media there. Cheers From achen at fuze.com Fri Dec 4 19:10:13 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 13:10:13 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> Message-ID: So from a SIP point of view, the 200 OK should of sent the final negotiation of SDP once the client ACK's it right? On Fri, Dec 4, 2020 at 11:49 AM Richard Fuchs wrote: > On 04/12/2020 11.39, Andrew Chen wrote: > > oh...that's the IPv6 address of the STUN server, not the ipv6 of the > > rtpengine instance. > > Ok. From rtpengine's point of view, this is one of the client's IP > addresses. The ICE candidate in the SDP is the client telling rtpengine: > This is one of my own addresses (`typ host`) and I can receive media > here. It is also listed (by the client who has sent the SDP) as the > highest priority candidate, and this is why it's (presumably) negotiated > as the candidate to use. This is why rtpengine is sending media there. > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 19:29:14 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 13:29:14 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> Message-ID: <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> On 04/12/2020 13.10, Andrew Chen wrote: > So from a SIP point of view, the 200 OK should of sent the final > negotiation of SDP once the client ACK's it right? The requirement to send an updated offer once ICE has completed with the final negotiated candidates existed in the original ICE RFC, but I believe it has been removed in the newer ICE RFC (I'm not 100% sure about that though). For rtpengine that requirement certainly doesn't exist and it's happy to negotiate and conclude ICE without a final updated offer. Also rtpengine itself cannot trigger such an updated offer since it's not directly in the SIP path, so that would have to be left up to the clients. So in short, a single offer/answer exchange is enough to get ICE started and it can complete negotiation out of band without further signalling. Cheers From achen at fuze.com Fri Dec 4 19:36:00 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 13:36:00 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> References: <76490444-89b6-30d5-5fb0-30f1d46ae342@sipwise.com> <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> Message-ID: Hmm..that's interesting. You would guess that the rtpengine binary process shouldn't start connecting ICE candidates once the SIP part is fully negotiated, which should trigger the rtpengine module on the Kamailio to tell rtpengine binary.."ok..you can start associating now..." On Fri, Dec 4, 2020 at 1:30 PM Richard Fuchs wrote: > On 04/12/2020 13.10, Andrew Chen wrote: > > So from a SIP point of view, the 200 OK should of sent the final > > negotiation of SDP once the client ACK's it right? > > The requirement to send an updated offer once ICE has completed with the > final negotiated candidates existed in the original ICE RFC, but I > believe it has been removed in the newer ICE RFC (I'm not 100% sure > about that though). For rtpengine that requirement certainly doesn't > exist and it's happy to negotiate and conclude ICE without a final > updated offer. Also rtpengine itself cannot trigger such an updated > offer since it's not directly in the SIP path, so that would have to be > left up to the clients. So in short, a single offer/answer exchange is > enough to get ICE started and it can complete negotiation out of band > without further signalling. > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 19:46:56 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 13:46:56 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> Message-ID: <55e0cdc8-fdc2-fa87-0366-c841495ee8f1@sipwise.com> On 04/12/2020 13.36, Andrew Chen wrote: > Hmm..that's interesting.? You would guess that the rtpengine binary > process shouldn't start connecting ICE candidates once the SIP part is > fully negotiated, which should trigger the rtpengine module on the > Kamailio to tell rtpengine binary.."ok..you can start associating now..." Not really. Why would you think that? ICE and SIP are really largely unrelated, and ICE processing starts as soon as possible so that media can flow as soon as possible. Any delay in ICE processing leads to delays in establishing the call or the media flows. (Trickle ICE exists partly for that reason.) In particular early media would break if ICE had to wait for SIP to finish. Cheers From achen at fuze.com Fri Dec 4 20:04:43 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 14:04:43 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <55e0cdc8-fdc2-fa87-0366-c841495ee8f1@sipwise.com> References: <779e42d0-9149-42a1-c6b4-134979dea88d@sipwise.com> <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> <55e0cdc8-fdc2-fa87-0366-c841495ee8f1@sipwise.com> Message-ID: Sure...I understand ICE has its own setup workflow than SIP but it's also important that rtpengine uses the rtp path that's negotiated in the SIP or else it can cause confusion (to those who don't understand ICE very well like me). On Fri, Dec 4, 2020 at 1:47 PM Richard Fuchs wrote: > On 04/12/2020 13.36, Andrew Chen wrote: > > Hmm..that's interesting. You would guess that the rtpengine binary > > process shouldn't start connecting ICE candidates once the SIP part is > > fully negotiated, which should trigger the rtpengine module on the > > Kamailio to tell rtpengine binary.."ok..you can start associating now..." > > Not really. Why would you think that? ICE and SIP are really largely > unrelated, and ICE processing starts as soon as possible so that media > can flow as soon as possible. Any delay in ICE processing leads to > delays in establishing the call or the media flows. (Trickle ICE exists > partly for that reason.) In particular early media would break if ICE > had to wait for SIP to finish. > > Cheers > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Fri Dec 4 20:17:16 2020 From: rfuchs at sipwise.com (Richard Fuchs) Date: Fri, 4 Dec 2020 14:17:16 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: References: <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> <55e0cdc8-fdc2-fa87-0366-c841495ee8f1@sipwise.com> Message-ID: <947e6027-7db4-cac4-177c-ca1435a9d769@sipwise.com> On 04/12/2020 14.04, Andrew Chen wrote: > Sure...I understand ICE has its own setup workflow than SIP but it's > also important that rtpengine uses the rtp path that's negotiated in > the SIP or else it can cause confusion (to those who don't understand > ICE very well like me). There is no RTP path negotiated through SIP. There is only a number of possible paths, which are compiled from the list of candidates that each side advertises. ICE then checks which paths work, and then finally chooses the one with the highest priority. The only way to have a single media path that is negotiated through SIP is if you don't use ICE. Cheers From achen at fuze.com Fri Dec 4 20:24:04 2020 From: achen at fuze.com (Andrew Chen) Date: Fri, 4 Dec 2020 14:24:04 -0500 Subject: [SR-Users] question regarding rtpengine and ICE candidate selection In-Reply-To: <947e6027-7db4-cac4-177c-ca1435a9d769@sipwise.com> References: <945ba353-f80c-fd57-a419-38098ae42eb8@sipwise.com> <74966b24-22bf-5722-a60a-4a33e14bebb4@sipwise.com> <0de451bb-fede-35b5-921a-9ca796224332@sipwise.com> <8dba05d3-ca82-43e6-bff0-4c8342b37db0@sipwise.com> <55e0cdc8-fdc2-fa87-0366-c841495ee8f1@sipwise.com> <947e6027-7db4-cac4-177c-ca1435a9d769@sipwise.com> Message-ID: Ok..that's interesting to know. Thanks for your input Richard. This helps a lot. On Fri, Dec 4, 2020 at 2:18 PM Richard Fuchs wrote: > On 04/12/2020 14.04, Andrew Chen wrote: > > Sure...I understand ICE has its own setup workflow than SIP but it's > > also important that rtpengine uses the rtp path that's negotiated in > > the SIP or else it can cause confusion (to those who don't understand > > ICE very well like me). > > There is no RTP path negotiated through SIP. There is only a number of > possible paths, which are compiled from the list of candidates that each > side advertises. ICE then checks which paths work, and then finally > chooses the one with the highest priority. > > The only way to have a single media path that is negotiated through SIP > is if you don't use ICE. > > Cheers > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Andy Chen Sr. Telephony Lead Engineer 415 516 5535 (M) achen@ fuze.com -- *Confidentiality Notice: The information contained in this e-mail and any attachments may be confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From gertjan.wolzak at upcmail.nl Sat Dec 5 09:50:29 2020 From: gertjan.wolzak at upcmail.nl (Gertjan Wolzak) Date: Sat, 5 Dec 2020 09:50:29 +0100 Subject: [SR-Users] Dialog profile not defined Message-ID: Thanks again Sergiu, /Hmmm... if dialog params are wrapped in a ifdef condition, then do you have something like #!define WITH_DIALOG at the top?/ But the #!define WITH_DIALOG is to choose between loading module parameters or not loading module parameters... When you do not add #!ifdef WITH_XXX before the parameters and #!endif after, then those parameters will be loaded when starting Kamailio. So, I still have the issue that the profile is not being loaded. I have tried renaming the profiles, in the route and the parameters, but that does not make a difference.. # ---- Dialog params ------------- modparam("dialog", "default_timeout", 7200) modparam("dialog", "db_mode", 0) modparam("dialog", "dlg_flag", DLG_FLAG) modparam("dialog", "hash_size", 4096) #modparam("dialog", "detect_spirals", 1) modparam("dialog", "profiles_with_value", "inbound ; outbound") route[CONCURRENT_IN] { ??????? #Add call to customer profile ??????? #Check if customer has not reached inbound call limit ??????? #Get max concurrent calls ??????? sql_query("cc", "select max_calls_in from calllimit where cust_id='$avp(custid)'", "ra"); ??????? $avp(maxcalls)=$dbr(ra=>[0,0]); ??????? sql_result_free("ra"); ??????? $avp(concurrent) = 0; ??????? get_profile_size("inbound", "$avp(custid)", "$avp(concurrent)"); ??????? if( $avp(concurrent) >= $var(max) ) ??????? { ??????????????? xlog("L_INFO"," Call limit reached for customer $avp(custid)\r\n "); ??????????????? sl_send_reply("503", "No Lines Available"); ??????????????? exit; ??????? } ??? set_dlg_profile("inbound", "$avp(custid)"); ??????? return; } But this still results in: Dec? 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]: CRITICAL: dialog [dialog.c:391]: fixup_profile(): profile not defined Dec? 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]: ERROR: [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at cfg:/usr/local/etc/kamailio/kamailio.cfg:1578 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at textplus.com Sat Dec 5 18:54:04 2020 From: joel at textplus.com (Joel Serrano) Date: Sat, 5 Dec 2020 09:54:04 -0800 Subject: [SR-Users] Dialog profile not defined In-Reply-To: References: Message-ID: Maybe it?s a copy paste error... Try removing the spaces in the modparam ?profiles_with_value? setting On Sat, Dec 5, 2020 at 00:51 Gertjan Wolzak wrote: > Thanks again Sergiu, > > *Hmmm... if dialog params are wrapped in a ifdef condition, then do you have > something like #!define WITH_DIALOG at the top?* > > > But the #!define WITH_DIALOG is to choose between loading module > parameters or not loading module parameters... > > When you do not add #!ifdef WITH_XXX before the parameters and #!endif > after, then those parameters will be loaded when starting Kamailio. > > So, I still have the issue that the profile is not being loaded. > > I have tried renaming the profiles, in the route and the parameters, but > that does not make a difference.. > > > # ---- Dialog params ------------- > modparam("dialog", "default_timeout", 7200) > modparam("dialog", "db_mode", 0) > modparam("dialog", "dlg_flag", DLG_FLAG) > modparam("dialog", "hash_size", 4096) > #modparam("dialog", "detect_spirals", 1) > modparam("dialog", "profiles_with_value", "inbound ; outbound") > > route[CONCURRENT_IN] > { > #Add call to customer profile > #Check if customer has not reached inbound call limit > > #Get max concurrent calls > sql_query("cc", "select max_calls_in from calllimit where > cust_id='$avp(custid)'", "ra"); > $avp(maxcalls)=$dbr(ra=>[0,0]); > sql_result_free("ra"); > $avp(concurrent) = 0; > get_profile_size("inbound", "$avp(custid)", "$avp(concurrent)"); > if( $avp(concurrent) >= $var(max) ) > { > xlog("L_INFO"," Call limit reached for customer > $avp(custid)\r\n "); > sl_send_reply("503", "No Lines Available"); > exit; > } > set_dlg_profile("inbound", "$avp(custid)"); > > return; > } > > But this still results in: > > > Dec 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]: CRITICAL: dialog > [dialog.c:391]: fixup_profile(): profile not defined > Dec 5 09:34:33 proxy01 /usr/local/sbin/kamailio[75755]: ERROR: > [core/route.c:1166]: fix_actions(): fixing failed (code=-6) at > cfg:/usr/local/etc/kamailio/kamailio.cfg:1578 > > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users at lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.wolzak at kazlow.nl Sun Dec 6 15:23:26 2020 From: g.wolzak at kazlow.nl (Gertjan Wolzak) Date: Sun, 6 Dec 2020 15:23:26 +0100 Subject: [SR-Users] Dialog profile not defined Message-ID: <20cd0b36-c1ef-9f4a-0459-c9932f8e9841@kazlow.nl> Thank you Joel for the tip. But that is also not it..... I tried of course, but when you look at the Dialog module documentation is says: modparam("dialog", "profiles_with_value", "caller ; my_profile") So there are spaces in the modparam config for the dialog profiles. Its just so strange that when starting Kamailio I get the error that the Profile outbound is not configured, while it is... Log line: Dec? 6 15:04:04 proxy01 /usr/local/sbin/kamailio[76664]: CRITICAL: dialog [dialog.c:391]: fixup_profile(): profile not defined kamailo.cfg # ---- Dialog params ------------- modparam("dialog", "default_timeout", 7200) modparam("dialog", "db_mode", 0) modparam("dialog", "dlg_flag", DLG_FLAG) modparam("dialog", "hash_size", 4096) #modparam("dialog", "detect_spirals", 1) modparam("dialog", "profiles_with_value", "inbound") Im starting to think that I am missing some configuration in the kamailio.cfg file... Rgds, Gertjan -------------- next part -------------- An HTML attachment was scrubbed... URL: From hamid2kviii at hotmail.com Sun Dec 6 20:13:48 2020 From: hamid2kviii at hotmail.com (Hamid Hashmi) Date: Sun, 6 Dec 2020 19:13:48 +0000 Subject: [SR-Users] kamailio-5.2.0 Crash - udp_send failed In-Reply-To: References: , Message-ID: Hello I have updated Kamailio from 5.2.0 to 5.4.2 but the service is still crashing with sig 11 and sig 6. Please find the attached 'bt full' traces. Sig 11: Core was generated by `/usr/local/sbin/kamailio -f /usr/local/etc/kamailio_pcscf/kamailio.cfg -P /var/'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000006a16fc in timer_list_expire (t=1339518316, h=0x7facee484fd0, slow_l=0x7facee488208, slow_mark=7936) at core/timer.c:846 846 _timer_rm_list(tl); /* detach */ (gdb) bt #0 0x00000000006a16fc in timer_list_expire (t=1339518316, h=0x7facee484fd0, slow_l=0x7facee488208, slow_mark=7936) at core/timer.c:846 #1 0x00000000006a1c19 in timer_handler () at core/timer.c:922 #2 0x00000000006a20ba in timer_main () at core/timer.c:961 #3 0x000000000042ac0a in main_loop () at main.c:1753 #4 0x000000000043400c in main (argc=13, argv=0x7ffc256fe358) at main.c:2856 Sig 6: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/local/sbin/kamailio -f /usr/local/etc/kamailio_pcscf/kamailio.cfg -P /var/'. Program terminated with signal SIGABRT, Aborted. #0 0x00007fad95f56c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007fad95f56c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fad95f5a028 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x000000000041e39d in sig_alarm_abort (signo=14) at main.c:687 #3 #4 0x00007fad960183c7 in syscall () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00007fad6f5c024b in futex_get (lock=0x7facee70baa0) at ../../core/mem/../futexlock.h:121 #6 0x00007fad6f5c2167 in get_peer_by_fqdn (fqdn=0x7faceeb377b0) at peermanager.c:240 #7 0x00007fad6f5e6c31 in get_first_connected_route (cdp_session=0x7faceeb37768, r=0x7facee70a220, app_id=16777236, vendor_id=10415) at routing.c:110 #8 0x00007fad6f5ea8b2 in get_routing_peer (cdp_session=0x7faceeb37768, m=0x7facef617fb0) at routing.c:272 #9 0x00007fad6f5ac72d in AAASendMessage (message=0x7facef617fb0, callback_f=0x0, callback_param=0x0) at diameter_comm.c:137 #10 0x00007fad6ef05dbb in rx_send_str (rx_session_id=0x7facf0849d50) at rx_str.c:157 #11 0x00007fad6eeb25c4 in callback_dialog (dlg=0x7facf0036d70, type=8192, params=0x7fad72b2a1c0 ) at ims_qos_mod.c:453 #12 0x00007fad728973af in run_dlg_callbacks (type=8192, dlg=0x7facf0036d70, req=0x0, rpl=0x0, dir=0, dlg_data=0x0) at dlg_cb.c:274 #13 0x00007fad728d5315 in destroy_dlg (dlg=0x7facf0036d70) at dlg_hash.c:219 #14 0x00007fad728d5b1b in destroy_dlg_table () at dlg_hash.c:291 #15 0x00007fad7290b71e in mod_destroy () at ims_dialog.c:627 #16 0x0000000000616ae1 in destroy_modules () at core/sr_module.c:746 #17 0x000000000041ce17 in cleanup (show_status=1) at main.c:563 #18 0x000000000041e6ef in shutdown_children (sig=15, show_status=1) at main.c:706 #19 0x0000000000421755 in handle_sigs () at main.c:806 #20 0x000000000042bc85 in main_loop () at main.c:1817 #21 0x000000000043400c in main (argc=13, argv=0x7ffc256fe358) at main.c:2856 PS: I am using ubuntu 14.04. Regards Hamid R. Hashmi ________________________________ From: Henning Westerholt Sent: Saturday, September 26, 2020 12:04 PM To: Kamailio (SER) - Users Mailing List Cc: Hamid Hashmi Subject: Re: kamailio-5.2.0 Crash - udp_send failed Hello, you are using a old and non released dev version of kamailio. These are meant only for development purposes. Please update to a proper version (like the latest one based on 5.3 or 5.4 branch. Then try to reproduce the bug again and report on the list or by creating an issue. Cheers, Henning -- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services ________________________________ From: sr-users on behalf of Hamid Hashmi Sent: Friday, September 25, 2020 9:28:07 PM To: sr-users at lists.kamailio.org Subject: [SR-Users] kamailio-5.2.0 Crash - udp_send failed I am using "kamailio 5.2.0-dev6 (x86_64/linux) 48ed62-dirty" what could be the reason of the crash its usually crash with the following logs Sep 25 16:58:41 pcscf [Proxy-CSCF][20771]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36eee8c560,418,0,10.100.227.202:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20771]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20771]: ERROR: tm [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20771]: WARNING: tm [t_reply.c:1581]: t_retransmit_reply(): send pr buffer failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20756]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36ef8eb948,358,0,10.100.177.91:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20756]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20756]: ERROR: sl [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20744]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36ef8b4a80,358,0,10.100.72.230:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20744]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20744]: ERROR: sl [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20783]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36ef8ac740,416,0,10.100.72.230:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20783]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20783]: ERROR: tm [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20752]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36ef8b5098,356,0,10.100.56.38:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20805]: ERROR: [core/udp_server.c:596]: udp_send(): sendto(sock,0x7f36ef8e8f18,416,0,10.100.177.91:5060,16): Invalid argument(22) Sep 25 16:58:41 pcscf [Proxy-CSCF][20805]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20805]: ERROR: tm [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20752]: CRITICAL: [core/udp_server.c:601]: udp_send(): invalid sendtoparameters#012one possible reason is the server is bound to localhost and#012attempts to send to the net Sep 25 16:58:41 pcscf [Proxy-CSCF][20752]: ERROR: sl [../../core/forward.h:219]: msg_send_buffer(): udp_send failed Sep 25 16:58:41 pcscf [Proxy-CSCF][20777]: ERROR: