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
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
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
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
Boris, Can't you add the variables you need to the standard CDRs ? Can't you use the XML CDRs, which already contain all available variables ? 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 18/05/2011 à 10:34, Boris Kovalenko a écrit :
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
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
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
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
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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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
Boris, so basically, you just need the second CDR to bill the customer, don't you ? I suppose you don't bill for incoming calls, so the redirected call is the only one you care about, or am I missing something ? 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 à 09:54, Boris Kovalenko a écrit :
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
Yes, you are right. No, I don't bill for incoming calls for clients. My billing solution is based on A-leg CDR records, and the record about original source of call is needed for inter-operator billing.
Boris,
so basically, you just need the second CDR to bill the customer, don't you ? I suppose you don't bill for incoming calls, so the redirected call is the only one you care about, or am I missing something ?
David Ponzone Direction Technique email: david.ponzone@ipeva.fr <mailto:david.ponzone@ipeva.fr> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service ClientIPeva 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 19/05/2011 à 09:54, Boris Kovalenko a écrit :
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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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://www.freeswitch.org/> >>>> _______________________________________________ >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >>>> >>>> >>> _______________________________________________ >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >> >> -- >> С уважением, >> Борис Коваленко >> ЗАО "Тагнет" >> тел. +7 (3435) 230001 >> факс +7 (3435) 230005 >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >> > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/>
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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://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 <mailto: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
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 listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +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
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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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
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
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 <mailto:david.ponzone@ipeva.fr> tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service ClientIPeva 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 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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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 <mailto: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://www.freeswitch.org/> >>>> _______________________________________________ >>>> FreeSWITCH-users mailing list >>>> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >>>> >>>> >>> _______________________________________________ >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >> >> -- >> С уважением, >> Борис Коваленко >> ЗАО "Тагнет" >> тел. +7 (3435) 230001 >> факс +7 (3435) 230005 >> >> >> _______________________________________________ >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/> >> > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/>
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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://www.freeswitch.org/>
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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://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 <mailto: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
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
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
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
I use XML CDR and writing business logic on my php server side that consumes the XML CDR post. The nice thing about the XML CDR is that it is very verbose From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Boris Kovalenko Sent: Thursday, May 19, 2011 12:24 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] CDR event 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
participants (6)
-
Anton VG
-
Boris Kovalenko
-
David Ponzone
-
Michael Collins
-
Robert Huddleston
-
Steven Ayre