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. 2. If a file file has to be created does the name matter 3. Where should that file be located. Thanks.
inline.... JM On Sun, Dec 13, 2009 at 1:40 AM, Otis <abeka@greatiam.com> 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.
The SIP profile that the call comes in has a context. All calls that do not have users associated (not authenticated) or users that do not have the user_context var set will use that context. If the user has the user_context var set, it will use the specified one.
2. If a file file has to be created does the name matter
No. 3. Where should that file be located.
${FSROOT}/conf/dialplan/*
I *strongly *suggest you to read the default configs and the wiki.
Thanks.
_______________________________________________ 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
-- João Mesquita FreeSWITCH™ Solutions t: +1 (646) 4959927
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
Frank Carmickle wrote:
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.
Or fire up <freeswitchroot>/bin/fs_cli and issue a "reloadxml" or "reload <module>", if a change affects a module. -- Russell Mosemann
On Sun, Dec 13, Russell Mosemann wrote:
Frank Carmickle wrote:
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.
Or fire up <freeswitchroot>/bin/fs_cli and issue a "reloadxml" or "reload <module>", if a change affects a module.
Thanks for clearing that up for me. I seemed to remember that the wiki was unclear about preprocessor variables being updated with a reloadxml but it is clear now if it wasn't before. --FC
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.
participants (4)
-
Frank Carmickle
-
João Mesquita
-
Otis
-
Russell Mosemann