Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 11:47 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: trixbox a2billing linksys3102
PostPosted: Wed Apr 18, 2007 5:36 pm 
Offline

Joined: Wed Apr 18, 2007 5:18 pm
Posts: 1
This is my story
I installed a2billing in the trixbox machine and i wanted test my calling card platform weather is working or not so I used Linksys 3102 i did same as document says
i connected my home phone into the linksys 3102 box
when I try to call my home number i am getting after one ring " the number you dial not in service"
pl pl help me
thx for your time


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 18, 2007 10:01 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
check your rate card and give us your asterisk logs to see what's going on.


Top
 Profile  
 
 Post subject: A2Billing rings once
PostPosted: Sat Apr 21, 2007 9:54 am 
Offline

Joined: Thu Apr 19, 2007 3:25 pm
Posts: 3
i get the same message and below is the logs from asterisk

asterisk1*CLI>
-- Executing Answer("SIP/206-0863d4f0", "") in new stack
-- Executing Wait("SIP/206-0863d4f0", "10") in new stack
-- Executing DeadAGI("SIP/206-0863d4f0", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
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] => 1
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] =>
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] => 1
a2billing.php: [say_balance_after_call] =>
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] =>
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] => 1
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/206-0863d4f0
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1177148998.17
a2billing.php: [agi_callerid] => 206
a2billing.php: [agi_calleridname] => device
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 225
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => from-internal
a2billing.php: [agi_extension] => 225
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] =>
a2billing.php: )
a2billing.php:
a2billing.php: line:490 get_agi_request_parameter = 206 ; SIP/206-0863d4f0 ; 1177148998.17 ; ; 225
a2billing.php: line:138 - [ANSWER CALL]
a2billing.php: line:1283 - [CID_ENABLE - CID_CONTROL - CID:206]
a2billing.php: line:1299 - SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.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_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='206'
a2billing.php: line:1302 - Array
a2billing.php: line:1760 - [A2Billing] SAY BALANCE (1)
a2billing.php:
-- Playing 'digits/10' (language 'en')
-- Playing 'digits/thousand' (language 'en')
a2billing.php: [REQUESTED SetCallerID : 206]
a2billing.php: [EXEC SetCallerID : 206]
a2billing.php: line:519 - UPDATE cc_card SET inuse=inuse+1 WHERE username='8123784756'
a2billing.php: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: line:170 - [CREDIT STATUS : 10000]
a2billing.php: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: line:544 - && && 3&& 0
a2billing.php: line:551 - RES DTMF : -1
a2billing.php: line:571 - DESTINATION ::> -1
a2billing.php: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: line:170 - [CREDIT STATUS : 10000]
a2billing.php: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: line:544 - 0 && && 3&& 1
a2billing.php: line:551 - RES DTMF : -1
a2billing.php: line:571 - DESTINATION ::> -1
a2billing.php: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php: line:166 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: line:170 - [CREDIT STATUS : 10000]
a2billing.php: line:171 - [CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: line:544 - 0 && && 3&& 2
a2billing.php: line:551 - RES DTMF : -1
a2billing.php: line:571 - DESTINATION ::> -1
a2billing.php: line:573 - APPLY_RULES DESTINATION ::> -1
a2billing.php: line:519 - UPDATE cc_card SET inuse=inuse-1 WHERE username='8123784756'
-- AGI Script a2billing.php completed, returning 0
-- Executing Macro("SIP/206-0863d4f0", "hangupcall") in new stack
-- Executing ResetCDR("SIP/206-0863d4f0", "w") in new stack
-- Executing NoCDR("SIP/206-0863d4f0", "") in new stack
-- Executing GotoIf("SIP/206-0863d4f0", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/206-0863d4f0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/206-0863d4f0", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/206-0863d4f0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/206-0863d4f0'
asterisk1*CLI>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 22, 2007 2:39 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
well this looks strange:
a2billing.php: line:544 - && && 3&& 0
a2billing.php: line:551 - RES DTMF : -1
a2billing.php: line:571 - DESTINATION ::> -1
a2billing.php: line:573 - APPLY_RULES DESTINATION ::> -1

is your calling card system working good? meaning did -> a2billing ->termination, otr you didn't have it set up yet.
I'm thinking ----- dtmf problems or ratecard is not set up.
Check your rate card -go to admin interface to ratecard simulator. Type in destination number and card number to use. If you don't see a calculated price - then ratecard is not settup right.
If it gives you price - ratecard should be fine.
Check your dtmf setting in sip_additional.conf file - set it to auto or rcf2833.

let me know...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 11:23 am 
Offline

Joined: Thu Apr 19, 2007 3:25 pm
Posts: 3
Hi,

Stil doesnt work. The call is accepted but immediately hangs up. in my extension_customs.conf i gave included the lines below:-

[from-internal-custom]

include => from-internal-trixbox
include => outbound-allroutes
exten => 225,1,Answer
exten => 225,2,Wait,2
exten => 225,3,DeadAGI,a2billing.php
exten => 225,4,Wait,2
exten => 225,5,Hangup

and when i try to dial the number 225, i get below from the logs. I checked the rate and simulated a destination and it gives me calculate rates which are okay.


asterisk1*CLI>
-- Executing Answer("SIP/201-09003b18", "") in new stack
-- Executing Wait("SIP/201-09003b18", "2") in new stack
-- Executing DeadAGI("SIP/201-09003b18", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
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] => 1
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] =>
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] => 1
a2billing.php: [say_balance_after_call] =>
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] =>
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] => 1
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/201-09003b18
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1177325613.19
a2billing.php: [agi_callerid] => 201
a2billing.php: [agi_calleridname] => device
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 225
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => from-internal
a2billing.php: [agi_extension] => 225
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] =>
a2billing.php: )
a2billing.php:
a2billing.php: line:490 get_agi_request_parameter = 201 ; SIP/201-09003b18 ; 1177325613.19 ; ; 225
a2billing.php: line:138 - [ANSWER CALL]
a2billing.php: line:1283 - [CID_ENABLE - CID_CONTROL - CID]
a2billing.php: line:1299 - SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.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_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='201'
a2billing.php: line:1302 - 0
a2billing.php: line:1593 - Requesting DTMF ::> Len-10
a2billing.php: line:1595 - RES DTMF : -1
a2billing.php: line:1599 - CARDNUMBER ::> -1
a2billing.php: line:1609 - PREPAID-INVALID-DIGITS
a2billing.php: line:1584 - PREPAID-INVALID-DIGITS
a2billing.php: line:1593 - Requesting DTMF ::> Len-10
a2billing.php: line:1595 - RES DTMF : -1
a2billing.php: line:1599 - CARDNUMBER ::> -1
a2billing.php: line:1609 - PREPAID-INVALID-DIGITS
a2billing.php: line:1584 - PREPAID-INVALID-DIGITS
a2billing.php: line:1593 - Requesting DTMF ::> Len-10
a2billing.php: line:1595 - RES DTMF : -1
a2billing.php: line:1599 - CARDNUMBER ::> -1
a2billing.php: line:1609 - PREPAID-INVALID-DIGITS
-- AGI Script a2billing.php completed, returning 0
-- Executing Macro("SIP/201-09003b18", "hangupcall") in new stack
-- Executing ResetCDR("SIP/201-09003b18", "w") in new stack
-- Executing NoCDR("SIP/201-09003b18", "") in new stack
-- Executing GotoIf("SIP/201-09003b18", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/201-09003b18", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/201-09003b18", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/201-09003b18' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/201-09003b18'
asterisk1*CLI>
[root@asterisk1 ~]#

Added after 5 minutes:

.... i had rfc2833 on all the extensions


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 1:29 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
a2billing.php: line:1609 - PREPAID-INVALID-DIGITS
a2billing.php: line:1584 - PREPAID-INVALID-DIGITS

That seems to be your issue


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 1:55 pm 
Offline

Joined: Thu Apr 19, 2007 3:25 pm
Posts: 3
Any idea what this means?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 2:14 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
If you hear voice prompts, then I'd assume your DTMF detection method (I've had bitch of a time with SPA's on FXO mode). If you are not hearing voice prompts, I'd assume Codec issues.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Auto Dialer Software


All times are UTC


Who is online

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