RTP Handling

Home » Asterisk Users » RTP Handling
Asterisk Users 3 Comments

Hello,

I am wondering if asterisk does anything at all to RTP packets passed from channel to channel if no transcoding is involved? Can I assume that the packet that left phone A, arrived at the asterisk server, was copied to phone B’s channel and eventually arrived at phone B had exactly (byte for byte) the same payload? Assume two SIP endpoints, no NAT involved.

Thanks,

j

3 thoughts on - RTP Handling

  • That will only happen when the call is natively bridged:

    Non-native bridge: Packets can get translated or Asterisk has an interest in the packet for things like DTMF or call recording. Native bridge doing packet-to-packet (Local bridging): Packets come in on one channel and go out the other channel with nothing else done to them. Native bridge doing direct media (Remote bridging): Packets go directly between endpoints so Asterisk never sees them.

    Richard

  • Thanks for the quick reply RIchard! Can I force native bridging, or does it default to that if I don’t configure direct media? The dialplan will be very simple – extensions calling extensions within a context.
    No DTMF, no recording, no mixing for conference, etc.

    Cheers,

    j

  • You cannot force native bridging. It will switch to native bridging if you don’t set anything that makes Asterisk interested in the media stream. Such as enabling DTMF features in features.conf and Dial flags like t or T.

    Richard