It's in the Wiki: http://wiki.freeswitch.org/wiki/Mod_xml_curl - "You will only need to send one extension back..."
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.
I use FreeSWITCH Version 1.0.trunk (16573M). Which one do you use? Can you post a sample response you generate, please?


On Mon, Mar 8, 2010 at 10:42 AM, Paulo Vicentini <vizentini@hotmail.com> wrote:

Hi

"As per FS wiki we can only return one XML extension upon FS request. "

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?)

"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. 
Is it possible at all? And if yes how response XML with multiple extensions should look like?"

Yes, It seems to be possible (Am I wrong?) but notice that you are giving the  same extension name for all your extensions:

 <extension name="test9">

I think this can mislead dialplan_hunt in mod_dialplan_xml...
Give each extension a unique name, and FS will parse/regex all them for you...
 

All the best,
Paulo

> From: brian@freeswitch.org
> Date: Sun, 7 Mar 2010 20:17:19 -0600
> To: freeswitch-users@lists.freeswitch.org
> Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan

>
> Sounds like you zigged where you should have zagged.
>
> /b
>
> On Mar 7, 2010, at 8:03 PM, paul gore wrote:
>
> > :-))
> > 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.
> > 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.
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org


Hotmail: Powerful Free email with security by Microsoft. Get it now.

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org