<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I use XML CDR and writing business logic on my php server side that consumes the XML CDR post.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The nice thing about the XML CDR is that it is very verbose<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Boris Kovalenko<br><b>Sent:</b> Thursday, May 19, 2011 12:24 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] CDR event<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So there is not solution to fire additional custom CDR event? Ok, I'll look at XML CDR.<br><br><br><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>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.<br><br>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).<br><br>-Steve<br><br><o:p></o:p></p><div><p class=MsoNormal>On 19 May 2011 08:54, Boris Kovalenko <<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal>Hello!<br><br> 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<br>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:<br>First CDR record - PBX -> user number<br>Second CDR record - user number -> redirected number <o:p></o:p></p><div><div><p class=MsoNormal><br> <br><br><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>I don't understand why you would need this.<br><br>What would the difference between the variables be?<br><br>-Steve<br><br><br><o:p></o:p></p><div><p class=MsoNormal>On 19 May 2011 04:12, Boris Kovalenko <<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>> wrote:<br><br><o:p></o:p></p><p class=MsoNormal>Hello!<br><br> I know :) But with one call I get only one CDR record for A leg and<br>one record for B leg. I need to get 2 records for A leg with two<br>different sets of variables. Is this possible?<o:p></o:p></p><div><div><p class=MsoNormal><br>> There's no 'standard' CDR. The XML CDR will contain everything,<br>> including all variables. If you mean the default mod_cdr_csv, you can<br>> customise which variables are saved in its configuration.<br>><br>> -Steve<br>><br>><br>><br>> On 18 May 2011 09:34, Boris Kovalenko<<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>> wrote:<br>>> Hello!<br>>><br>>> I don't know what is asterisk fork_cdr :) I want to bridge two calls and<br>>> get 2 cdr records for A leg: one the standard cdr, and another with<br>>> variables I need.<br>>><br>>>> I suppose he's asking for asterisk analog of fork_cdr<br>>>><br>>>> 2011/5/17 Michael Collins<<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>>:<br>>>>> You want your Lua script to *send* an event? It most certainly can fire<br>>>>> events:<br>>>>> <a href="http://wiki.freeswitch.org/wiki/Lua#Sending_an_Event" target="_blank">http://wiki.freeswitch.org/wiki/Lua#Sending_an_Event</a><br>>>>> I suppose the question is: what do you want to have happen when you fire an<br>>>>> event? What will receive this event?<br>>>>> -MC<br>>>>><br>>>>> On Sat, May 14, 2011 at 12:59 AM, Boris Kovalenko<<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>> wrote:<br>>>>>> Hello!<br>>>>>><br>>>>>> May I fire custom cdr event for a LUA script? I've read<br>>>>>> <a href="http://wiki.freeswitch.org/wiki/Event_list" target="_blank">http://wiki.freeswitch.org/wiki/Event_list</a> but haven't found cdr events.<br>>>>>> Would You please point me to proper documentation or give an example?<br>>>>>><br>>>>>> --<br>>>>>> Regards,<br>>>>>> Boris<br>>>>>><br>>>>>><br>>>>>><br>>>>>> _______________________________________________<br>>>>>> FreeSWITCH-users mailing list<br>>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>>>> _______________________________________________<br>>>>> FreeSWITCH-users mailing list<br>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>>>><br>>>>><br>>>> _______________________________________________<br>>>> FreeSWITCH-users mailing list<br>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>><br>>> --<br>>> С уважением,<br>>> Борис Коваленко<br>>> ЗАО "Тагнет"<br>>> тел. +7 (3435) 230001<br>>> факс +7 (3435) 230005<br>>><br>>><br>>> _______________________________________________<br>>> FreeSWITCH-users mailing list<br>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>><br>> _______________________________________________<br>> FreeSWITCH-users mailing list<br>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br><br>--<br>С уважением,<br> Борис Коваленко<br> ЗАО "Тагнет"<br> тел. +7 (3435) 230001<br> факс +7 (3435) 230005<br><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>FreeSWITCH-users mailing list<o:p></o:p></pre><pre><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre><pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre><pre>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre><pre><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></pre><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>С уважением,<o:p></o:p></pre><pre> Борис Коваленко<o:p></o:p></pre><pre> ЗАО "Тагнет"<o:p></o:p></pre><pre> тел. +7 (3435) 230001<o:p></o:p></pre><pre> факс +7 (3435) 230005<o:p></o:p></pre></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>FreeSWITCH-users mailing list<o:p></o:p></pre><pre><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></pre><pre><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></pre><pre>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></pre><pre><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></pre><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>С уважением,<o:p></o:p></pre><pre> Борис Коваленко<o:p></o:p></pre><pre> ЗАО "Тагнет"<o:p></o:p></pre><pre> тел. +7 (3435) 230001<o:p></o:p></pre><pre> факс +7 (3435) 230005<o:p></o:p></pre></div></body></html>