[Freeswitch-dev] Cannot update a Channel Variable inside the api_hangup_hook lua script
Brian West
brian at freeswitch.com
Mon Sep 26 13:56:14 UTC 2022
Are you doing billing?
On Mon, Sep 26, 2022 at 8:48 AM varun pratapsingh <varunps2003 at gmail.com>
wrote:
> Hi Freeswitch Experts,
>
> I am using session_in_hangup_hook = true and api_hangup_hook to call my
> lua script where I want to change the value of my channel variable through
> session:setVariable("custom_channel_variable", "new_value"). But I can see
> that I cannot do that. It is not getting changed. I am able to access the
> channel variables through session:getVariable("custom_channel_variable")
> but I cannot set them after the call is hung up.
>
> How can I do that? If I cannot do that then what is the reason? I do not
> see any reason yet in the Freeswitch documentation.
>
> Can anyone enlighten me over this?
>
> Thanks and Regards
> Varun Singh
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales at freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian at freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email]
<https://www.facebook.com/freeswitch> [image:
https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20220926/72f71cf6/attachment.html>
More information about the FreeSWITCH-dev
mailing list