[Freeswitch-users] CDR event

Robert Huddleston rhuddleston at gmail.com
Thu May 19 20:34:13 MSD 2011


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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110519/741e47e1/attachment.html 


More information about the FreeSWITCH-users mailing list