Re: Kamailio + RTP Engine question
Who AmI via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <CAMX7=pf=1_1AOQwC2DNPPhaWb1E7zYUrmyeZ=FSiMC7hivMJFw@mail.gmail.com> |
Hi there,
rtpengine.conf:
interface = 192.168.1.75
Looks like you define a single interface here which works on the local
network, but you need to do some NAT if you are going outside of your
network using direction flags.
Somethng like this:
interface = private/{{ privateIP }};public/{{ privateIP }}!{{ publicIP }}
Documented here:
https://rtpengine.readthedocs.io/en/latest/rtpengine.html#interface-names
As well as your Kamailio understanding internal and external traffic for
example.
A simple way to manage this could be to use a conditional statement for
parsing any rfc 1918 addresses from the $si. Or any addresses in a list
(permissions module address list) to know if the traffic is going to or
coming from the asterisk container.
Thanks,
John.
On Mon, 7 Apr 2025 at 16:12, fernandolopes20003--- via sr-users <
[email protected]> wrote:
> 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!