PROBLEMS INSTALLATION

Moderator: areski

PROBLEMS INSTALLATION

Postby gnocetti » Thu Apr 11, 2013 10:36 pm

I have some problems after install_all.sh script:

system: ubuntu 12.04 LTS


1 - Luas script failed using include "cURL", I changed this include to "curl" and all works.

2 - When you create a survey, it do a SURVEY TEMPLATE type (ID 47), so when call is transfered a error message appears VOICE_APP NOT SUPPORTED... so I have to change database.lua and add id 47 as a criteria in function load_all...

3 - Reports does not work well when I did those changes...


Question, do you know about this problems and has some patch to avoid this?

Thanks in advance!!

Sebastian Nocetti.
gnocetti
 
Posts: 2
Joined: Thu Apr 11, 2013 12:07 am

Re: PROBLEMS INSTALLATION

Postby areski » Fri Apr 12, 2013 8:07 am

In regards of #1 thanks for the report we did last week a change on one of our dependencies which is the cause of this mistake,
your fix remove the error at first but it won't work when you try to use tts with acapela on the IVR.

I just committed a concistent fix :
https://github.com/Star2Billing/newfies ... 8387364a0b
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: PROBLEMS INSTALLATION

Postby areski » Fri Apr 12, 2013 8:10 am

In regards of #2, you might have an error when you active the campaign, that might be good to trouble shoot.

Code: Select all
content_type_id = self:load_content_type()
    if tonumber(self.campaign_info.content_type_id) == tonumber(content_type_id) then
        self.app_type = 'survey'


If the content_type is not survey, then something wrong happen.

#3, be careful what you change, it will be normal you don't have reporting if you introduce an other bug.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: PROBLEMS INSTALLATION

Postby gnocetti » Fri Apr 12, 2013 12:16 pm

About #2, I just follow this steps:

-> goto modules, and click on survey menu

-> Add survey data as name, description...

-> Add a new Action for play a audio file.

-> save Survey...

Then I create a phonebook and add some data to it.

Then I go to campaign... but in Application instead of SURVEY -> Name_new_survey it says SURVEY TEMPLATE -> name_new_survey... so as I find, survey_template has another ID than survey, and that's the error on load_all function on database.lua.
gnocetti
 
Posts: 2
Joined: Thu Apr 11, 2013 12:07 am

Re: PROBLEMS INSTALLATION

Postby areski » Fri Apr 12, 2013 12:28 pm

Survey_template is what you create from the UI, once you click on the start button a proper survey instance "should be" created.
So you don't want to find into your starting campaign contenttype = survey_template

The hereby code is definitely correct :
Code: Select all
function Database:load_content_type()
    sqlquery = "SELECt id FROM django_content_type WHERE model='survey'"


As well as this following code which check you are well running an existing survey :
Code: Select all
content_type_id = self:load_content_type()
    if tonumber(self.campaign_info.content_type_id) == tonumber(content_type_id) then
        self.app_type = 'survey'


If you get a different value for campaign_info.content_type_id, then the problem is upstream, there is something that failed when clicking on the start button which should have changed the campaign_info.content_type_id from survey_template to survey.

Keep in mind Newfies have a survey template system, so a survey template can be reused but when a campaign starts an instance of this campaign is created from survey_template to survey


This is part of the big changes in V2, so I hope the above clarification helps.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 25 guests

cron