I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different. I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them. Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory] -- Frank Church ======================= http://devblog.brahmancreations.com
the defaults in windows are all relative to the running freeswitch base dir, unless you explicitly set them. there may be some issue with trailing vs no trailing path seperator when you configure them. Mike On Apr 29, 2010, at 9:56 PM, Frank Church wrote:
I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different.
I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them.
Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory]
I have received some help about it in http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057453.html. It requires an additional undocumented parameter in mod_xml_cdr.conf, though that may not have been necessary in earlier versions. On 3 May 2010 06:06, Michael Jerris <mike@jerris.com> wrote:
the defaults in windows are all relative to the running freeswitch base dir, unless you explicitly set them. there may be some issue with trailing vs no trailing path seperator when you configure them.
Mike
On Apr 29, 2010, at 9:56 PM, Frank Church wrote:
I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different.
I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them.
Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory]
_______________________________________________ FreeSWITCH-users mailing list 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
-- Frank Church ======================= http://devblog.brahmancreations.com
would you mind making sure this gets documented on the wiki, and, if it is not in the sample configuration, send us a patch for that via http://jira.freeswitch.org ? Mike On May 3, 2010, at 6:43 AM, Frank Church wrote:
I have received some help about it in http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057453.html.
It requires an additional undocumented parameter in mod_xml_cdr.conf, though that may not have been necessary in earlier versions.
On 3 May 2010 06:06, Michael Jerris <mike@jerris.com> wrote: the defaults in windows are all relative to the running freeswitch base dir, unless you explicitly set them. there may be some issue with trailing vs no trailing path seperator when you configure them.
Mike
On Apr 29, 2010, at 9:56 PM, Frank Church wrote:
I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different.
I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them.
Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory]
I think it is a bug because the wiki states that log-http-and-disk Default behaviour is to write either HTTP or Disk on HTTP failure. Setting this to true will write to both HTTP and Disk regardless (handy for realtime + reconciliation later if required) true But it wasn't writing the HTTP connection errors to the disk until I added log-http-and-disk to the configuration. log-http-and-disk is for writing the CDR itself, but logging HTTP errors did not work until it was added http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html On 3 May 2010 21:14, Michael Jerris <mike@jerris.com> wrote:
would you mind making sure this gets documented on the wiki, and, if it is not in the sample configuration, send us a patch for that via http://jira.freeswitch.org ?
Mike
On May 3, 2010, at 6:43 AM, Frank Church wrote:
I have received some help about it in http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057453.html .
It requires an additional undocumented parameter in mod_xml_cdr.conf, though that may not have been necessary in earlier versions.
On 3 May 2010 06:06, Michael Jerris <mike@jerris.com> wrote:
the defaults in windows are all relative to the running freeswitch base dir, unless you explicitly set them. there may be some issue with trailing vs no trailing path seperator when you configure them.
Mike
On Apr 29, 2010, at 9:56 PM, Frank Church wrote:
I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different.
I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them.
Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory]
_______________________________________________ FreeSWITCH-users mailing list 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
-- Frank Church ======================= http://devblog.brahmancreations.com
PS. Brian has updated the config samples, http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html On 3 May 2010 22:03, Frank Church <vfclists@googlemail.com> wrote:
I think it is a bug because the wiki states that log-http-and-disk Default behaviour is to write either HTTP or Disk on HTTP failure. Setting this to true will write to both HTTP and Disk regardless (handy for realtime + reconciliation later if required) true But it wasn't writing the HTTP connection errors to the disk until I added log-http-and-disk to the configuration. log-http-and-disk is for writing the CDR itself, but logging HTTP errors did not work until it was added
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html
On 3 May 2010 21:14, Michael Jerris <mike@jerris.com> wrote:
would you mind making sure this gets documented on the wiki, and, if it is not in the sample configuration, send us a patch for that via http://jira.freeswitch.org ?
Mike
On May 3, 2010, at 6:43 AM, Frank Church wrote:
I have received some help about it in http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057453.html .
It requires an additional undocumented parameter in mod_xml_cdr.conf, though that may not have been necessary in earlier versions.
On 3 May 2010 06:06, Michael Jerris <mike@jerris.com> wrote:
the defaults in windows are all relative to the running freeswitch base dir, unless you explicitly set them. there may be some issue with trailing vs no trailing path seperator when you configure them.
Mike
On Apr 29, 2010, at 9:56 PM, Frank Church wrote:
I have set the err-log-dir and log-dr in xml_cdr.conf.xml but the logs are not working. The system is a windows system and I wonder if the defaults for windows are different.
I have logs/xml_cdr in addition to the log/xml_cdr in the c:\freeswitch directory but Freeswitch can't find them.
Logs snippet ========= 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1811@192.168.1.133) Running State Change CS_REPORTING 2010-04-30 02:41:02.984375 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1811@192.168.1.133) State REPORTING 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:359 Got error [0] posting to web server [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:366 Retry will be with url [http://192.168.1.20:8132/] 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:377 Unable to post to web server, writing to file 2010-04-30 02:41:03.812500 [ERR] mod_xml_cdr.c:399 Error![No such file or directory]
_______________________________________________ FreeSWITCH-users mailing list 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
-- Frank Church
======================= http://devblog.brahmancreations.com
-- Frank Church ======================= http://devblog.brahmancreations.com
so is this actually a bug as well? Mike On May 3, 2010, at 5:05 PM, Frank Church wrote:
PS. Brian has updated the config samples, http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html
On 3 May 2010 22:03, Frank Church <vfclists@googlemail.com> wrote:
I think it is a bug because the wiki states that log-http-and-disk Default behaviour is to write either HTTP or Disk on HTTP failure. Setting this to true will write to both HTTP and Disk regardless (handy for realtime + reconciliation later if required) true
But it wasn't writing the HTTP connection errors to the disk until I added log-http-and-disk to the configuration. log-http-and-disk is for writing the CDR itself, but logging HTTP errors did not work until it was added
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html
On 3 May 2010 21:14, Michael Jerris <mike@jerris.com> wrote: would you mind making sure this gets documented on the wiki, and, if it is not in the sample configuration, send us a patch for that via http://jira.freeswitch.org ?
Mike
I can confirm that if the logging directory is changed from the default, it will not be used unless log-http-and-disk is set. It will still log to the xml_cdr directory if that exists, even though it is not what you have specified. On 4 May 2010 23:12, Michael Jerris <mike@jerris.com> wrote:
so is this actually a bug as well?
Mike
On May 3, 2010, at 5:05 PM, Frank Church wrote:
PS. Brian has updated the config samples, http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html
On 3 May 2010 22:03, Frank Church <vfclists@googlemail.com> wrote:
I think it is a bug because the wiki states that log-http-and-disk Default behaviour is to write either HTTP or Disk on HTTP failure. Setting this to true will write to both HTTP and Disk regardless (handy for realtime + reconciliation later if required) true But it wasn't writing the HTTP connection errors to the disk until I added log-http-and-disk to the configuration. log-http-and-disk is for writing the CDR itself, but logging HTTP errors did not work until it was added
http://lists.freeswitch.org/pipermail/freeswitch-users/2010-May/057475.html
On 3 May 2010 21:14, Michael Jerris <mike@jerris.com> wrote:
would you mind making sure this gets documented on the wiki, and, if it is not in the sample configuration, send us a patch for that via http://jira.freeswitch.org ?
Mike
_______________________________________________ FreeSWITCH-users mailing list 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
-- Frank Church ======================= http://devblog.brahmancreations.com
participants (2)
-
Frank Church
-
Michael Jerris