Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 7:58 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Newbie: Calls always 15s "TERMINATE CAUSE" "ANSWER"
PostPosted: Wed Apr 28, 2010 7:19 pm 
Offline

Joined: Thu Sep 24, 2009 8:18 pm
Posts: 9
Newbie here,

I just manage to install my first a2billing system ever and I also don't have to much experience on asterisk, following the install guide and guessing most of what is not there, so this could be a very stupid mistake on my part, like it was not to create /var/log/a2billing/.

I'm on Ubuntu Karmic, so I follow deb guide, Asterisk 1.6, A2billing 1.7 from svn and my only outbound trunk is an IAX2 one. I receive the call through a Ipkall IAX2 inbound trunk, I pass the call to the this modified by me to make it work on my 1.6 asterisk a2billing_callingcard context:
[a2billing_callingcard]
; CallingCard application
exten => s,1,Answer
exten => s,2,Wait(2)
exten => s,3,AGI(a2billing.php)
exten => s,4,Wait(2)
exten => s,5,Hangup

Everything seems to be working, the customer is asked for his PIN, then the number to be dialed, then a2billing let the customer knows how much will be able to talk and the call is placed, but the sad part is that a2billing is not keeping track of the call, it only takes record of the first 15 seconds and charges the customer for that, even before the call ends, in the calls record of the customer I see that the termination cause is set to "ANSWER" which doesn't make sense to me at all.

I already had problem with the log files went I was trying to configure the paypal epayment method, but that was solve when I realized I was supposed to have a /var/log/a2billing/ that I placed under www-data ownership, I also saw searching the forum that people recommend to touch all log files to be sure they are created, but I don't know what ownership shall I put on each of then, apache running user or asterisk?

Any help please?


Top
 Profile  
 
 Post subject: Re: Newbie: Calls always 15s "TERMINATE CAUSE" "ANSWER"
PostPosted: Thu Apr 29, 2010 7:34 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

You should be using deadagi, not AGI

Joe


Top
 Profile  
 
 Post subject: Re: Newbie: Calls always 15s "TERMINATE CAUSE" "ANSWER"
PostPosted: Thu Apr 29, 2010 5:45 pm 
Offline

Joined: Thu Sep 24, 2009 8:18 pm
Posts: 9
jroper wrote:
You should be using deadagi, not AGI

Well I switch to AGI because of this on the asterisk console:
Code:
WARNING[16021]: res_agi.c:3291 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!


But even if I put DeadAGI, which I just did and tested, I still get the same result.

Thanks for taking the time to respond, any other advice of where to look?


Top
 Profile  
 
 Post subject: Re: Newbie: Calls always 15s "TERMINATE CAUSE" "ANSWER"
PostPosted: Sat May 15, 2010 7:31 pm 
Offline

Joined: Thu Sep 24, 2009 8:18 pm
Posts: 9
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group