<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<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&nbsp;data="sofia/gateway/myGW/888@conference.freeswitch.org/888") - 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 id="stopSpelling">Date: Mon, 8 Mar 2010 12:22:37 -0500<br>From: paul.gore.j@gmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan<br><br><div>It's in the Wiki:&nbsp;<a href="http://wiki.freeswitch.org/wiki/Mod_xml_curl">http://wiki.freeswitch.org/wiki/Mod_xml_curl</a>&nbsp;- "<span class="ecxApple-style-span" style="font-family:sans-serif;font-size:13px;line-height:19px">You will only need to send one extension back...<span class="ecxApple-style-span" style="font-family:arial;line-height:normal;font-size:small">"</span></span></div>
<div><span class="ecxApple-style-span" style="font-family:sans-serif;font-size:13px;line-height:19px"><span class="ecxApple-style-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&nbsp;extensions&nbsp;in a static XML they work as &nbsp;expected.</span></span></div>
<div>I use&nbsp;FreeSWITCH Version 1.0.trunk (16573M). Which one do you use? Can you post a sample response you generate, please?</div><div><span class="ecxApple-style-span" style="font-family:sans-serif;font-size:13px;line-height:19px"><span class="ecxApple-style-span" style="font-family:arial;line-height:normal;font-size:small"><br>
</span></span></div><br><div class="ecxgmail_quote">On Mon, Mar 8, 2010 at 10:42 AM, Paulo Vicentini <span dir="ltr">&lt;<a href="mailto:vizentini@hotmail.com">vizentini@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">




<div>
<div><br></div><div>Hi</div><div class="ecxim"><div><br></div><div>"As per FS wiki we can only return one XML extension upon FS request.&nbsp;"</div><div><br></div></div><div>Could you please tell me where did you find that info? I do&nbsp;return several extensions by request and FS works as expect (Am I wrong doing that?)</div>
<div><br></div><div><div class="ecxim"><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.&nbsp;</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 &nbsp;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"> &lt;extension name="test9"&gt;
</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>&nbsp;<br><div><br></div><div>All the best,</div>
<div>Paulo</div><div><br>&gt; From: <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>&gt; Date: Sun, 7 Mar 2010 20:17:19 -0600<br>&gt; To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
&gt; Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan<div><div></div><div class="h5"><br>&gt; <br>&gt; Sounds like you zigged where you should have zagged.<br>&gt; <br>&gt; /b<br>&gt; <br>&gt; On Mar 7, 2010, at 8:03 PM, paul gore wrote:<br>
&gt; <br>&gt; &gt; :-))<br>&gt; &gt;  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>&gt; &gt; 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>
&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div></div></div><div class="ecxhm">                                               <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="https://signup.live.com/signup.aspx?id=60969">Get it now.</a></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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org">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='_new'>Get it now.</a></body>
</html>