Page 1 of 1

Survey Report empty (Reporting API via mod_xml_cdr)

PostPosted: Wed Feb 26, 2014 4:03 pm
by pinhas
Hi,

I get nothing in the Survey Report so I checked the logs...

In Freeswitch log, I get:

2014-02-26 10:45:49.671388 [ERR] mod_xml_cdr.c:365 Got error [400] posting to web server [http://localhost:8008/api/v1/store_cdr/]
2014-02-26 10:45:49.671388 [ERR] mod_xml_cdr.c:372 Retry will be with url [http://localhost:8008/api/v1/store_cdr/]
2014-02-26 10:45:49.671388 [ERR] mod_xml_cdr.c:383 Unable to post to web server, writing to file

I'm not sure if this function is implemented because the webserver respond with a 500 error code (tried server IP address too ).
I can not find where the values of APIUSERNAME:APIPASSWORD in the install script nor in the settings.

Can someone confirm if this is working or the correct URL & values.


Thanks

Re: Survey Report empty (Reporting API via mod_xml_cdr)

PostPosted: Thu Feb 27, 2014 12:11 am
by areski
when did you install it? Which version are you running?

Re: Survey Report empty (Reporting API via mod_xml_cdr)

PostPosted: Thu Feb 27, 2014 5:35 pm
by pinhas
I'm running the latest version 2.10.1
I have been playing with it since 3-4 months.
Installed it last week on debian wheezy x64 (I already had Freeswitch & Fusionpbx working), I had to modify the install script and add some dependencies & tools (like easy_install).
everything was working except the reporting, then I found out that some lua stuff were not installed, I did install them manually.
Now all seems to be OK except that the Survey Report is empty.
Found the Error in Freeswitch log regarding mod_xml_cdr, but in the install script the module was commented out, it look that it was used for V1.

Can you please confirm that the xml_cdr is no longer in use so I can just remove it from my Freeswitch conf.
Also which script is responsible for updating the survey.

Thanks

Re: Survey Report empty (Reporting API via mod_xml_cdr)

PostPosted: Thu Feb 27, 2014 9:06 pm
by areski
mod_xml_cdr is not used anymore and that's why it s commented in our installation process.
You may have missed to configure the listener.lua if you installed it manually

Re: Survey Report empty (Reporting API via mod_xml_cdr)

PostPosted: Tue Mar 04, 2014 4:51 pm
by pinhas
Thanks I was missing some values in settings.lua

Also I found 2 errors in djcelery_error.log

[2014-03-04 11:08:21,261: ERROR/Worker-33] appointment.tasks.alarmrequest_dispatcher[56e3cd54-8cba-4ef3-ac38-bfb899e9849c]: alarmrequest_dispatcher - no alarmreq found!

and

[2014-03-04 11:07:20,469: ERROR/MainProcess] Task mod_mailer.tasks.sendmail_pending[b7f84fa3-8c5f-44c1-a928-062e55f6a90c] raised unexpected: LockFailed('failed to create /usr/share/newfies/dialer.lumiled.ca.MainThread-4285',)
Traceback (most recent call last):
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/celery/app/trace.py", line 238, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/celery/app/trace.py", line 416, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/share/newfies/mod_mailer/tasks.py", line 105, in sendmail_pending
send_all()
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/mailer/engine.py", line 58, in send_all
lock.acquire(LOCK_WAIT_TIMEOUT)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/mailer/lockfile.py", line 239, in acquire
raise LockFailed("failed to create %s" % self.unique_name)
LockFailed: failed to create /usr/share/newfies/DOMAIN.MainThread-4285