Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 3:33 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: a2b 1.2.3 install help
PostPosted: Mon Aug 13, 2007 6:13 pm 
Offline

Joined: Mon Sep 18, 2006 11:26 am
Posts: 14
Hi all

I have installed a2b 1.2.3 successfully, i created trunnk , ratecard and customere etc..

When i make call i get following logs and my call get FAST busy.
Kindly help me to find where i did wrong.

Verbosity is at least 3
-- Executing Answer("SIP/7214034585-08c01798", "") in new stack
-- Executing Wait("SIP/7214034585-08c01798", "1") in new stack
-- Executing DeadAGI("SIP/7214034585-08c01798", "a2billing.php|1") in new stack
-- Launched AGI Script /var/lib/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] => 1
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] =>
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] =>
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] =>
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] =>
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/7214034585-08c01798
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => SIP
a2billing.php|1: [agi_uniqueid] => 1187028009.4
a2billing.php|1: [agi_callerid] => 960439323394034
a2billing.php|1: [agi_calleridname] => 7214034585
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] => 18478644123
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => a2billing
a2billing.php|1: [agi_extension] => 18478644123
a2billing.php|1: [agi_priority] => 3
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] => 7214034585
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: line:490 get_agi_request_parameter = 960439323394034 ; SIP/7214034585-08c01798 ; 1187028009.4 ; 7214034585 ; 18478644123
a2billing.php|1: line:138 - [ANSWER CALL]
a2billing.php|1: line:1470 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='7214034585'
a2billing.php|1: line:1473 - Array
a2billing.php|1: line:1760 - [A2Billing] SAY BALANCE (1)
a2billing.php|1:
a2billing.php|1: [REQUESTED SetCallerID : 960439323394034]
a2billing.php|1: [EXEC SetCallerID : 960439323394034]
a2billing.php|1: line:519 - UPDATE cc_card SET inuse=inuse+1 WHERE username='7214034585'
a2billing.php|1: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|1: line:170 - [CREDIT STATUS : 50.00000]
a2billing.php|1: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|1: line:544 - && && 11&& 0
a2billing.php|1: line:551 - RES DTMF : -1
a2billing.php|1: line:571 - DESTINATION ::> -1
a2billing.php|1: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php|1: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|1: line:170 - [CREDIT STATUS : 50.00000]
a2billing.php|1: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|1: line:544 - 0 && && 11&& 1
a2billing.php|1: line:551 - RES DTMF : -1
a2billing.php|1: line:571 - DESTINATION ::> -1
a2billing.php|1: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php|1: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|1: line:170 - [CREDIT STATUS : 50.00000]
a2billing.php|1: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|1: line:544 - 0 && && 11&& 2
a2billing.php|1: line:551 - RES DTMF : -1
a2billing.php|1: line:571 - DESTINATION ::> -1
a2billing.php|1: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php|1: line:519 - UPDATE cc_card SET inuse=inuse-1 WHERE username='7214034585'
-- AGI Script a2billing.php completed, returning 0
asterisk1*CLI>

Thanks in Advance

Ravi


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 9:44 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
Based on your log files A2B

1. authenticated the caller using the accountcode
2. played your balance
3. asked you 3 times to enter the number you want to dial
4. hung up because you did not enter the number you wnated to dial

Did you hear any prompts?

If not check to see if you have the a2b sound files loaded ...
i think they are in /var/lib/asterisk/sounds/en/

if you have them loaded check to see if you are using a practical codec. try the 711 ones before you get fancy. if you wnat to use 723 or 729 you have to load those modules in your asterisk installation as they do not come standard


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 10:49 am 
Offline

Joined: Mon Sep 18, 2006 11:26 am
Posts: 14
Thanks for your reply,

I need to run device to phone and whole sale scenario instead of calling card, and iam not looking for IVR so i did not load sound file.

i need simpley call flow and billing. pls help me

Thanks in advance

Ravi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 2:28 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
ravi

be a trooper and load the sound files ;-)

to create what you want, in the a2billing.conf file

1. set the cid_enable=no
2. set use_dnid=yes
3. set say_balance_after_auth=no
4. set say_timetocall=no
5. number_try=1

