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@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*