Does a SIP trunk relay the RTP stream or just set up the call

asterisknetworkingrtpsipvoip

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?

Best Answer

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.