A
A
Archie Kuznetsov2016-03-22 09:04:13
linux
Archie Kuznetsov, 2016-03-22 09:04:13

Proxy sip + rtp, how to forward traffic?

Hello. there are two servers, both in different dmz, interconnected by a tunnel through the server-in-the-middle (since the tunnels come from firewalls, the visibility of the server is not direct). It is required to link asterisks on servers to each other. I was able to connect the servers via sip, put an asterisk on the server-in-the-middle:
[sip-proxy-1]
host=ip1
fromdomain=ip2
type=friend
insecure=invite
disallow=all
canreinvite=yes
allow=alaw,ulaw,g729,gsm
language=ru
directmedia=no
dtmfmode=auto
canreinvite=no
qualify=yes
nat=no
[sip-proxy-2]
host=ip3
fromdomain=ip2
type=friend
context=proxy-31
insecure=invite
disallow=all
canreinvite=yes
allow=alaw,ulaw,g729,gsm
language=ru
directmedia=no
dtmfmode=auto
qualify=yes
nat=no
I see from the dumps that rtp goes to the server-in-the-middle, but doesn't go further. What's the catch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Demyanov, 2016-03-31
@turbidit

Here you need to decide and use one thing:

canreinvite=yes
directmedia=no

ps Why don't you use IAX2 to communicate with Asterisk?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question