this way it authenticates using accountcode, says nothing, and dials the number that is in the DNID (number you dialed)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 6:54 pm 
Offline

Joined: Mon Sep 18, 2006 11:26 am
Posts: 14
hi Thanks for your reply,

I have tried all these options but still i face the same issue.

I get the same logs as above


pls help


Ravi

Added after 2 hours 6 minutes:

Thanks for your help.


I did as you mentione above , and now i get different LOgs , psl check and help me


a2billing.php|: line:58 - IDCONFIG : 1
a2billing.php|:
a2billing.php|: line:67 - MODE : standard
a2billing.php|:
a2billing.php|: A2Billing AGI internal configuration:
a2billing.php|: Array
a2billing.php|: (
a2billing.php|: [debug] => 1
a2billing.php|: [answer_call] =>
a2billing.php|: [logger_enable] => 1
a2billing.php|: [log_file] => /tmp/a2billing.log
a2billing.php|: [say_goodbye] =>
a2billing.php|: [play_menulanguage] =>
a2billing.php|: [force_language] =>
a2billing.php|: [intro_prompt] =>
a2billing.php|: [len_cardnumber] => 10
a2billing.php|: [len_aliasnumber] => 15
a2billing.php|: [len_voucher] => 15
a2billing.php|: [min_credit_2call] => 0
a2billing.php|: [min_duration_2bill] => 0
a2billing.php|: [notenoughcredit_cardnumber] => 1
a2billing.php|: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|: [use_dnid] => 1
a2billing.php|: [no_auth_dnid] => Array
a2billing.php|: (
a2billing.php|: [0] => 2400
a2billing.php|: [1] => 2300
a2billing.php|: )
a2billing.php|:
a2billing.php|: [number_try] => 3
a2billing.php|: [say_balance_after_auth] =>
a2billing.php|: [say_balance_after_call] =>
a2billing.php|: [say_rateinitial] =>
a2billing.php|: [say_timetocall] =>
a2billing.php|: [auto_setcallerid] => 1
a2billing.php|: [force_callerid] =>
a2billing.php|: [cid_sanitize] =>
a2billing.php|: [cid_enable] =>
a2billing.php|: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|: [cid_auto_create_card] =>
a2billing.php|: [cid_auto_assign_card_to_cid] => 1
a2billing.php|: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|: [cid_auto_create_card_credit] => 0
a2billing.php|: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|: [callerid_authentication_over_cardnumber] =>
a2billing.php|: [sip_iax_friends] =>
a2billing.php|: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|: [sip_iax_pstn_direct_call] =>
a2billing.php|: [extracharge_did] => Array
a2billing.php|: (
a2billing.php|: [0] =>
a2billing.php|: )
a2billing.php|:
a2billing.php|: [extracharge_fee] => Array
a2billing.php|: (
a2billing.php|: [0] =>
a2billing.php|: )
a2billing.php|:
a2billing.php|: [dialcommand_param] => |30|HL(%timeout%:61000:30000)
a2billing.php|: [dialcommand_param_sipiax_friend] => |30|HL(3600000:61000:30000)
a2billing.php|: [switchdialcommand] =>
a2billing.php|: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|: [send_reminder] =>
a2billing.php|: [record_call] =>
a2billing.php|: [monitor_formatfile] => gsm
a2billing.php|: [base_currency] => usd
a2billing.php|: [agi_force_currency] =>
a2billing.php|: [currency_association] => Array
a2billing.php|: (
a2billing.php|: [0] => usd:prepaid-dollar
a2billing.php|: [1] => mxn:pesos
a2billing.php|: [2] => eur:euro
a2billing.php|: [3] => all:credit
a2billing.php|: )
a2billing.php|:
a2billing.php|: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|: [currency_association_internal] => Array
a2billing.php|: (
a2billing.php|: [usd] => prepaid-dollar
a2billing.php|: [mxn] => pesos
a2billing.php|: [eur] => euro
a2billing.php|: [all] => credit
a2billing.php|: )
a2billing.php|:
a2billing.php|: )
a2billing.php|:
a2billing.php|: AGI Request:
a2billing.php|: Array
a2billing.php|: (
a2billing.php|: [agi_request] => a2billing.php
a2billing.php|: [agi_channel] => SIP/7214034585-08c05c40
a2billing.php|: [agi_language] => en
a2billing.php|: [agi_type] => SIP
a2billing.php|: [agi_uniqueid] => 1187117325.32
a2billing.php|: [agi_callerid] => 960439323394034
a2billing.php|: [agi_calleridname] => 7214034585
a2billing.php|: [agi_callingpres] => 0
a2billing.php|: [agi_callingani2] => 0
a2billing.php|: [agi_callington] => 0
a2billing.php|: [agi_callingtns] => 0
a2billing.php|: [agi_dnid] => 18478644123
a2billing.php|: [agi_rdnis] => unknown
a2billing.php|: [agi_context] => a2billing
a2billing.php|: [agi_extension] => 18478644123
a2billing.php|: [agi_priority] => 3
a2billing.php|: [agi_enhanced] => 0.0
a2billing.php|: [agi_accountcode] => 7214034585
a2billing.php|: )
a2billing.php|:
a2billing.php|: line:490 get_agi_request_parameter = 960439323394034 ; SIP/7214034585-08c05c40 ; 1187117325.32 ; 7214034585 ; 18478644123
a2billing.php|: line:142 - [NO ANSWER CALL]
a2billing.php|: line:1470 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='7214034585'
a2billing.php|: line:1473 - Array
a2billing.php|: [REQUESTED SetCallerID : 960439323394034]
a2billing.php|: [EXEC SetCallerID : 960439323394034]
a2billing.php|: line:519 - UPDATE cc_card SET inuse=inuse+1 WHERE username='7214034585'
a2billing.php|: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|: line:170 - [CREDIT STATUS : 50.00000]
a2billing.php|: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|: line:519 - UPDATE cc_card SET inuse=inuse-1 WHERE username='7214034585'
-- AGI Script a2billing.php completed, returning 0
-- Executing Hangup("SIP/7214034585-08c05c40", "") in new stack
== Spawn extension (a2billing, 18478644123, 4) exited non-zero on 'SIP/7214034585-08c05c40'
asterisk1*CLI>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 11:20 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Quote:
a2billing.php|: line:519 - UPDATE cc_card SET inuse=inuse+1 WHERE username='7214034585'
a2billing.php|: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php|: line:170 - [CREDIT STATUS : 50.00000]
a2billing.php|: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|: line:519 - UPDATE cc_card SET inuse=inuse-1 WHERE username='7214034585'
-- AGI Script a2billing.php completed, returning 0
-- Executing Hangup("SIP/7214034585-08c05c40", "") in new stack
== Spawn extension (a2billing, 18478644123, 4) exited non-zero on 'SIP/7214034585-08c05c40'


