[Freeswitch-users] XML curl and multiple extension in dialplan
paul gore
paul.gore.j at gmail.com
Mon Mar 8 12:48:56 PST 2010
Thanks a lot Paulo!
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.
On Mon, Mar 8, 2010 at 1:31 PM, Paulo Vicentini <vizentini at hotmail.com>wrote:
> Hello,
>
> FreeSWITCH version: 1.0.trunk (16870M)
>
> I have replied FS even with extensions you have emailed here (in my case I
> have data="sofia/gateway/myGW/888 at conference.freeswitch.org/888") - it
> works
>
> You may need to give a look at "CS_ROUTING" state.
>
>
> best,
> Paulo
> ------------------------------
> Date: Mon, 8 Mar 2010 12:22:37 -0500
> From: paul.gore.j at gmail.com
>
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] XML curl and multiple extension in dialplan
>
> 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 at 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 at freeswitch.org
> > Date: Sun, 7 Mar 2010 20:17:19 -0600
> > To: freeswitch-users at 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 at 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.<https://signup.live.com/signup.aspx?id=60969>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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.<https://signup.live.com/signup.aspx?id=60969>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100308/a6b8b79b/attachment-0002.html
More information about the FreeSWITCH-users
mailing list