I would like to send a notification when there is a missed call (ORIGINATOR_CANCEL).
I adapted this lua script: https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=3965148#content/view/7144600
It works from fs_cli, but not from dialpan.
In order to make the scipt to work, I put "hangup_after_bridge=false" and "continue_on_fail=true" in the inbound route, but seems the dialplan does not continue after bridging/transfering the call.
This is the dialplan:
Can someone help me?
I adapted this lua script: https://freeswitch.org/confluence/plugins/servlet/mobile?contentId=3965148#content/view/7144600
It works from fs_cli, but not from dialpan.
In order to make the scipt to work, I put "hangup_after_bridge=false" and "continue_on_fail=true" in the inbound route, but seems the dialplan does not continue after bridging/transfering the call.
This is the dialplan:
<extension name="123456789" continue="true" uuid="edc20021-9f49-4597-a0c3-dee23fd68ee7">
<condition field="destination_number" expression="^(123456789)$">
<action application="export" data="call_direction=inbound" inline="true"/>
<action application="set" data="domain_uuid=69b7c8b9-9131-44e3-9fbb-590925725125" inline="true"/>
<action application="set" data="domain_name=pbx.local" inline="true"/>
<action application="set" data="hangup_after_bridge=false" inline="true"/>
<action application="set" data="continue_on_fail=true" inline="true"/>
<action application="bridge" data="sofia/internal/20%${sip_profile}"/>
<action application="lua" data="missedcall_notification.lua ${originate_disposition} '${caller_id_number}' '${destination_number}'"/>
</condition>
</extension>
Can someone help me?