I knew single line comments in asterisk dial plan that is ";" e.g
;exten => s,1,Playback(project/eligibility_points_msc)
but what is used for multi line comments in dial plan?
Select all the lines that you would like to be commented. Two slashes "//" will be added to the front of each line, causing them to be recognized as a comment.
Multiline comments are used for large text descriptions of code or to comment out chunks of code while debugging applications. Comments are ignored by the compiler.
If the asterisk ( * ) character is at the start of a command, then the rest of the line is treated as a comment, even if a semicolon appears after it.
Multi-line comments begin with a slash-asterisk ( /* ), end with an asterisk-slash ( */ ), and can span multiple lines.
Asterisk also allows us to create block comments. A block comment is a comment that begins on one line, and continues for several lines. Block comments begin with the character sequence
;--
and continue across multiple lines until the character sequence
--;
is encountered. The block comment ends immediately after --; is encountered.
[section-name]
setting=true
;-- this is a block comment that begins on this line
and continues across multiple lines, until we
get to here --;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With