Asterisk sip directrtpsetup

Business SIP Provider
Provider Plan Details Monthly Rate *
Nextiva SIP Trunking PBX SIP Trunking
  • Compatible with nearly all PBX systems
  • US-based support
  • No contracts at all
$14.95
Details
Vocalocity Unlimited Extension
  • Unlimited calling and long distance
  • Company Call Record, Voicemail to email transcription
  • No contracts, not setup or installation fees
$24.99
Details
RingCentral SIP RingCentral Office
  • Unlimited calling and faxing
  • No Commitment, No Setup Fees, No Installation
$19.99
Details
8x8 8x8 IP Trunking
  • No contract required.
  • Unlimited Calls (9 free countries)
  • Save 50% or more
$29.99
Details
Jive Communications Smart PBX
  • Unlimited Use of All Features
  • Free Long-Distance
  • No Contracts or Hidden Fees
$21.95
Details
Improcom VoIP Unlimited Business SIP Solution
  • Best overall quality & service
  • Unlimited calling in/out
  • Month to month agreement
$24.95
Details

Version

Introduced in Asterisk 1.4

Description

directrtpsetup=yes is similar to directmedia=, except the audio is redirected in the initial INVITEs rather than reinviting the media a
few RTP packets in. Note: canreinvite= was renamed to directmedia= in Asterisk 1.6.2 to more accurately describe what this setting does.

Q: Is there a way to force asterisk to take care only of sip signaling without forcing it to take care of rtp traffic?

A:: Yes. The canonical way is to enable "canreinvite=yes" on both SIP peers (incoming and outgoing legs), which will cause Asterisk to send a new INVITE within the dialog that has updated SDP information corresponding to both endpoints.

The more interesting option is newer — "directrtpsetup=yes" in sip.conf. This will cause Asterisk to behave more like a proxy does with respect to media and simply pass the SDP payloads as received to both endpoints without pivoting the media stream toward itself at any time, unless explicitly forced to do so (i.e. generating music on hold or IVR messages).

Both approaches come with the caveat that the endpoints must be able to address each other directly, so it can't be that one endpoint is behind NAT on a private network that only Asterisk can see and the other endpoint cannot. But if that's taken care of, or you have a far-end NAT traversal solution in place to go with it, then you can do media release on Asterisk.


Troubleshooting

  • Use the CLI command RTP DEBUG IP <Device IP Address>

See also


Created by: JustRumours, Last modification: Mon 16 of May, 2011 (14:17 UTC)


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 

Featured -

Search: