OK, so that means multiple extensions not possible.<div>Yes, it's not overly intensive, but nevertheless I actually have to parse regex in the second condition to find out which extension matches incoming number and I wanted instead to let FS do that for me. </div>
<div>It is a bit complex since we store complete extension XML in DB, so I have to retrieve all the extensions matching first condition, extract their second condition, then run them in loop... Looks like I can be better off using JS for that instead.</div>
<div>Thank you everybody.<br><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 7:32 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You generate exactly ONE extension which was the exact way it was designed to be used. You don't have to parse anything only look at the variables you care about and run with it. Its nothing too complex or overly intensive to do.<br>
<font color="#888888"><br>
/b<br>
</font><div class="im"><br>
On Mar 7, 2010, at 4:13 PM, paul gore wrote:<br>
<br>
> Thanks fro the input.<br>
> 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?<br>
> 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>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
</div></div></blockquote></div><br></div>