[Freeswitch-users] Notify after forwarded Call is finished

Michael Collins msc at freeswitch.org
Tue Feb 10 18:53:30 MSK 2015


On Tue, Feb 10, 2015 at 2:46 AM, Raphael Lechner <raphael.lechner at gmail.com>
wrote:

> Hi,
>
> I’m trying to find out a special solution for our customer. He needs to
> understand when the forwarded call is finished.
>
> The workflow is the following:
> - User A is calling a external number (User B) and after the Caller has
> answered the call,he puts the Call on Hold
> - User A is calling the second external number (User C)  (with the BLF
> keys) and says that on the other line is person X and do an Attended
> Transfer
>
> And the problem is that the User A want to know when the call is finished
> for calling the next person.
>
> Is there a way to understand when the call is finished? It it possible to
> use the BLF functions for that?
> I tried to complete that using the dial plan with
> hangup_after_bridge=false and continue_on_fail=true for calling a command
> something after the bridge but still without luck and the BLF
> key for User C is also always Green.
>
> Plan B would be to parse the channels table and do send a message to the
> yealink phones after the call has left the channels table…
>
> We are using FS 1.4.14, Yealink Phones and a patton smartnode as ISDN/SIP
> Gateway.
>
> Any hint? Maybe to watch a special Event to understand when the call is
> finished?
>

You could set api_hangup_hook on either of these legs and have the API send
out a NOTIFY (or anything you want, I suppose) at hangup.
https://freeswitch.org/confluence/display/FREESWITCH/Variables#Variables-api_hangup_hook

Please experiment and report back!

-MC


>
> Thank you very much!
>
> Raphael
> _________________________________________________________________________
> 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/20150210/5e939ebf/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list