I just finish another installation from scratch, this time on a Centos machine, and I getting the exact same result, calls logs are always less than 15s with "TERMINATION CAUSE" "ANSWER", there have to be something very stupid I'm over looking.
This is my /var/log/a2billing/a2billing_agi.log with XXXXXXX in the real numbers I'm using:
Code:
[14/05/2010 22:02:48]:[file:a2billing.php - line:102 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[14/05/2010 22:02:48]:[file:a2billing.php - line:103 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard]
[14/05/2010 22:02:48]:[file:Class.A2Billing.php - line:713 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[ get_agi_request_parameter = 410XXXXXXX ; IAX2/ipkall-1215 ; 1273888957.2 ; ; s]
[14/05/2010 22:02:48]:[file:a2billing.php - line:158 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[ANSWER CALL]]
[14/05/2010 22:02:54]:[file:a2billing.php - line:189 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CHANNEL STATUS : 6 = Line is up]
[CREDIT : 1.93333][CREDIT MIN_CREDIT_2CALL : 0]]
[14/05/2010 22:02:54]:[file:a2billing.php - line:392 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[TARIFF ID -> 1]
[14/05/2010 22:03:04]:[file:Class.A2Billing.php - line:860 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[SPEEDIAL REPLACE DESTINATION ::> 011XXXXXXX]
[14/05/2010 22:03:04]:[file:Class.A2Billing.php - line:870 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CALL 2 DID]]
[14/05/2010 22:03:04]:[file:Class.A2Billing.php - line:885 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[DESTINATION ::> 011XXXXXXX]
[14/05/2010 22:03:10]:[file:Class.RateEngine.php - line:1234 - uniqueid:1273888957.2]:[CallerID:4109294020]:[CN:]:[app_callingcard: Dialing 'IAX2/MYTRUNK/XXXXXXX' with timeout of '231'.
]
[14/05/2010 22:03:24]:[file:Class.RateEngine.php - line:1262 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[DIAL IAX2/MYTRUNK/XXXXXXX]
[14/05/2010 22:03:24]:[file:Class.RateEngine.php - line:953 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[:[sessiontime:7 - id_cc_package_offer:-1 - package2apply:]
]
[14/05/2010 22:03:24]:[file:Class.RateEngine.php - line:1098 - uniqueid:1273888957.2]:[CallerID:4109294020]:[CN:]:[[CC_asterisk_stop : SQL: DONE : result=1]]
[14/05/2010 22:03:24]:[file:a2billing.php - line:189 - uniqueid:1273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CHANNEL STATUS : 6 = Line is up]
[CREDIT : 1.874997][CREDIT MIN_CREDIT_2CALL : 0]]
[14/05/2010 22:03:24]:[file:a2billing.php - line:392 - uniqueid:2273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[TARIFF ID -> 1]
[14/05/2010 22:03:34]:[file:Class.A2Billing.php - line:870 - uniqueid:2273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CALL 2 DID]]
[14/05/2010 22:03:34]:[file:Class.A2Billing.php - line:885 - uniqueid:2273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[DESTINATION ::> ]
[14/05/2010 22:03:34]:[file:a2billing.php - line:189 - uniqueid:2273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CHANNEL STATUS : 6 = Line is up]
[CREDIT : 1.874997][CREDIT MIN_CREDIT_2CALL : 0]]
[14/05/2010 22:03:34]:[file:a2billing.php - line:392 - uniqueid:3273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[TARIFF ID -> 1]
[14/05/2010 22:03:44]:[file:Class.A2Billing.php - line:870 - uniqueid:3273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[[CALL 2 DID]]
[14/05/2010 22:03:44]:[file:Class.A2Billing.php - line:885 - uniqueid:3273888957.2]:[CallerID:410XXXXXXX]:[CN:]:[DESTINATION ::> ]
[14/05/2010 22:03:44]:[CallerID:410XXXXXXX]:[CN:]:[[exit]]
Could it be that this is a permission related problem?, how I know what ownership each log file should have?, cause I don't see must of the logs getting populated, even when I did a paypal payment which worked:
Code:
[root@localhost ~]# ls -l /var/log/a2billing/
total 84
-rw-r--r-- 1 root root 26490 May 15 11:08 a2billing_agi.log
-rw-r--r-- 1 root root 0 May 13 17:05 a2billing-daemon-callback.log
-rw-r--r-- 1 root root 0 May 13 17:05 a2billing_epayment.log
-rw-r--r-- 1 root root 0 May 13 17:05 a2billing_paypal.log
-rw-r--r-- 1 root root 0 May 13 17:05 api_callback_request.log
-rw-r--r-- 1 root root 0 May 13 17:05 api_ecommerce_request.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_alarm.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_autorefill.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_batch_process.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_bill_diduse.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_check_account.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_currency_update.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_invoice.log
-rw-r--r-- 1 root root 0 May 13 17:05 cront_a2b_subscription_fee.log
[root@localhost ~]# ps aux | grep asterisk
root 6506 0.0 0.2 4532 544 ? S May14 0:00 /bin/sh /usr/sbin/safe_asterisk
root 6515 0.0 6.0 35084 15496 ? Sl May14 0:42 /usr/sbin/asterisk -f -vvvg -c
root 11089 0.0 0.2 3920 672 pts/0 R+ 15:12 0:00 grep asterisk
[root@localhost ~]# ps aux | grep httpd
root 10997 0.0 3.9 26124 10148 ? Ss 14:51 0:00 /usr/sbin/httpd
apache 10999 0.0 5.1 33404 13092 ? S 14:51 0:00 /usr/sbin/httpd
apache 11000 0.0 5.2 33752 13304 ? S 14:51 0:00 /usr/sbin/httpd
apache 11001 0.0 2.2 26124 5740 ? S 14:51 0:00 /usr/sbin/httpd
apache 11002 0.0 2.0 26124 5108 ? S 14:51 0:00 /usr/sbin/httpd
apache 11003 0.0 2.0 26124 5108 ? S 14:51 0:00 /usr/sbin/httpd
apache 11004 0.0 2.0 26124 5108 ? S 14:51 0:00 /usr/sbin/httpd
apache 11005 0.0 2.0 26124 5108 ? S 14:51 0:00 /usr/sbin/httpd
apache 11006 0.0 2.0 26124 5108 ? S 14:51 0:00 /usr/sbin/httpd
root 11091 0.0 0.2 3924 684 pts/0 R+ 15:12 0:00 grep httpd
Thanks in advance for any help
Carlos