yes the intention is for you to specify the variables in {} in the dial string, no need for another parameter.<br>the {} is part of the "originate syntax" which is used in the bridge application and everywhere else.<br>
<br>You can escape special characters in the vars by using well placed "quotation marks" or escape chars with \ <br>and special \s and \t for space and tab.<br><br><br><div class="gmail_quote">On Mon, Mar 23, 2009 at 7:59 AM, Szymon Olko <span dir="ltr"><solko@gcdf.pl></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Brian West pisze:<br>
<div class="im">> On Mar 23, 2009, at 3:51 AM, Szymon Olko wrote:<br>
><br>
>> I found solution for this looking into sources of mod_conference and<br>
>> switch_ivr_originate.<br>
>> Channel variables can be set in originate and dial commands,<br>
>> Following syntax must can be used:<br>
>><br>
>> 'bgapi conference test dial {variable_name=value}sofia/internal/<br>
>> 1001%192.168.77.248 123 test'<br>
>><br>
>> or<br>
>><br>
>> 'bgapi originate {variable_name=value}sofia/internal/<br>
>> 1000%192.168.77.248 &conference(test#1) XML default test 123'<br>
>><br>
>> Multiple variables can be set, every variable must be put in it's<br>
>> own curly brackets.<br>
><br>
> NO, You do {var=val,foo=bar,blah=blah}sofia/blah/blah Its the same<br>
> syntax system wide.<br>
><br>
><br>
>> Do anybody knows is there are problems with some special characters<br>
>> in variable value??<br>
><br>
> Like what?<br>
<br>
</div>For example how to put space in variable value? Maybe other like %,@,/ are forbiden?<br>
<div class="im"><br>
><br>
>> This feature works now because there is no checking of 'bridgeto'<br>
>> values in code. Is this good way to use it, or should I make a<br>
>> patch for mod_conference and add another argument to 'conference<br>
>> dial' command?<br>
><br>
><br>
> What do you mean patch?<br>
><br>
</div>I could change mod_conference so it accepts one more parameter in command, then I could post patch to you.<br>
I need that feature to set variable. Current solution works great, but I'm asking is this the right way?<br>
<br>
Best regards<br>
<font color="#888888">Szymon Olko<br>
</font><div><div></div><div class="h5">><br>
> _______________________________________________<br>
> Freeswitch-dev mailing list<br>
> <a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>