Freeswitch basic
Overview
Freeswitch basic 내용 정리.
Extensions, Contexts and Profiles
In FreeSWITCH 'extension is an immaterial concept. It can be understood as 'a group of instructions into a context'. A context is a named collection of extensions.
Freeswitch has "profiles". A profile is a collection of configurations that is related to a specific IP address and port couple. For example, 192.168.1.12:5060 is a profile, 192.168.1.13:5060 is another profile, 192.168.1.12:5061 is a third profile. Each one profile can contains configurations that are completely different from that of other profiles. One very important such configuration contained in a profile is to which context the incoming call will go. A call is always incoming to a profile, eg, to an address:port couple. So, let's say the address:port couple is the enter gate to a specific profile. Once the call has entered the profile, first thing Freeswitch do is to look up in that profile the configuration that defines which context the call must to into.
Let's say the call is incoming at 192.168.1.12:5060. We called this profile "myprofile", and in the XML configuration of that profile is defined that the context to be used is "mycontext". This means that the incoming call will only be processed by the extensions (instructions sets) contained in the "mycontext" extensions collection (context). That is, the incoming call will go in the context defined in the profile, and it has no way to access anything that is outside that context.