<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div><br></div><div>Hi</div><div><br></div><div>"As per FS wiki we can only return one XML extension upon FS request. "</div><div><br></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>"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>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="border: 1px dashed rgb(47, 111, 171); 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: brian@freeswitch.org<br>> Date: Sun, 7 Mar 2010 20:17:19 -0600<br>> To: freeswitch-users@lists.freeswitch.org<br>> Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan<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>> FreeSWITCH-users@lists.freeswitch.org<br>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> http://www.freeswitch.org<br></div></div>                                            <br /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>