Why not log the info in a MySQL table prior to do the Dial, than in the h of the same context log the hangup time and you get yourself a bill time. Very simple using the MYSQL function of dialplan or just call a small php/perl or even bash script using the System dialplan command.
I use it all the time and it works great. --- Andre Courchesne - Consultant http://www.net-forces.com MSN: [email protected] Skype: VoipForces L'information contenue dans le présent document est la propriété de Andre Courchesne. Et est divulguée en toute confidentialité. Cette information ne doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le consentement écrit explicite de Andre Courchesne. The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne. On 2010-04-04, at 10:52 AM, Erik Schwartz wrote: > I'm wondering if and how I can create a new channel for an outbound leg of a > call. > > > > The scenario is, our subscribers will call an access number, where they hit > an IVR and have to authenticate themselves. Once they're in, they can then > place a call through our system. This whole routine is fine and is working > now, my problem is when it comes to billing: > > > > I would like to bill the call to the extension that they authenticate > themselves to, but as it stands now, when I Dial(), it shows up in the CDR > as the extension that received the call originally from the inbound channel. > > > > > So I'm wondering if there's a way for me to send the outbound call on a new > channel, or how can I attach that outbound call to the authenticated > extension? > > > > -Erik > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
