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
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. On Wednesday, May 13, 2015, Jens Tautenhahn <shogun@tausys.de> wrote:
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: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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?
You're welcome :) Try fusions site maybe. I haven't really submitted a bug so I can't help you there. Happy switching! On Wednesday, May 13, 2015, Jens Tautenhahn <shogun@tausys.de> wrote:
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: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Ali Jibran
-
Jens Tautenhahn