asterisk2billing.org
http://forum.asterisk2billing.org/

a2billing_batch_autodialer --> No phonenumbers to call now
http://forum.asterisk2billing.org/viewtopic.php?f=22&t=7162
Page 1 of 1

Author:  mydigia [ Mon Feb 22, 2010 8:43 am ]
Post subject:  a2billing_batch_autodialer --> No phonenumbers to call now

Hi,

Since two days ago, I'm getting this error for one of the cronjobs of a2billing, and it's causing more than 2500 emails (failures) to be stroed in our mailserver, the error in the failed emails is:


SQL QUERY: SELECT count(*) FROM cc_phonenumber , cc_phonebook , cc_campaign_phonebook, cc_campaign WHERE cc_phonenumber.id_phonebook = cc_phonebook.id AND cc_campaign_phonebook.id_phonebook = cc_phonebook.id AND cc_campaign_phonebook.id_campaign = cc_campaign.id AND cc_campaign.status = 1 AND cc_campaign.startingdate <= CURRENT_TIMESTAMP AND cc_campaign.expirationdate > CURRENT_TIMESTAMP AND cc_campaign.monday = 1 AND cc_campaign.daily_start_time <= CURRENT_TIME AND cc_campaign.daily_stop_time > CURRENT_TIME AND cc_phonenumber.status = 1
Array
(
[0] => Array
(
[0] => 0
[count(*)] => 0
)

)
[No phonenumbers to call now]


I tried to run this cronjob manually, and got the same thing. The only change we have done in the whole server is the hostname, if it's related at all... (strange... :!: )


Any help highly appreciated...
Ali.

Author:  mydigia [ Fri Feb 26, 2010 9:29 am ]
Post subject:  Re: a2billing_batch_autodialer --> No phonenumbers to call now

Anyone around got an idea on this?

Thanks for your time,

Ali.

Author:  chrisips2 [ Sat Mar 16, 2013 2:44 pm ]
Post subject:  Re: a2billing_batch_autodialer --> No phonenumbers to call now

Yike! I've started getting this now. Any ideas? It doesn't look like a true 'error', just a job completing. Can I stop this happing?

Author:  chrisips2 [ Tue Mar 26, 2013 10:25 pm ]
Post subject:  Re: a2billing_batch_autodialer --> No phonenumbers to call now

Edit the Crontab from the default:

Code:
*/5 * * * * php /var/www/a2billing/Cronjobs/a2billing_batch_autodialer.php


To:

Code:
*/5 * * * * php /var/www/a2billing/Cronjobs/a2billing_batch_autodialer.php > /dev/null


This will redirect STDOUT and you will still be alerted of any errors.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/