From khorsmann@gmail.com Fri Jun 21 11:44:20 2019 From: Karsten Horsmann To: sr-users@lists.kamailio.org Subject: [SR-Users] kamailio as UAC and NAPTR / sendsocket question Date: Fri, 21 Jun 2019 11:44:04 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0066332967==" --===============0066332967== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi List, I try to register to Deutsche Telekom and there product Deutschland Lan siptrunk. Thats works find but i see an intressting behaviour on selecting the right outgoing interface. Kamailio is sending out with tcp the REQUEST via first private ip configured on that server (172.20.120.53). There is no listen directive for that. I forced NAPTR to use tcp or udp and i assume that kamailio got the right dns answers. On the list i read also that i can use force_send_socket to force the outgoing request. Now my idea - hey i use the $rP for the outgoing to select the right outgoing listen directive. $rP - reference to transport protocol of R-URI But to my surprise the logfile told me thats "UDP" - it sends out via TCP (thats okay). Whats an good transport selector variable from kamailio that works? event_route[tm:local-request] { if(!is_method("OPTIONS")) { xlog("L_INFO", "[tm:local-request] request [$rm] from [$fu] to [$ru] [$rP]\n"); } } INFO: