Is it possible to call a lua script after a call to for example write billing records? What’s the best way of doing this?
Bill, Why would you want to write billing records from a LUA script triggered after the call ? I think Tony recently added a variable allowing to run a script at hangup time, but I can't remember its name. You should perhaps reconsider if that is the best way to do your billing. CDR are supposed to be used for billing, and they are very flexible in FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 10/11/2010 à 14:32, Bill Kunyiha a écrit :
Is it possible to call a lua script after a call to for example write billing records? What’s the best way of doing this?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This one I think: http://wiki.freeswitch.org/wiki/Channel_Variables#api_hangup_hook But I agree - it's probably better to use one of the CDR modules for billing. -Steve 2010/11/10 David Ponzone <david.ponzone@ipeva.fr>:
Bill, Why would you want to write billing records from a LUA script triggered after the call ? I think Tony recently added a variable allowing to run a script at hangup time, but I can't remember its name. You should perhaps reconsider if that is the best way to do your billing. CDR are supposed to be used for billing, and they are very flexible in FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 10/11/2010 à 14:32, Bill Kunyiha a écrit :
Is it possible to call a lua script after a call to for example write billing records? What’s the best way of doing this?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
With the XML CDR being the most powerful, having info even on the call flow. Regards HASSAN On 2010-11-10, Steven Ayre <steveayre@gmail.com> wrote:
This one I think: http://wiki.freeswitch.org/wiki/Channel_Variables#api_hangup_hook
But I agree - it's probably better to use one of the CDR modules for billing.
-Steve
2010/11/10 David Ponzone <david.ponzone@ipeva.fr>:
Bill, Why would you want to write billing records from a LUA script triggered after the call ? I think Tony recently added a variable allowing to run a script at hangup time, but I can't remember its name. You should perhaps reconsider if that is the best way to do your billing. CDR are supposed to be used for billing, and they are very flexible in FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 10/11/2010 à 14:32, Bill Kunyiha a écrit :
Is it possible to call a lua script after a call to for example write billing records? What’s the best way of doing this?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from my mobile device
Agree, better off doing it in the CDR. Bill On Wed, Nov 10, 2010 at 10:30 AM, Nyamul Hassan <nyamul@gmail.com> wrote:
With the XML CDR being the most powerful, having info even on the call flow.
Regards HASSAN
On 2010-11-10, Steven Ayre <steveayre@gmail.com> wrote:
This one I think: http://wiki.freeswitch.org/wiki/Channel_Variables#api_hangup_hook
But I agree - it's probably better to use one of the CDR modules for billing.
-Steve
2010/11/10 David Ponzone <david.ponzone@ipeva.fr>:
Bill, Why would you want to write billing records from a LUA script triggered after the call ? I think Tony recently added a variable allowing to run a script at hangup time, but I can't remember its name. You should perhaps reconsider if that is the best way to do your billing. CDR are supposed to be used for billing, and they are very flexible in FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 10/11/2010 à 14:32, Bill Kunyiha a écrit :
Is it possible to call a lua script after a call to for example write billing records? What’s the best way of doing this?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from my mobile device
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, November 10, 2010 10:08 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] After Call Work Bill, Why would you want to write billing records from a LUA script triggered after the call ? I think Tony recently added a variable allowing to run a script at hangup time, but I can't remember its name. You should perhaps reconsider if that is the best way to do your billing. CDR are supposed to be used for billing, and they are very flexible in FreeSWITCH. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <BLOCKED::http://www.ipeva.fr/> - www.ipeva-studio.com <BLOCKED::http://www.ipeva-studio.com/> Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 10/11/2010 à 14:32, Bill Kunyiha a écrit : Is it possible to call a lua script after a call to for example write billing records? Whats the best way of doing this? _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Bill Kunyiha
-
David Ponzone
-
Nyamul Hassan
-
Peder
-
Steven Ayre