[Freeswitch-users] Link between Use-context and dialplan
Otis
abeka at greatiam.com
Sun Dec 13 08:19:05 PST 2009
Frank Carmickle wrote:
> On Sun, Dec 13, Otis wrote:
>
>> Sorry
>>
>> I posted this earlier but did not do the due diligence and sent it with
>> so much typo them meaning does not come out:
>>
>> In a nutshell I would like to know :
>>
>> 1. How FS would know which dialplan to use for an extension with user
>> context other than default.
>>
>
> It just uses the context tag which you include extensions in side it.
>
> <context name="public">
> <extension name="transfer_to_default">
> <condition>
> <action application="transfer" data="${destination_number} XML default"/>
> </condition>
> </extension>
> </context>
>
>
>> 2. If a file file has to be created does the name matter
>>
>
> Doesn't matter. The include statements pull the files in. Wrap the stuff in the included file in <include></include> tags.
>
>
>> 3. Where should that file be located.
>>
>
> Anywhere! It easiest to set up includes like
>
> <X-PRE-PROCESS cmd="include" data="public/*.xml"/>
>
> Now you can put all kinds of files in the public dir and they will get included when the preprocess runs. The preprocess runs at start up so you need to restart IIRC.
>
> HTH
> --FC
>
>
>
Thank you so much for your time.
More information about the FreeSWITCH-users
mailing list