How do I create a Call Forward Busy/No Answer feature code

Status
Not open for further replies.

ricktendo

Member
Jun 12, 2021
40
5
8
Hello,

Does anybody know if these already exist or how to manually create a Call Forward Busy and Call Forward No Answer (On/Off) feature codes?

Would be nice to have them for use with my grandstream config and it would also be nice if these would show up in FusionPBX webUI when configured

Thanks
 

Attachments

  • fc.png
    fc.png
    94.6 KB · Views: 10
  • fce.png
    fce.png
    50 KB · Views: 10

ricktendo

Member
Jun 12, 2021
40
5
8
I tried copying the call-forward dial plan and editing it slightly, but I am missing something or way off course

Code:
<extension name="call-forward-busy" continue="false" uuid="f78d47a8-7aa4-4393-a58d-2c6ef2cb0d4f">
    <condition field="destination_number" expression="^\*52(\d*)$" break="on-true">
        <action application="set" data="request_id=false"/>
        <action application="set" data="enabled=true"/>
        <action application="lua" data="call_forward.lua $1"/>
    </condition>
    <condition field="destination_number" expression="^\*53$" break="on-true">
        <action application="set" data="request_id=false"/>
        <action application="set" data="enabled=false"/>
        <action application="lua" data="call_forward.lua"/>
    </condition>
    <condition field="destination_number" expression="^forward\+(\Q${caller_id_number}\E)(?:\/(\d+))?$" break="on-true">
        <action application="set" data="enabled=toggle"/>
        <action application="set" data="forward_busy_destination=$2"/>
        <action application="lua" data="call_forward.lua"/>
    </condition>
</extension>
 

Attachments

  • cfwb.png
    cfwb.png
    163.8 KB · Views: 9
Status
Not open for further replies.