This part of the log shows A2B trying marking your card as in use, trying to dial, then marking your card unused again.

Try again after saying "set verbose 15" to Asterisk. This problem seems to be coming from the trunk.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 3:59 am 
Offline

Joined: Mon Sep 18, 2006 11:26 am
Posts: 14
Hi

Thanks for your reply,

I have tried after making "set verbose 15" but result is same , pls help

iam almost done but my call is not going to trunk


help me


Thanks

Ravi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 11:38 am 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
check if you have php-pcntl installed if not install it

look at the in-use flag on the customer record page see if is greater than 0 ... if it is set it to 0

set the simultaneous access to simultaneous acccess

then try calling again


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 11:46 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Ravi wrote:
Hi
I have tried after making "set verbose 15" but result is same , pls help

Yes the result will be the same, but the debug log will contain a lot more information as to why the outbound leg failed.

It doesn't look like a problem with PHP pcntl as it's deducting 1 from inuse at the end of the call.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 3:13 pm 
Offline

Joined: Mon Sep 18, 2006 11:26 am
Posts: 14
Hi

Thanks for your replies, i have tried many ways still couldnot success,

my requirement is simply WHOLESALE MODE ,So pls help me setup a2billing in wholesale mode.

pls give me steps from scratch


Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 6:45 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
i PM'd you some stuff check it out


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 16 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group