[Freeswitch-docs] call forwarding
Nicholas Schoonover
nick at nschoonover.com
Tue Apr 7 07:16:04 MSD 2015
I added some documentation around the logic that forwards calls to the
'is_forward' extension. I am new to Freeswitch and was stuck on how to
set up call forwarding for a bit. I thought some more instruction around
this area would help people who are new to the concepts in Freeswitch.
Is this change logical?
In my personal set up I put this application,
<action application="set"
data="call_forwarding_number=${hash(select/${domain_name}-call_forward/${destination_number})}"/>
into the 'check_call_forwarding' extension and got rid of the
'call_forwarding_number' extension. This made sense to me because it
sets 'call_forwarding_number' in the extension before 'is_forward'
rather than at the end of the dialplan. Am I misunderstanding something?
Would this be a more logical way to format the documentation?
I used this as my check call forwarding extension and did away with the
'call_forwarding_number' extension at the bottom.
<extension name="check_call_forwarding" continue="true">
<condition field="destination_number" expression="^(\d+)$">
<action application="set"
data="call_forwarding_number=${hash(select/${domain_name}-call_forward/${destination_number})}"/>
<action application="execute_extension" data="is_forward XML features"/>
<action application="bridge" data="sofia/internal/$1@${domain_name}"/>
</condition>
</extension>
Sorry if I am being unclear or am misunderstanding something.
Thanks,
Nicholas Schoonover
Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs
mailing list