[Freeswitch-users] Wait for ANSWER/HANGUP events in Mod lua

Karsten Horsmann khorsmann at gmail.com
Sun Aug 18 20:18:11 MSD 2013


Hi Sam,

as Ken wrote. That maybe not a good idea to fetch billing informations with
lua.
And i am not sure, if you call the lua-script within the dialplan - if it
lives anymore at hangup to do something. May some of the freeswitch-jedis
knows that.

Cheers.

2013/8/18 Sami Montour <smontour at verizon.net>

> Hi Karsten,****
>
> Thank you for the reply. You are correct. I am trying to retrieve billing
> information from a basic call. I am calling lua script in the dialplan.
> When a call comes in, FS hands it over to lua script for processing.****
>
> ** **
>
> <include>****
>
> <extension>****
>
>   <condition field="destination_number" expression="^(15[0-9][0-9])$">****
>
>    <action application="lua" data="fs_billing.lua"/>****
>
>   </condition>****
>
> </extension>****
>
> </include>****
>
> ** **
>
> I did the same thing with ESL where I listened for CHANNEL_ANSWER and
> CHANNEL_HANGUP events then fetched answer and hangup times and that worked
> just fine. I would like to do the same thing with lua. ****
>
> ** **
>
> Thanks****
>
> ** **
>
>
>

-- 
Mit freundlichen Grüßen
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130818/95182498/attachment.html 


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