In the sample dialplan, I see the syntax ${...} and the syntax $${...}. Are both these correct? Using eval suggests that the later simply prefix the result with a dollar sign, I am not sure if this intended... examples - copied from random non-sequential lines in default.xml: <action application="set" data="ringback=${us-ring}"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> and for the $${...} syntax: <action application="set" data="transfer_ringback=$${hold_music}"/> <action application="set" data="ringback=$${uk-ring}"/> <action application="bridge" data="sofia/$${domain}/2000@bkw.org"/> Maybe both mean the same thing? -- Brian May <brian@microcomaustralia.com.au>
Brian May <brian@microcomaustralia.com.au> wrote:
In the sample dialplan, I see the syntax ${...} and the syntax $${...}. Are both these correct?
Yes. $$ is a preprocessor variable which is expanded when the XML configuration is parsed. There is a wiki page on the subject.
On 22 February 2010 13:24, Jason White <jason@jasonjgw.net> wrote:
Yes. $$ is a preprocessor variable which is expanded when the XML configuration is parsed. There is a wiki page on the subject.
Oh, Ok. This looks like a good reference: http://wiki.freeswitch.org/wiki/Channel_Variables Thanks. -- Brian May <brian@microcomaustralia.com.au>
Brian May wrote:
In the sample dialplan, I see the syntax ${...} and the syntax $${...}. Are both these correct?
http://wiki.freeswitch.org/wiki/Channel_Variables#.24.7Bvariable.7D_vs._.24.... -- Russell Mosemann
participants (3)
-
Brian May
-
Jason White
-
Russell Mosemann