Discussion:
[Freeswitch-users] CDR problem
Jens Tautenhahn
2015-05-12 20:16:06 UTC
Permalink
Hi,

I have a very initial FusionPBX/FreeSwitch 1.4.18 setup. I have added
two extensions and multiple SIP trunks. Firewall config was a little bit
tricky because FreeSwitch is NATed. But now everything works great.

Now the problem: I got only CDRs for the first extension. Either for
internal or external calls. Outgoing calls from the second extension are
not logged.

How can I find the cause?


Greetings

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Ali Jibran
2015-05-13 06:04:44 UTC
Permalink
Make a new file test.php and configure xml_cdr.conf to use this file.
Place this as its contents.
file_put_contents("outputfile.txt", file_get_contents("php://input"));

This will dump all the data into outputfile.txt. Try it with both the first
and second extensions. And then compare the logs to see what difference if
there. Check for urlencoding and tags.

If the logs are the same then In the fusionPBX folder search for the file
v_xml_cdr_import.
This is the file that parses the POSTed XML from freeswitch and dumps it
into the database. Try logging at different places to see why the second
extension is failing to dump data.
Post by Jens Tautenhahn
Hi,
I have a very initial FusionPBX/FreeSwitch 1.4.18 setup. I have added
two extensions and multiple SIP trunks. Firewall config was a little bit
tricky because FreeSwitch is NATed. But now everything works great.
Now the problem: I got only CDRs for the first extension. Either for
internal or external calls. Outgoing calls from the second extension are
not logged.
How can I find the cause?
Greetings
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Jens Tautenhahn
2015-05-13 12:33:20 UTC
Permalink
Thanks for your help! I have found the error.

In "v_xml_cdr_import.php" the variable "sip_P-Preferred-Identity" would
not be masked. The user can pass there anything. Without masking this
leads to not correct XML.

Where can I submit a bug report or patch?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Ali Jibran
2015-05-17 08:06:32 UTC
Permalink
You're welcome :)
Try fusions site maybe. I haven't really submitted a bug so I can't help
you there.

Happy switching!
Post by Jens Tautenhahn
Thanks for your help! I have found the error.
In "v_xml_cdr_import.php" the variable "sip_P-Preferred-Identity" would
not be masked. The user can pass there anything. Without masking this
leads to not correct XML.
Where can I submit a bug report or patch?
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...