Disable RTP-Relay if SDP indicates a Public IP address
The following DialPlan rule disables RTP-Relay if SDP’s Connection information (“c=”) indicates a public IP address.
------------------------------------------------------ [Matching Patterns] $request = ^INVITE $body( "c=IN *IP4 *(.+)" ) = (.+) $globaladdr( "%1" ) = true [Deploy Patterns] $rtp = false $continue = true ------------------------------------------------------