This is indeed the case. I&#39;m looking switch_utils.c and it surely looks like there is no means for escaping the commas. If you use a backslash then both the backslash and the comma get passed through as-is. <div><br></div>
<div>Any suggestions on how to send through strings that contain commas?</div><div>-MC<br><br><div class="gmail_quote">On Sun, Feb 20, 2011 at 3:20 AM, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I want to put tone_stream in dialstring but don&#39;t know how to escape the comma.<br>
<br>
<br>
originate  {some_var=&#39;tone_stream://%(2000,4000,440.0,480.0);loops=1&#39;}portaudio/auto_answer<br>
&amp;echo<br>
2011-02-20 19:13:09.516139 [DEBUG] switch_ivr_originate.c:1971<br>
variable string 0 = [some_var=tone_stream://%(2000]<br>
2011-02-20 19:13:09.516139 [DEBUG] switch_ivr_originate.c:1971<br>
variable string 1 = [4000]<br>
2011-02-20 19:13:09.516139 [DEBUG] switch_ivr_originate.c:1971<br>
variable string 2 = [440.0]<br>
2011-02-20 19:13:09.516139 [DEBUG] switch_ivr_originate.c:1971<br>
variable string 3 = [480.0);loops=1]<br>
<br>
There&#39;s a work around but it&#39;s not elegant.<br>
<br>
<a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2010-September/062753.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2010-September/062753.html</a><br>
<br>
Actually we may not need to escape the comma, the parser should keep<br>
reading until found the second quote. Would this need a patch?<br>
<br>
Thanks.</blockquote></div></div>