Hello! Yes, you're right. This is my poor English. I will try again. I have a user with PAP2T which set uncoditional call forward. To be more concretic, calling number is 1234, called number is 1111 and forwarded number is 2222, manual-redirect=true. I use mod_cdr_cvs for CDR logging and log only A-legs for billing purposes. So, when there is a call 1234 -> 1111 it is redirected to my redirect context and there I do a bridge 1234 -> 2222. After that I will have one A-leg CDR record where caller_id_number is 1234 and destination_number is 2222. IFAIK I may use mod_loopback, but I still will have only one A-leg CDR and two (???) B-leg CDRs. With my current billing logic this is not what I need. I need two A-leg CDRs, first with 1234 -> 1111 and second with 1111 -> 2222. Hope I was concretic and more clear now :)
i meant mod_loopback, not mod_local
2011/5/20 Anton VG<anton.vazir@gmail.com>:
Actually, for proper call-forward accounting you need second CDR for SECOND A-Leg (emulated) I have an example, how I do that in Asterisk - there is a Dial(LOCAL/XXX) option, so Dial acts as second Dial, firing one more CDR. Like you dial out originating from user, which have been dialed in (B-Leg than one more A-Leg) I will also need to do the give in FS - will see what mod_local gives.
Borya, i trust you should describe your task more clear, maybe with examples, as I see, from the above there was no understanding of what exactly you try to achieve, and why you need second CDR, that why you don't get a specific answer...
2011/5/20 Boris Kovalenko<boris@tagnet.ru>:
Hello!
David, as I wrote I collect only A-leg records. This is the way my bill logic works. And I asked how to write custom A-leg CDR record while it is not available in normal way. And now I understood this is impossible so I need to change my bill logic :)
Boris, I think we still wonder what additional custom CDR you need. You already know that one redirected call will fire 2 CDRs. One for the incoming call you need for inter-operator billing, and the one for the outgoing redirected call you need to bill the customer. 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 19/05/2011 à 18:24, Boris Kovalenko a écrit :
So there is not solution to fire additional custom CDR event? Ok, I'll look at XML CDR.
The XML CDR contains a history of the call, which might be more suited to you. One CDR but it'll contain everything you need. You can then choose to create 2 DB records if that's what you wish to do.
Otherwise write all relevant variables to a CDR (if you're overwriting one in the dialplan set it to another variable first otherwise it won't be available any more when mod_cdr_csv writes it).
-Steve
On 19 May 2011 08:54, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
It is the way I try to do manual redirect. May be I do it wrong, so may be somebody tell me another way. So... I use only A-leg accounting records. One of my users set the redirect from its phone to cellular phone (PAP2T device). So, when call is arrived from PBX and redirected by user, in A-leg CDR record I see only _original_ information: pbx_caller_id_number and local_destination_number. And this is wrong for billing. With help of CDR I want to emulate two calls scenario: First CDR record - PBX -> user number Second CDR record - user number -> redirected number
I don't understand why you would need this.
What would the difference between the variables be?
-Steve
On 19 May 2011 04:12, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
I know :) But with one call I get only one CDR record for A leg and one record for B leg. I need to get 2 records for A leg with two different sets of variables. Is this possible?
There's no 'standard' CDR. The XML CDR will contain everything, including all variables. If you mean the default mod_cdr_csv, you can customise which variables are saved in its configuration.
-Steve
On 18 May 2011 09:34, Boris Kovalenko<boris@tagnet.ru> wrote: > Hello! > > I don't know what is asterisk fork_cdr :) I want to bridge two calls > and > get 2 cdr records for A leg: one the standard cdr, and another with > variables I need. > >> I suppose he's asking for asterisk analog of fork_cdr >> >> 2011/5/17 Michael Collins<msc@freeswitch.org>: >>> You want your Lua script to *send* an event? It most certainly can >>> fire >>> events: >>> http://wiki.freeswitch.org/wiki/Lua#Sending_an_Event >>> I suppose the question is: what do you want to have happen when you >>> fire an >>> event? What will receive this event? >>> -MC >>> >>> On Sat, May 14, 2011 at 12:59 AM, Boris Kovalenko<boris@tagnet.ru> >>> wrote: >>>> Hello! >>>> >>>> May I fire custom cdr event for a LUA script? I've read >>>> http://wiki.freeswitch.org/wiki/Event_list but haven't found cdr >>>> events. >>>> Would You please point me to proper documentation or give an >>>> example? >>>> >>>> -- >>>> Regards, >>>> Boris >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 > -- > С уважением, > Борис Коваленко > ЗАО "Тагнет" > тел. +7 (3435) 230001 > факс +7 (3435) 230005 > > > _______________________________________________ > 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005