Brekeke SIP Server Wiki

$sdp.audio

Get an Audio media description line from SDP.

 

Syntax:
$sdp.audio( prefix )
Returns:

the matched line

 

Version Since:

2.5

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$sdp.audio("m") = ! RTP/AVP.* 0

If the SDP doesn’t specify G711 in the Audio media description.

$sdp.audio(“a=ptime:”) = ptime:(.+)

Get the ptime value from a=ptime line

 

See Also:

$body 
$sdp.video 

Yes No
Suggest Edit