This must be a FAQ, but I can't find it. In the default dialplan, how can I tell if the call was from an internal phone, or from an external call that was transferred? One page said there was a variable ${internal_call}, but I can't find that anywhere in the source. Should I just look to see if a directory variable, like account_code or user_context is set? -- Steve
I grep'd the entire source tree and found no mention of this variable. One thing you can do is look to see if various transfer_xxx variables are set in phone-to-phone calls vs. transferred calls. I'd start with "transfer_source" var and go from there. -MC On Wed, Feb 20, 2013 at 3:56 PM, Steven Schoch < schoch+freeswitch.org@xwin32.com> wrote:
This must be a FAQ, but I can't find it.
In the default dialplan, how can I tell if the call was from an internal phone, or from an external call that was transferred?
One page said there was a variable ${internal_call}, but I can't find that anywhere in the source. Should I just look to see if a directory variable, like account_code or user_context is set?
-- Steve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
I would guess its an example of a custom variable being set in directory or in dialplan under certain conditions , and checked for later in dialplan Steve On 22 Feb 2013, at 00:49, Michael Collins <msc@freeswitch.org> wrote:
I grep'd the entire source tree and found no mention of this variable.
One thing you can do is look to see if various transfer_xxx variables are set in phone-to-phone calls vs. transferred calls. I'd start with "transfer_source" var and go from there.
-MC
On Wed, Feb 20, 2013 at 3:56 PM, Steven Schoch <schoch+freeswitch.org@xwin32.com> wrote:
This must be a FAQ, but I can't find it.
In the default dialplan, how can I tell if the call was from an internal phone, or from an external call that was transferred?
One page said there was a variable ${internal_call}, but I can't find that anywhere in the source. Should I just look to see if a directory variable, like account_code or user_context is set?
-- Steve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Doesn't that var (or its like) get created and set by operation of the dial plan xml (not source code)? OP, you can have your external-to-internal context set any such semaphore variable. ————— iThing: Big thumbs & little keys. Please excuse typo, spelling and grammar errors • Thought of the Day – "With all this manure, there must be a pony in here somewhere.” On 2013-02-21, at 19:52, Michael Collins <msc@freeswitch.org> wrote: I grep'd the entire source tree and found no mention of this variable. One thing you can do is look to see if various transfer_xxx variables are set in phone-to-phone calls vs. transferred calls. I'd start with "transfer_source" var and go from there. -MC On Wed, Feb 20, 2013 at 3:56 PM, Steven Schoch < schoch+freeswitch.org@xwin32.com> wrote:
This must be a FAQ, but I can't find it.
In the default dialplan, how can I tell if the call was from an internal phone, or from an external call that was transferred?
One page said there was a variable ${internal_call}, but I can't find that anywhere in the source. Should I just look to see if a directory variable, like account_code or user_context is set?
-- Steve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com 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
participants (4)
-
Michael Collins
-
S. Scott
-
Steven Ayre
-
Steven Schoch