Re: Kamailio + RTP Engine question
Sergio Charrua via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <CALZWR5zZ4PFh9Jv+c4nBWNNuAwEUmCypr3bLMbweggH1HSJanw@mail.gmail.com> |
Hi Fernando! You're behind NAT, and your SDP probably doesn't know that, so it sends SDP info with private IP addresses. Your router probably doesn't change that (check if your router supports SIP ALG and if yes, try to enable it ( i personally hate that SIP ALG...) . It might help (hopefully) And also check if your RTP Engine is properly set with the public IP address. Anyways, SIP + NAT + K8 = HELL^2 :) Atenciosamente / Kind Regards / Cordialement / Un saludo, *Sérgio Charrua* On Mon, Apr 7, 2025 at 4:27 PM Samuel Moya Tinoco via sr-users < [email protected]> wrote: > Hi, > You should check SDP in SIP Invites to see where it sends audio. Maybe it > points to a wrong IP/port > It's easy to do with sngrep / asterisk pjsip history > > Hope it helps > > -----Mensaje original----- > De: fernandolopes20003--- via sr-users <[email protected]> > Enviado el: lunes, 7 de abril de 2025 16:48 > Para: [email protected] > CC: [email protected] > Asunto: [SR-Users] Kamailio + RTP Engine question > > Hi everyone, > > I'm experiencing some issues with Kamailio and RTP Engine. > > Here's the setup: > A user initiates a call, and the traffic goes through a router. > The router forwards the traffic to a machine at 192.168.1.75, which runs > Kamailio and RTP Engine. > Kamailio uses a dispatcher to forward calls to 192.168.1.190, a Kubernetes > node running an Asterisk container. > > The problem: > When I'm inside the network, everything works fine — I can send and > receive audio. > But when I'm outside the network, the call connects, but there's no audio > in either direction (no send or receive). > > Some Configs: > Kamailio.conf: > modparam("rtpengine", "rtpengine_sock", "udp:0.0.0.0:2223") > listen=udp:192.168.1.75:5060 > listen=tcp:192.168.1.75:5060 > listen=udp:127.0.0.1:5060 > # ----- dispatcher params ----- > modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list") > modparam("dispatcher", "flags", 2) modparam("dispatcher", "xavp_dst", > "_dsdst_") modparam("dispatcher", "xavp_ctx", "_dsctx_") > modparam("dispatcher", "ds_ping_from", "sip:[email protected]") > modparam("dispatcher", "ds_ping_interval", 60) modparam("dispatcher", > "ds_probing_mode", 1) modparam("dispatcher", "ds_timer_mode", 1) > > rtpengine.conf: > interface = 192.168.1.75 > listen-udp = 0.0.0.0:2223 > port-min = 10000 > port-max = 20000 > > Firewall: > To Action From > -- ------ ---- > 22 ALLOW Anywhere > 12222/udp ALLOW Anywhere > 5060/udp ALLOW Anywhere > 10000:20000/udp ALLOW Anywhere > 22 (v6) ALLOW Anywhere (v6) > 12222/udp (v6) ALLOW Anywhere (v6) > 5060/udp (v6) ALLOW Anywhere (v6) > 10000:20000/udp (v6) ALLOW Anywhere (v6) > > Also router has all this ports open > > Thank you. > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- > [email protected] To unsubscribe send an email to > [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- > [email protected] > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!