To allow Direct Media between NAT devices, or between NAT and Non-NAT devices, the following configuration is necessary.
Direct Media with NAT will not work under following conditions:
addressContext
name of both the endpoints does not matchdirectMediaGroupId
is identical on both Trunk Groups)For SIP Direct Media calls, if you enable SIP Trunk Group level flag directMediaAllowed
and the Packet Service Profile level flag useDirectMedia
, the SBC supports a maximum of four media lines in the received INVITE. If the number of media lines exceeds four, the SBC fails to perform due to error conditions.
ACCESS SIDE:
directMediaAllowed
enableddirectMediaAllowedBehindNat
enableduseDirectMedia
enabledCORE SIDE (towards Application Server):
sendDirectMediaInfoInSdpAttribute
enableduseDirectMedia
enabledThe dmNatPrefix
table is not required to create as the endpoints are behind the same NAT.
ACCESS SIDE:
directMediaAllowed
enableddirectMediaAllowedBehindNat
enabledsdpTransparencyState
disableduseDirectMedia
enabledCORE SIDE (towards Application Server):
sendDirectMediaInfoInSdpAttribute
enableduseDirectMedia
enableddmNatPrefix
on addressContext
This is an occasional scenario where an endpoint behind NAT can have Direct Media with endpoint not behind NAT. However, if such a case exists, SBC exchanges the media IPs of such devices, while the actual exchange of media depends on the network.
ACCESS SIDE:
directMediaAllowed
enableddirectMediaAllowedBehindNat
enabledsdpTransparencyState
disableduseDirectMedia
enabledCORE SIDE (towards Application Server):
sendDirectMediaInfoInSdpAttribute
enableduseDirectMedia
enableddmNatPrefix
on addressContext
The CLI syntax to enable Direct Media with NAPT on Trunk Group is as follows:
% set addressContext <name> zone <name> sipTrunkGroup <TG-Name> media directMediaAllowedBehindNapt <disable|enable>
The CLI syntax to group the endpoint signaling IP addresses for which to allow Direct Media with NAPT is as follows:
set addressContext <name> natDirectMediaGroup <groupName> dmNatPrefix <IpV4_Address> <prefixLen>
Related articles: