multi line comments in asterisk dial plan
Asked Answered
C

1

6

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?

Christiniachristis answered 13/2, 2013 at 6:56 Comment(0)
I
11

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 --;
Isabeau answered 13/2, 2013 at 7:11 Comment(3)
@Christiniachristis then you'd better mark it as an answer to help others.Glaser
Btw, in AEL (*.ael dialplan files) the multiline comment would be /* ... */, just like in C or JS.Fodder
And in extensions.lua it is: --[[ (start) and ]] (end)Marabout

© 2022 - 2024 — McMap. All rights reserved.