Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 11:20 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Hearing "goodbye" and hanging up...
PostPosted: Fri Sep 22, 2006 5:07 pm 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
I'm an A2B newbie... I've set it up per the wiki(the best I can tell) but I keep getting this:

Sep 22 12:54:17 DEBUG[3934]: chan_sip.c:6145 build_route: build_route: Contact hop: <sip:[email protected]>
Sep 22 12:54:17 DEBUG[3882]: channel.c:777 channel_find_locked: -- Executing Answer("SIP/8.3.22.114-a6a01180", "") in new stack
Avoiding initial deadlock for 'SIP/8.3.22.114-a6a01180'
-- Executing Wait("SIP/8.3.22.114-a6a01180", "1") in new stack
Sep 22 12:54:17 DEBUG[3934]: chan_sip.c:1410 __sip_ack: Stopping retransmission on '[email protected]' of Response 102: Match Found
-- Executing DeadAGI("SIP/8.3.22.114-a6a01180", "a2billing.php|1") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
a2billing.php|1: line:58 - IDCONFIG : 1
a2billing.php|1:
a2billing.php|1: line:67 - MODE : standard
a2billing.php|1:
a2billing.php|1: A2Billing AGI internal configuration:
a2billing.php|1: Array
a2billing.php|1: (
a2billing.php|1: [debug] => 3
a2billing.php|1: [answer_call] => 1
a2billing.php|1: [logger_enable] => 1
a2billing.php|1: [log_file] => /tmp/a2billing.log
a2billing.php|1: [say_goodbye] =>
a2billing.php|1: [play_menulanguage] =>
a2billing.php|1: [force_language] =>
a2billing.php|1: [intro_prompt] =>
a2billing.php|1: [len_cardnumber] => 10
a2billing.php|1: [len_aliasnumber] => 15
a2billing.php|1: [len_voucher] => 15
a2billing.php|1: [min_credit_2call] => 0
a2billing.php|1: [min_duration_2bill] => 0
a2billing.php|1: [notenoughcredit_cardnumber] => 1
a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|1: [use_dnid] => 1
a2billing.php|1: [no_auth_dnid] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 2400
a2billing.php|1: [1] => 2300
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [number_try] => 3
a2billing.php|1: [say_balance_after_auth] => 1
a2billing.php|1: [say_balance_after_call] =>
a2billing.php|1: [say_rateinitial] =>
a2billing.php|1: [say_timetocall] => 1
a2billing.php|1: [auto_setcallerid] => 1
a2billing.php|1: [force_callerid] =>
a2billing.php|1: [cid_sanitize] =>
a2billing.php|1: [cid_enable] => 1
a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1: [cid_auto_create_card] =>
a2billing.php|1: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1: [cid_auto_create_card_credit] => 0
a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1: [callerid_authentication_over_cardnumber] =>
a2billing.php|1: [sip_iax_friends] => 1
a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|1: [sip_iax_pstn_direct_call] =>
a2billing.php|1: [extracharge_did] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_fee] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [dialcommand_param] => |30|HL(%timeout%:61000:30000)
a2billing.php|1: [dialcommand_param_sipiax_friend] => |30|HL(3600000:61000:30000)
a2billing.php|1: [switchdialcommand] =>
a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1: [send_reminder] => 1
a2billing.php|1: [record_call] =>
a2billing.php|1: [monitor_formatfile] => gsm
a2billing.php|1: [base_currency] => usd
a2billing.php|1: [agi_force_currency] =>
a2billing.php|1: [currency_association] => Array
a2billing.php|1: (
a2billing.php|1: [0] => usd:prepaid-dollar
a2billing.php|1: [1] => mxn:pesos
a2billing.php|1: [2] => eur:euro
a2billing.php|1: [3] => all:credit
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1: [currency_association_internal] => Array
a2billing.php|1: (
a2billing.php|1: [usd] => prepaid-dollar
a2billing.php|1: [mxn] => pesos
a2billing.php|1: [eur] => euro
a2billing.php|1: [all] => credit
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: AGI Request:
a2billing.php|1: Array
a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => SIP/8.3.22.114-a6a01180
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => SIP
a2billing.php|1: [agi_uniqueid] => 1158944057.42
a2billing.php|1: [agi_callerid] => +18134044724
a2billing.php|1: [agi_calleridname] => +18134044724
a2billing.php|1: [agi_callingpres] => 0
a2billing.php|1: [agi_callingani2] => 0
a2billing.php|1: [agi_callington] => 0
a2billing.php|1: [agi_callingtns] => 0
a2billing.php|1: [agi_dnid] => +19495964560
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => default
a2billing.php|1: [agi_extension] => +19495964560
a2billing.php|1: [agi_priority] => 3
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: line:489 get_agi_request_parameter = +18134044724 ; SIP/8.3.22.114-a6a01180 ; 1158944057.42 ; ; +19495964560
-- AGI Script a2billing.php completed, returning 0
-- Executing Hangup("SIP/8.3.22.114-a6a01180", "") in new stack
== Spawn extension (default, +19495964560, 4) exited non-zero on 'SIP/8.3.22.114-a6a01180'

It doesn't prompt me for any pin. I t just streams "goodbye" and hangs up.

Any ideas would be greatly appreciated! (I feel like it's going to be something embarrassingly simple...:D)

Clay


Top
 Profile  
 
 Post subject: More info?
PostPosted: Fri Sep 22, 2006 8:22 pm 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
Please tell me if I should supply more info, config files...

Thank you!

Clay


Top
 Profile  
 
 Post subject: Re: More info?
PostPosted: Mon Sep 25, 2006 4:00 am 
Offline

Joined: Sun Aug 27, 2006 11:53 am
Posts: 41
creiche wrote:
Please tell me if I should supply more info, config files...

Thank you!

Clay


What are you using A@H or trixbox.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 2:30 pm 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
I'm using Asterisk 1.2.11.

Clay


Top
 Profile  
 
 Post subject: ADODB problem - streaming "Goodbye" (prepaid-final
PostPosted: Thu Sep 28, 2006 1:39 am 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
Ok... I've discovered this much. It is streaming "prepaid-final" because there is no database connection. Here's my evidence:

Line 91 in a2billing.php is the only place that streams 'prepaid-final'. (Except for the 'say_goodbye' variable on line 305 but I have that off.)

Line 1873 in Class.A2Billing.php is the DbConnect method that includes adodb/adodb.inc.php

I saw a few adodb.inc.php errors in /var/log/messages:
"Assigning the return value of new by reference is deprecated"

I'm using PHP5 so I had to fix a few lines in adodb.inc.php replacing the "=& new" with "= clone(new ...)" (Lines 889, 1914,1986, and 3851)

After that, I get no more errors in the logs but I still get the "prepaid-final" streamed to me and a hangup... so I'm guessing there is still a database connection problem.

Can someone please help me? I'm dying to make this work!

Thank you in advance!

Clay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 29, 2006 1:25 am 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
Thanks for all the help... :roll:

It was something silly just as I suspected...

My php.ini for my CLI didn't have pgsql.so extension loading... darnit!!!
I added:
extension=pgsql.so
to my ...php5/cli/php.ini and it works great so far!

Clay


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 4:29 pm 
Offline

Joined: Wed Jul 12, 2006 2:20 pm
Posts: 5
I have the same error Assigning the return value of new by reference is deprecated but am using MySQL 5.0.27-1 & PHP 5.1.6. Am getting the same problems as you and further i cant login to the admin interface. I get Connection Failed. More to that this is the debug for the CLI when i dial the calling card interface

Quote:
a2billing.php: line:58 - IDCONFIG : 1
a2billing.php:
a2billing.php: line:67 - MODE : standard
a2billing.php:


Is this because am using an old adodb scripts?

-K


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 5:18 pm 
Offline

Joined: Fri Sep 22, 2006 4:24 pm
Posts: 18
This has been a long time.... :) Did you adjust the lines in the adodb.inc.php file? Those lines were specifically to fix the var/log error messages that pertained to adodb and php5. I'm not really sure if they would have prevented the database connection or not because I wasn't loading pgsql.so in my php.ini file. (and I never went back to change the adodb.inc.php file)

I would just make certain you are modifying the correct php.ini file and make sure you are loading mysql.so. (extension=mysql.so?)

If you are using debian you will have 2 php.ini files, one for apache and one for the cli. I was adding my pgsql.so to the apache php.ini file and not the cli php.ini...

for me the locations are /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini

Wish I could be of more assistance, it's just been a long time... :)

Clay

P.S. I DO remember getting the latest adodb files at the time...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 5:27 pm 
Offline

Joined: Wed Jul 12, 2006 2:20 pm
Posts: 5
Am using FC6 and all php modules .ini are saved in /etc/php.d/ including the mysql modules ini which is loaded. Its weird since i setup 3 machines running a2billing a while ago and now i cant even succeed in logging successfully.

I made some amendments on the adodb but later reverted back to default. Wats funny is that Asterisk also is finding it hard to login to MySQL.


Top
 Profile  
 
 Post subject: ubuntu
PostPosted: Sun Jul 22, 2007 5:05 pm 
Offline

Joined: Tue Mar 13, 2007 7:16 am
Posts: 79
I am using ubuntu linux server 7.04 and asterisk 1.2.21, I have problem with my a2billing on ubuntu, I always was not able to find solution for that

the billing do not ask you for you pin number, it just finish and say your authantication failed, and then drop the call and I don't way on ubuntu only, on suse or fedora it work, so what is the problem with ubuntu

I added extenson = mysql on both php.ini of cli and apache2, but no luck

plase if any one was able to use a2billing on ubuntu let me know


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 20 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