context public , dialplan public.xml relation ?
Hello : Under sip_profiles directory these files "internal.xml , external.xml , nat.xml" all have a setting ==> <param name="context" value="public"/> Does the "public context" relate to the dialplan directory "public.xml" file ? if do , I can route to another dialplan file under some condition, do I ? " <extension name="public_extensions"> <condition field="destination_number" expression="^(10[01][0-9])$"> <action application="transfer" data="$1 XML *my-default*"/> " ; ^^^^^^^^^^^^^^^ if not , what should I do ? ps: Brian, thanks your effort here.
On Aug 14, 2008, at 5:38 PM, Lee JJ wrote:
Hello :
Under sip_profiles directory these files "internal.xml , external.xml , nat.xml" all have a setting ==> <param name="context" value="public"/>
Does the "public context" relate to the dialplan directory "public.xml" file ?
Yes. But you also have to realize that users that register/auth can override this with the user_context variable.
if do , I can route to another dialplan file under some condition, do I ?
" <extension name="public_extensions"> <condition field="destination_number" expression="^(10[01] [0-9])$"> <action application="transfer" data="$1 XML my-default"/> " ; ^ ^^^^^^^^^^^^^^
if not , what should I do ?
Notice the public.xml file has examples of routing calls from that context to the default context.
ps: Brian, thanks your effort here. _______________________________________________ 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
Brian West sip:brian@freeswitch.org
participants (2)
-
Brian West
-
Lee JJ