[Freeswitch-users] Billsec in dialplan

Michael Jerris mike at jerris.com
Wed Apr 13 00:42:14 MSD 2016


I'm probably going to push towards cdr, but what are you trying to actually do with that info?

> On Apr 12, 2016, at 2:39 PM, Joel Serrano <joel at gogii.net> wrote:
> 
> Hi Michael, 
> 
> I want to call an API basically with the following info:
> 
> sip_from_uri
> destination_number
> billsec
> 
> I found away using "api_hangup_hook=lua script.lua" + "session_in_hangup_hook=true", but, I don't like it... I would prefer using curl from within the dialplan.
> 
> Can you give me your suggestion? I have also asked in IRC and using the CDRs looks like the best way to go, so we will probably follow that, but I would still like to now if it is possible and how.
> 
> Thanks!
> Joel.
> 
> 
> 
> On Tue, Apr 12, 2016 at 12:22 PM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
> Billsec is set in reporting state, after you are out of dial plan.   What are you trying to do based on that, I can suggest a few approaches
> 
> 
> On Monday, April 11, 2016, Joel Serrano <joel at gogii.net <mailto:joel at gogii.net>> wrote:
> Hi, 
> 
> Is it possible to access ${billsec} in the dialplan after the bridge application (having hangup_after_bridge=false)??
> 
> I want to log the billsec but currently it is always empty.
> 
> I have a workaround in a test server using api_hangup_hook to call a lua script with session_in_hangup_hook=true, and inside the lua script I can access the billsec variable and thus write it to the logs.
> 
> Is there no way to do this within the XML dialplan?
> 
> Thanks!
> 
> Best regards, 
> Joel.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160412/b50c51e5/attachment.html 


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