[Freeswitch-users] Running a script on a completed transfer

David Villasmil david.villasmil.work at gmail.com
Thu Oct 27 14:15:19 MSD 2016


I think ESL is what you need. Listen for the specific event and fire what
you need when you receive it.
On Thu, Oct 27, 2016 at 1:37 AM Brian West <brian at freeswitch.org> wrote:

> Are you doing this for billing purposes?
>
> On Wed, Oct 26, 2016 at 6:22 PM, Walter Smith <walter at carezone.com> wrote:
>
> I need to record calls if/when they touch a certain set of extensions. I
> have most of the logic working but am baffled by one thing: how do I cause
> an application (it’s a lua script) to run when a channel is bridged as the
> result of a transfer?
>
> My usual bag of tricks isn't working because the bridge happens
> "magically" in sofia in response to the REFER. For example,
> execute_on_answer doesn’t help because the answer happens during the
> attended transfer -- I need to run AFTER the transfer (that is, when the
> original A leg is bridged to the attended transfer’s B leg).
>
> Example scenario:
>
> 1. External call comes in (channel A = PSTN to switch, channel B = switch
> to phone with extension 1000)
>
> 2. Ext 1000 does an attended transfer to ext 1001 (channel C = 1000 to
> switch, channel D = switch to 1001)
>
> 3. Transfer completes (sofia bridges channel A to channel D)
>
> I want my script to run on either channel A or D after 3 happens.
>
> What’s the best way to do this?
>
> Thanks,
> Walter
>
>
> _________________________________________________________________________
> 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
>
>
>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com (50% Discount using code FreeSwitch50)
> http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50)
> https://www.gofundme.com/freeswitch_ubuntu
>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
> _________________________________________________________________________
> 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/20161027/104933a6/attachment.html 


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