Send FreeSWITCH-dev mailing list submissions to
freeswitch-dev@lists.freeswitch.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
or, via email, send a message with subject or body 'help' to
freeswitch-dev-request@lists.freeswitch.org
You can reach the person managing the list at
freeswitch-dev-owner@lists.freeswitch.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-dev digest..."
Today's Topics:
1. Cannot update a Channel Variable inside the api_hangup_hook
lua script (varun pratapsingh)
2. Re: Cannot update a Channel Variable inside the
api_hangup_hook lua script (Brian West)
---------- Forwarded message ----------
From: varun pratapsingh <varunps2003@gmail.com>
To: freeswitch-dev@lists.freeswitch.org
Cc:
Bcc:
Date: Mon, 26 Sep 2022 11:36:56 +0530
Subject: [Freeswitch-dev] Cannot update a Channel Variable inside the api_hangup_hook lua scriptHi 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 RegardsVarun Singh
---------- Forwarded message ----------
From: Brian West <brian@freeswitch.com>
To: freeswitch-dev@lists.freeswitch.org
Cc:
Bcc:
Date: Mon, 26 Sep 2022 08:56:14 -0500
Subject: Re: [Freeswitch-dev] Cannot update a Channel Variable inside the api_hangup_hook lua scriptAre you doing billing?On Mon, Sep 26, 2022 at 8:48 AM varun pratapsingh <varunps2003@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 RegardsVarun 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@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@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@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
https://freeswitch.com