Hi David I looked at what you suggested. Before your suggestion, in /usr/local/freeswitch/conf/autoload_configs/cdr_csv.conf file, I had the following lines <!-- Only log in Master.csv --> <!--<param name="master-file-only" value="true"/>--> After your suggestion, I changed it to <!-- Only log in Master.csv --> <!--<param name="master-file-only" value="true"/>--> and then did a reloadxml. Now all CDRs were created in /usr/local/freeswitch/log/cdr-csv/Master.csv and CDRs for inbound calls from unregistered sources (i.e. external gateways) were also created in this file. Thanks for your help. Code, I think you have a major issue or configuration error with your FS setup. FS, as any B2BUA, generates a CDR for any inbound leg, either from a registered user or from a non-registered gateway. It doesn't care where it comes from, it just does it. I can barely imagine a softswitch that would not write the CDR matching a call that was routed through it. The CDR for the outbound leg is optional. Can you confirm you are looking in Master.csv ? David Ponzone Direction Technique email: david.ponzone at 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 21/05/2010 à 05:25, Code Ghar a écrit :
Using mod_cdr_csv, it is easy to create CDRs for registered users. However, how can we get CDRs for external gateways? For example, FreeSWITCH is configured to receive calls from one gateway and send them out through another. In this scenario, when neither inbound nor outbound gateway registers itself to FreeSWITCH, how can we generate and store CDRs for inbound gateway?
Similarly, let's say a SIP provider sends a call meant for a registered user. For example, if a cell phone calls 6175550000, it is routed through the telephone network to the SIP provider. This provider routes the call to FreeSWITCH, which looks up in its dial plan that this number should be routed to extension (or registered user) 1000. There are no CDRs generated for either the SIP provider's gateway or the registered user in this case.
In both these scenarios, if a call is inbound to FreeSWITCH but has not been generated by a registered user, mod_cdr_csv does not create CDRs. I have even tried to set the following parameter in cdr_csv.conf.xml but it didn't help.
<param name="legs" value="ab"/>
My question is this: can mod_cdr_csv generate CDRs for inbound calls from sources other than registered users? If it can't, how can this be achieved? _______________________________________________ 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
Well, according to your mail, you did not change anything :) I guess it is a typo. Can you confirm what you changed ? 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 22/05/2010 à 03:17, Code Ghar a écrit :
Hi David
I looked at what you suggested. Before your suggestion, in /usr/ local/freeswitch/conf/autoload_configs/cdr_csv.conf file, I had the following lines
<!-- Only log in Master.csv --> <!--<param name="master-file-only" value="true"/>-->
After your suggestion, I changed it to
<!-- Only log in Master.csv --> <!--<param name="master-file-only" value="true"/>-->
and then did a reloadxml. Now all CDRs were created in /usr/local/ freeswitch/log/cdr-csv/Master.csv and CDRs for inbound calls from unregistered sources (i.e. external gateways) were also created in this file. Thanks for your help.
Code,
I think you have a major issue or configuration error with your FS setup. FS, as any B2BUA, generates a CDR for any inbound leg, either from a registered user or from a non-registered gateway. It doesn't care where it comes from, it just does it. I can barely imagine a softswitch that would not write the CDR matching a call that was routed through it.
The CDR for the outbound leg is optional.
Can you confirm you are looking in Master.csv ?
David Ponzone Direction Technique email: david.ponzone at 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 21/05/2010 à 05:25, Code Ghar a écrit :
Using mod_cdr_csv, it is easy to create CDRs for registered users. However, how can we get CDRs for external gateways? For example, FreeSWITCH is configured to receive calls from one gateway and send them out through another. In this scenario, when neither inbound nor outbound gateway registers itself to FreeSWITCH, how can we generate and store CDRs for inbound gateway?
Similarly, let's say a SIP provider sends a call meant for a registered user. For example, if a cell phone calls 6175550000, it is routed through the telephone network to the SIP provider. This provider routes the call to FreeSWITCH, which looks up in its dial plan that this number should be routed to extension (or registered user) 1000. There are no CDRs generated for either the SIP provider's gateway or the registered user in this case.
In both these scenarios, if a call is inbound to FreeSWITCH but has not been generated by a registered user, mod_cdr_csv does not create CDRs. I have even tried to set the following parameter in cdr_csv.conf.xml but it didn't help.
<param name="legs" value="ab"/>
My question is this: can mod_cdr_csv generate CDRs for inbound calls from sources other than registered users? If it can't, how can this be achieved? _______________________________________________ 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
participants (2)
-
Code Ghar
-
David Ponzone