Actually to be correct - FS does read such response, but looks like it processes only the first one from the top, and if its condition evaluates to false it does not process further extensions. <br><br><div class="gmail_quote">
On Sun, Mar 7, 2010 at 6:07 PM, paul gore <span dir="ltr">&lt;<a href="mailto:paul.gore.j@gmail.com">paul.gore.j@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;">
Well, basically we used to return XML dial plan response with one extension like<div><br></div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px"><pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47, 111, 171);border-right-color:rgb(47, 111, 171);border-bottom-color:rgb(47, 111, 171);border-left-color:rgb(47, 111, 171);color:black;background-color:rgb(249, 249, 249);line-height:1.1em">
&lt;document type=&quot;freeswitch/xml&quot;&gt;
  &lt;section name=&quot;dialplan&quot; description=&quot;RE Dial Plan For FreeSwitch&quot;&gt;
    &lt;context name=&quot;default&quot;&gt;
      &lt;extension name=&quot;test9&quot;&gt;
        &lt;condition field=&quot;destination_number&quot; expression=&quot;^83789$&quot;&gt;
          &lt;action application=&quot;bridge&quot; data=&quot;iax/<a href="http://guest@conference.freeswitch.org/888" target="_blank">guest@conference.freeswitch.org/888</a>&quot;/&gt;
        &lt;/condition&gt;
      &lt;/extension&gt;&lt;/context&gt;&lt;/section&gt;&lt;/document&gt;</pre></span><div>and now we want to return response like that</div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px"><pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47, 111, 171);border-right-color:rgb(47, 111, 171);border-bottom-color:rgb(47, 111, 171);border-left-color:rgb(47, 111, 171);color:black;background-color:rgb(249, 249, 249);line-height:1.1em">
&lt;document type=&quot;freeswitch/xml&quot;&gt;
  &lt;section name=&quot;dialplan&quot; description=&quot;RE Dial Plan For FreeSwitch&quot;&gt;
    &lt;context name=&quot;default&quot;&gt;
      &lt;extension name=&quot;test9&quot;&gt;&lt;condition field=&quot;username&quot; expression=&quot;^756755$&quot;/&gt;&lt;condition field=&quot;destination_number&quot; expression=&quot;^83789$&quot;&gt;&lt;action application=&quot;bridge&quot; data=&quot;iax/<a href="http://guest@conference.freeswitch.org/888" target="_blank">guest@conference.freeswitch.org/888</a>&quot;/&gt;&lt;/condition&gt;&lt;/extension&gt;</pre>

<pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47, 111, 171);border-right-color:rgb(47, 111, 171);border-bottom-color:rgb(47, 111, 171);border-left-color:rgb(47, 111, 171);color:black;background-color:rgb(249, 249, 249);line-height:1.1em">
&lt;extension name=&quot;test9&quot;&gt;&lt;condition field=&quot;username&quot; expression=&quot;^5564645$&quot;/&gt;&lt;condition field=&quot;destination_number&quot; expression=&quot;^83789$&quot;&gt;&lt;action application=&quot;bridge&quot; data=&quot;iax/<a href="http://guest@conference.freeswitch.org/888" target="_blank">guest@conference.freeswitch.org/888</a>&quot;/&gt;&lt;/condition&gt;&lt;/extension&gt;&lt;/context&gt;&lt;/section&gt;&lt;/document&gt;</pre>

</span></div><div><br></div><div>But FS seem not to understand the latter, we get &quot;No route...&quot;</div><div><div></div><div class="h5"><div><br></div><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 5:38 PM, Michael S  Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>Can you pastebin a sample dialplan and script? I&#39;d like to better visualize what problem you&#39;re trying to solve. </div>

<div>-MC<br><br>Sent from my iPhone</div><div><div></div><div><div><br>On Mar 7, 2010, at 2:13 PM, paul gore &lt;<a href="mailto:paul.gore.j@gmail.com" target="_blank">paul.gore.j@gmail.com</a>&gt; wrote:<br><br>
</div><div></div><blockquote type="cite"><div>Thanks fro the input.<div>I thought about such approach, the only problem I see is there that I essentially would have to duplicate FS dial plan parsing functionality, so my question basically is there a way to avoid that? </div>


<div>I have seen a Ruby dial plan example on XML curl wiki page which actually seem to generate response with multiple extensions, but unfortunately FS cannot read such response.<br><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 3:18 PM, Nazim Agabekov <span dir="ltr">&lt;<a href="mailto:nazim.agabekov@gmail.com" target="_blank"></a><a href="mailto:nazim.agabekov@gmail.com" target="_blank">nazim.agabekov@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">


  
  

<div text="#000000" bgcolor="#ffffff">
Hello Paul<br>
<br>
I also use mod_xml_curl for a dialplan. I&#39;ve solved this issue by
generating the XML extension dynamically.<br>
My fastcgi daemon checks the input variables like caller id,
originator, e.t.c, makes routing decision<br>
and dynamically generates only one XML extension.<br>
So, there is no  real need for creating complex dialplan on
mod_xml_curl output.<br>
<br>
Nazim<div><div></div><div><br>
<br>
On 03/07/2010 11:03 PM, paul gore wrote:
</div></div><blockquote type="cite"><div><div></div><div>Greetings,
  <div>We use XML curl to fetch our dial plan extensions from a
database. As per FS wiki we can only return one XML extension upon FS
request. </div>
  <div>Now we need to return a set of extensions with same number
condition and context but with different second condition so that FS
can pick up the right one. </div>
  <div>Is it possible at all? And if yes how response XML with multiple
extensions should look like?</div>
  <div><br>
  </div>
  <div>Thanks a lot.</div>
  </div></div><pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank"></a><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </div></pre>
</blockquote>
<br>
</div>

<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><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"></a><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"></a><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"></a><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>

<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>

<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div><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>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br>