Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multi line comments in asterisk dial plan

Tags:

asterisk

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?

like image 279
shehzy Avatar asked Feb 13 '13 06:02

shehzy


People also ask

How do you comment over multiple lines?

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.

What is a multi-line 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.

How do you comment on asterisk?

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.

What is the code used to put a multi-line comment?

Multi-line comments begin with a slash-asterisk ( /* ), end with an asterisk-slash ( */ ), and can span multiple lines.


1 Answers

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 --;
like image 94
StarPinkER Avatar answered Sep 28 '22 20:09

StarPinkER