One way audio with PJSIP [on VPN]

Hi,

Here is what I have in my PJSIP for EC2

[transport-udp-asterisk]
type=transport
protocol=udp
bind=0.0.0.0:xxx
local_net=172.xx.xx.xx/255.255.240.0
external_signaling_address=13.xx.xx.xx
external_media_address=13.xx.xx.xx

172.xx.xx.xx = EC2 private ip address
13.xx.xx.xx = EC2 public ip address (elastic)

Seems to work with Asterisk 20 and is also working with Asterisk 16 (SIP).

Regards

1 Like

Hi,
I tried doing the configuration as you told.
But no avail. I cannot connect calls.
May I know how is your gateway connected to the EC2?
Are you using a VPN too?

I really think your problem is the Dinstar in some way, but I have no experience with it. The local_net changes the IP address placed in the SIP and SDP, it doesn’t change how the traffic flows itself.

I can say that according to the Dinstar, it is receiving traffic from this IP address and not the 10.5.5.1 address. How that affects things with it, I don’t know.

I am really not able to understand. Been stuck here from a week almost.
I am able to connect calls.
Even see the RTP logs.
But cannot hear the audio

Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020561, ts 3373454619, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029894, ts 3373454616, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020562, ts 3373454779, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029895, ts 3373454776, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020563, ts 3373454939, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029896, ts 3373454936, len 000160)
Got  RTP packet from    106.*.*.*:49556 (type 00, seq 020564, ts 3373455099, len 000170)
Sent RTP packet to      192.168.250.123:8000 (type 00, seq 029897, ts 3373455096, len 000160)

Thanks for your help though.

Solved it.
The problem was my LAN ip.
The LAN IP I assigned was not the gateway of my GSM box.
Thanks everyone who tried to help me.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.