[Freeswitch-users] Dialplan question
Diego Toro
dftoro at yahoo.com
Mon Feb 22 05:11:29 PST 2010
Hi, check <extension name="Local_Extension"> on conf/dialplan/default.xml, You can get an idea of how to do what you need.
Diego Toro
http://lacarretade.blogspot.com/
--- On Sun, 2/21/10, Matthew Law <matt at webcontracts.co.uk> wrote:
> From: Matthew Law <matt at webcontracts.co.uk>
> Subject: [Freeswitch-users] Dialplan question
> To: freeswitch-users at lists.freeswitch.org
> Date: Sunday, February 21, 2010, 6:26 PM
> I have FS installed and I can make
> outgoing calls through my SIP provider.
> I can also call other extensions (FS is running on a small
> Xen domU on
> the internet), but I am having problems getting the
> dialplan for incoming
> calls to work.
>
> What I want to do is have incoming calls on my number ring
> all extensions,
> e.g. 1000 - 1005 for 10 seconds and then go to voicemail
> for extension
> 1000. If there are no logged-on users, then it should
> go straight to
> voicemail. Rather than bite off too much, I thought I
> would try and get a
> very basic setup working and take it from there...
>
> At the moment it goes straight to voicemail for extension
> 1000 even if
> 1000 is logged in. Here are the dialplan files I have
> (everything else is
> default from the trunk install):
>
> dialplan/public/00_inbound_did.xml:
>
> <include>
> <extension name="08433xxxxxxx">
> <condition
> field="destination_number" expression="^(0843xxxxxxx)$">
> <action
> application="transfer" data="$1 XML default"/>
> </condition>
> </extension>
> </include>
>
> dialplan/default/12_voiptalk.xml:
>
> <include>
> <extension name="public_did">
> <condition field="destination_number"
> expression="^(0843xxxxxxx)$">
> <action application="transfer"
> data="1000 XML default"/>
> </condition>
> </extension>
> <extension name="outgoing">
> <condition field="destination_number"
> expression="^9([0-9]+)$">
> <action application="bridge"
> data="sofia/gateway/voiptalk/$1" />
> </condition>
> </extension>
> </include>
>
> I would be very grateful if someone could tell me where I
> am going wrong.
> I've been looking at various FS wiki pages for hours as
> well as the
> example configs and can't seem to make any headway.
> My other question is
> what command should I be run after changing the dialplan?
> is it just
> 'reloadxml'?
>
>
> Many thanks,
>
> Matt.
>
>
> _______________________________________________
> 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
>
More information about the FreeSWITCH-users
mailing list