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?

2 Answers 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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.