Public context

In the demo configuration dialplan, "public" is the context to which all the calls coming from "outside", or from unauthorized users, are sent. It is a very simple context, containing just two extensions. Unauthorized users and calls coming from outside are totally limited in what they can do or which services can reach (actually zero).

The first extension print some debug info about the call on FreeSWITCH console, while the second extension is a transfer to the "internal phones" extension in the default context.

The XML dialplan's public context in demo configuration is in /usr/local/freeswitch/conf/dialplan/public.xml file, and includes all XML files inside the /usr/local/freeswitch/conf/dialplan/public/ directory.

DIDs are usually managed right there, by dialplan extensions with patterns that match calls incoming from ITSP provided phone numbers, in XML files inside the /usr/local/freeswitch/conf/dialplan/public/ directory.

Eg, in an XML file there we will define that a call coming from our ITSP with number +1212555444 will be bridged to Sara's registered internal deskphone, while +1212555445 will instead be connected to our IVR ("Hello, you reached FreeSWITCH Solutions, your call is important to us", and so on).