0

Suppose I have a SIP PBX like Asterisk and a bunch of phones registered to it, and outgoing/incoming calls are handled through a SIP trunk. Do the RTP streams go directly between the phones and the SIP trunk provider or are they relayed through the PBX?

mortabis
  • 64
  • 6

2 Answers2

2

check this line in sip.conf :
canreinvite = no ; allow RTP voice traffic to bypass Asterisk

if it set to yes RTP traffic will _try_ to go directly between SIP endpoints. If it set to no - all traffic will be sent over PBX.

stimur
  • 894
  • 5
  • 11
1

It depends. If you do any transcoding (in other words the two endpoints use different codecs) then Asterisk will definately be in the RTP stream. If your two endpoints are on opposite sides of NAT, then Asterisk will likely be in the RTP stream (also depending on reinvite settings). If both endpoints are on the same side of NAT then likely no.

TSG
  • 1,634
  • 6
  • 29
  • 51