Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Some channel variables not written to cdr-csv?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
larclap at yahoo.com
Guest





PostPosted: Thu Jun 18, 2009 2:56 pm    Post subject: [Freeswitch-users] Some channel variables not written to cdr Reply with quote

I have defined the following template in autoload_config/cdr_csv.conf.xml:

<template name="sql">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}",
"${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}",
"${channel_name}","${bridge_channel}","${direction}"</template>


The resultant Master.csv in logs/1000.csv:

"+19495551212","+19495551212","1000","default","2009-06-18 09:59:59","2009-06-18 10:00:06","2009-06-18 10:01:16","77","70","NORMAL_CLEARING","7551138e-5c29-11de-80e6-1b59605a543b","75574754-5c29-11de-80e6-1b59605a543b","","PCMU","PCMU","sofia/external/+19495551212@66.53.188.187","sofia/internal/sip:1001@192.168.10.101",""

Both ${direction} and ${accountcode} do not have any data in the cdr file. Am I using the wrong variable names? I do see Caller-Direction with a valid value ([inbound]) in freeswitch.log, but nothing like accountcode. The wiki at http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx says that both these variables exist.

Thanks for any help, Lars
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Jun 18, 2009 6:39 pm    Post subject: [Freeswitch-users] Some channel variables not written to cdr Reply with quote

Do you have any way to ensure that those variables are populated? Can you manually set those in the dialplan? Also, are you doing a leg only or b leg only or both?
-MC

On Thu, Jun 18, 2009 at 2:54 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
Quote:

I have defined the following template in autoload_config/cdr_csv.conf.xml:
 
<template name="sql">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}",
"${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}",
"${channel_name}","${bridge_channel}","${direction}"</template>
 
 
The resultant Master.csv in logs/1000.csv:
 
"+19495551212","+19495551212","1000","default","2009-06-18 09:59:59","2009-06-18 10:00:06","2009-06-18 10:01:16","77","70","NORMAL_CLEARING","7551138e-5c29-11de-80e6-1b59605a543b","75574754-5c29-11de-80e6-1b59605a543b","","PCMU","PCMU","sofia/external/+19495551212@66.53.188.187 (19495551212@66.53.188.187)","sofia/internal/sip:1001@192.168.10.101 ([email]sip%3A1001@192.168.10.101[/email])",""
 
Both ${direction} and ${accountcode} do not have any data in the cdr file. Am I using the wrong variable names? I do see Caller-Direction with a valid value ([inbound]) in freeswitch.log, but nothing like accountcode. The wiki at http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx says that both these variables exist.
 
Thanks for any help, Lars


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
dujinfang at gmail.com
Guest





PostPosted: Thu Jun 18, 2009 8:43 pm    Post subject: [Freeswitch-users] Some channel variables not written to cdr Reply with quote

try to run verbose_event before answer or bridge might help.
On Jun 19, 2009, at 3:54 AM, Lars Zeb wrote:
Quote:
I have defined the following template in autoload_config/cdr_csv.conf.xml:

<templatename="sql">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}",
"${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}",
"${channel_name}","${bridge_channel}","${direction}"</template>


The resultant Master.csv in logs/1000.csv:

"+19495551212","+19495551212","1000","default","2009-06-18 09:59:59","2009-06-18 10:00:06","2009-06-18 10:01:16","77","70","NORMAL_CLEARING","7551138e-5c29-11de-80e6-1b59605a543b","75574754-5c29-11de-80e6-1b59605a543b","","PCMU","PCMU","sofia/external/+19495551212@66.53.188.187 ([email]sofia/external/+19495551212@66.53.188.187[/email])","sofia/internal/[url=sip:1001@192.168.10.101]sip:1001@192.168.10.101[/url]",""

Both ${direction} and ${accountcode} do not have any data in the cdr file. Am I using the wrong variable names? I do see Caller-Direction with a valid value ([inbound]) in freeswitch.log, but nothing like accountcode. The wiki at http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx says that both these variables exist.

Thanks for any help, Lars

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services