<div dir="ltr"><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-FromtheDialplan" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-FromtheDialplan</a><br><a href="https://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan" target="_blank">https://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan</a><div><br></div><div>There are also examples scattered throughout the wiki/confluence</div><div><br></div><div>It is tucked away somewhere obscure (after all not all api commands are in mod_commands so it's more generic). Do you have an suggestions for a better location?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Seeing Italo's comment it'll be documented in the XML dialplan too which I completely agree is appropriate, but that's still not the only place where it may be used (can also be used via ESL for example) so it may need mentioning elsewhere too. Perhaps a page dedicated to the ${} syntax in all its forms?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 November 2014 13:31, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div><div>Hi - where on confluence is this useful information documented? When searching, I couldn't find even find it on the wiki.</div><span><font color="#888888"><div>-Avi</div></font></span><span><div><br></div><div dir="ltr">On Thu, Dec 13, 2012 at 7:45 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br></div></span></div></div><span><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It supports the substring with positive and negative vals so:<div><br></div><div>${foo:3:4} would start at char 3 in the string and eval to the next 4 chars </div><div>${foo:-3:2} would start at the end and go back 3 chars then print the next 2 chars </div>
<div><br></div><div>If the var name is followed by a ( or a space, it will pass the values to the FSAPI and expand the result inline.</div><div><br></div><div>${sofia_contact 1004}<br></div><div><br></div><div>equiv of...</div>
<div><br></div><div>${sofia_contact(1004)}<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 8:53 AM, <span dir="ltr"><<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. I was experimenting with ${variable} and was wondering what could<br>
be in there before the }? I can do a substring if I say variable:2, but<br>
I wonder what else you can do? The bash manual has all kinds of things<br>
you can have, but how much of this will fs do?<br>
<br>
Thanks in advance for any suggestions.<br>
<br>
--<br>
Your life is like a penny. You're going to lose it. The question is:<br>
How do<br>
you spend it?<br>
<br>
John Covici<br>
<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br></blockquote></div></div></div></div></blockquote></div></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>