Thanks a lot Paulo! <div>It does work, we have updated to the latest SVN and checked cs_routing and apparently discovered a problem with response generating script, it wasn't updated after recent DB change. </div><div>
<br><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 1:31 PM, Paulo Vicentini <span dir="ltr"><<a href="mailto:vizentini@hotmail.com">vizentini@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div>Hello,</div><div><br></div><div>FreeSWITCH version: 1.0.trunk (16870M)</div><div><br></div><div>I have replied FS even with extensions you have emailed here (in my case I have data="sofia/gateway/myGW/<a href="http://888@conference.freeswitch.org/888" target="_blank">888@conference.freeswitch.org/888</a>") - it works</div>
<div><br></div><div>You may need to give a look at "CS_ROUTING" state.</div><div><br></div><div><br></div><div>best,</div><div>Paulo</div><hr>Date: Mon, 8 Mar 2010 12:22:37 -0500<br>From: <a href="mailto:paul.gore.j@gmail.com" target="_blank">paul.gore.j@gmail.com</a><div>
<div></div><div class="h5"><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan<br>
<br><div>It's in the Wiki: <a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl" target="_blank">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a> - "<span style="font-family:sans-serif;font-size:13px;line-height:19px">You will only need to send one extension back...<span style="font-family:arial;line-height:normal;font-size:small">"</span></span></div>
<div><span style="font-family:sans-serif;font-size:13px;line-height:19px"><span style="font-family:arial;line-height:normal;font-size:small">In my real dial plan I do use unique names for the extensions, but as I mentioned FS only executes first extension from the response. If I place same extensions in a static XML they work as expected.</span></span></div>
<div>I use FreeSWITCH Version 1.0.trunk (16573M). Which one do you use? Can you post a sample response you generate, please?</div><div><span style="font-family:sans-serif;font-size:13px;line-height:19px"><span style="font-family:arial;line-height:normal;font-size:small"><br>
</span></span></div><br><div>On Mon, Mar 8, 2010 at 10:42 AM, Paulo Vicentini <span dir="ltr"><<a href="mailto:vizentini@hotmail.com" target="_blank">vizentini@hotmail.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><br></div><div>Hi</div><div><div><br></div><div>"As per FS wiki we can only return one XML extension upon FS request. "</div><div><br></div></div><div>Could you please tell me where did you find that info? I do return several extensions by request and FS works as expect (Am I wrong doing that?)</div>
<div><br></div><div><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><div>Yes, It seems to be possible (Am I wrong?) but notice that you are giving the same extension name for all your extensions:</div>
<div><br></div><div><span style="font-family:sans-serif;font-size:15px;line-height:22px"><pre style="padding:1em;color:black;background-color:rgb(249, 249, 249);line-height:1.1em"> <extension name="test9">
</pre></span></div></div><br>I think this can mislead dialplan_hunt in mod_dialplan_xml...<div>Give each extension a unique name, and FS will parse/regex all them for you...</div><div> <br><div><br></div><div>All the best,</div>
<div>Paulo</div><div><br>> From: <a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>> Date: Sun, 7 Mar 2010 20:17:19 -0600<br>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan<div><div></div><div><br>> <br>> Sounds like you zigged where you should have zagged.<br>> <br>> /b<br>> <br>> On Mar 7, 2010, at 8:03 PM, paul gore wrote:<br>
> <br>> > :-))<br>> > I used it a lot. Unfortunately we do not store did number as a field, as I said we store complete extension XML, with extension number and context as a key.<br>> > So essentially I will retrieve a bunch of extension XMLs which I need to parse and run against regex matcher to find out the one, which is what exactly FS is doing when XML dial plan is defined in a static file.<br>
> <br>> <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></div></div></div></div><div>                                            <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="https://signup.live.com/signup.aspx?id=60969" target="_blank">Get it now.</a></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>                                            <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="https://signup.live.com/signup.aspx?id=60969" target="_blank">Get it now.</a></div></div></div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>