[Freeswitch-users] Conditional call forward

Nandy Dagondon nandy1925 at gmail.com
Thu Jul 6 04:47:19 UTC 2017


The XML dialplan logic would be like this:

<extension name="group-allowed-cf"/>
<condition field="group_field" expression="group_name"/>
<condition field="destination_number" expression="extn_number">
   <actions where call is forwarded when bridge fail>
</condition>

<extension name="all-other-callers"/>
<condition field="destination_number" expression="extn_number">
   <actions where call is hangup when bridge fail>
</condition>

Hope this is what you want. :-)

Nandy Dagondon <https://camiguintelekom.wordpress.com/about-the-author/>



On Thu, May 18, 2017 at 8:46 AM, Ashwin Rath <ashwinrath at gmail.com> wrote:

> Actually this related to fusion PBX. CF is configured on FS as a custom
> dial-string in the directory . The idea is to not forward if a call comes
> to a ring group but forward if it comes directly to the number.
>
> is there some way the dialplan can be modified to change the dial-string ?
>
> On 16 May 2017 at 22:20, Srigo Kana <ksrigo at gmail.com> wrote:
>
>> Hi,
>>
>> Is the callforward configured on the phone?
>> If you get 302 redirect from a phone, you can jst catch it in a dialplan
>> and do whatever you want.
>>
>> Srigo
>>
>> Sent from my iPhone
>>
>> > On 13 May 2017, at 19:14, Ashwin Rath <ashwinrath at gmail.com> wrote:
>> >
>> > Hi
>> >
>> > I have an extension which has call forward setup BUT i would like the
>> call forward to work only when dialed from a certain number and not from
>> another numbers. Can this be achieved ?
>> >
>> > --
>> > Ashwin Kumar Rath
>> > ____________________________________________________________
>> _____________
>> > Professional FreeSWITCH Consulting Services:
>> > consulting at freeswitch.org
>> > http://www.freeswitchsolutions.com
>> >
>> > Official FreeSWITCH Sites
>> > http://www.freeswitch.org
>> > http://confluence.freeswitch.org
>> > http://www.cluecon.com
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/
>> freeswitch-users
>> > http://www.freeswitch.org
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Ashwin Kumar Rath
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170706/3d08017b/attachment.html>


More information about the FreeSWITCH-users mailing list