Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 7:32 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: A2billing DID Implementation
PostPosted: Mon Sep 14, 2009 7:08 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
Hello All!

I want implement a DID Billing, but I don't understand because this doesn't work. (I have implemented this feature in past).

Follow the debug of DID 3617 with destination SIP/[email protected]

-- Executing [3617@from-did:1] DeadAGI("SIP/hello01-0860aa88", "a2billing.php|1|did") in new stack
[Sep 14 15:56:19] WARNING[5828]: res_agi.c:2203 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1|did: A2Billing AGI internal configuration:
a2billing.php|1|did: Array
a2billing.php|1|did: (
a2billing.php|1|did: [debug] => 3
a2billing.php|1|did: [asterisk_version] => 1_4
a2billing.php|1|did: [answer_call] =>
a2billing.php|1|did: [play_audio] => 1
a2billing.php|1|did: [say_goodbye] =>
a2billing.php|1|did: [play_menulanguage] =>
a2billing.php|1|did: [force_language] => br
a2billing.php|1|did: [intro_prompt] =>
a2billing.php|1|did: [min_credit_2call] => 0
a2billing.php|1|did: [min_duration_2bill] => 0
a2billing.php|1|did: [notenoughcredit_cardnumber] =>
a2billing.php|1|did: [notenoughcredit_assign_newcardnumber_cid] =>
a2billing.php|1|did: [use_dnid] => 1
a2billing.php|1|did: [no_auth_dnid] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => 2400
a2billing.php|1|did: [1] => 2300
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [number_try] => 1
a2billing.php|1|did: [force_callplan_id] =>
a2billing.php|1|did: [say_balance_after_auth] =>
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
a2billing.php|1|did: [say_timetocall] =>
a2billing.php|1|did: [auto_setcallerid] =>
a2billing.php|1|did: [force_callerid] =>
a2billing.php|1|did: [cid_sanitize] =>
a2billing.php|1|did: [cid_enable] => 1
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] =>
a2billing.php|1|did: [cid_auto_assign_card_to_cid] =>
a2billing.php|1|did: [cid_auto_create_card] =>
a2billing.php|1|did: [cid_auto_create_card_len] => 10
a2billing.php|1|did: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1|did: [cid_auto_create_card_credit] => 0
a2billing.php|1|did: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1|did: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1|did: [callerid_authentication_over_cardnumber] => 1
a2billing.php|1|did: [sip_iax_friends] =>
a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 5
a2billing.php|1|did: [sip_iax_pstn_direct_call] =>
a2billing.php|1|did: [ivr_voucher] =>
a2billing.php|1|did: [ivr_voucher_prefix] => 8
a2billing.php|1|did: [jump_voucher_if_min_credit] =>
a2billing.php|1|did: [extracharge_did] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [extracharge_fee] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [extracharge_buyfee] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [international_prefixes] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => 011
a2billing.php|1|did: [1] => 00
a2billing.php|1|did: [2] => 09
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
a2billing.php|1|did: [switchdialcommand] =>
a2billing.php|1|did: [failover_recursive_limit] => 2
a2billing.php|1|did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1|did: [send_reminder] =>
a2billing.php|1|did: [record_call] =>
a2billing.php|1|did: [monitor_formatfile] => gsm
a2billing.php|1|did: [agi_force_currency] =>
a2billing.php|1|did: [currency_association] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => brl:reais
a2billing.php|1|did: [1] => usd:dollars
a2billing.php|1|did: [2] => mxn:pesos
a2billing.php|1|did: [3] => eur:euros
a2billing.php|1|did: [4] => all:credit
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1|did: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1|did: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1|did: [logger_enable] => 1
a2billing.php|1|did: [log_file] => /tmp/a2billing.log
a2billing.php|1|did: [currency_association_internal] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [brl] => reais
a2billing.php|1|did: [usd] => dollars
a2billing.php|1|did: [mxn] => pesos
a2billing.php|1|did: [eur] => euros
a2billing.php|1|did: [all] => credit
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [ivr_voucher_prefixe] => 8
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: file:a2billing.php - line:78 - IDCONFIG : 1
a2billing.php|1|did: file:a2billing.php - line:79 - MODE : did
a2billing.php|1|did: file:a2billing.php - line:91 - AGI Request:
a2billing.php|1|did: file:a2billing.php - line:92 - Array
a2billing.php|1|did: (
a2billing.php|1|did: [agi_request] => a2billing.php
a2billing.php|1|did: [agi_channel] => SIP/hello01-0860aa88
a2billing.php|1|did: [agi_language] => pt_BR
a2billing.php|1|did: [agi_type] => SIP
a2billing.php|1|did: [agi_uniqueid] => 1252954579.2055
a2billing.php|1|did: [agi_callerid] => hello01
a2billing.php|1|did: [agi_calleridname] => hello01
a2billing.php|1|did: [agi_callingpres] => 0
a2billing.php|1|did: [agi_callingani2] => 0
a2billing.php|1|did: [agi_callington] => 0
a2billing.php|1|did: [agi_callingtns] => 0
a2billing.php|1|did: [agi_dnid] => 3617
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => from-did
a2billing.php|1|did: [agi_extension] => 3617
a2billing.php|1|did: [agi_priority] => 1
a2billing.php|1|did: [agi_enhanced] => 0.0
a2billing.php|1|did: [agi_accountcode] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: file:Class.A2Billing.php - line:621 - get_agi_request_parameter = hello01 ; SIP/hello01-0860aa88 ; 1252954579.2055 ; ; 3617
a2billing.php|1|did: file:a2billing.php - line:334 - [NO ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:346 - [DID CALL - [CallerID=hello01]:[DID=3617]
a2billing.php|1|did: file:a2billing.php - line:358 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='3617' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
a2billing.php|1|did: file:a2billing.php - line:360 - Array
a2billing.php|1|did: file:Class.A2Billing.php - line:978 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:058013|destination:SIP/[email protected]|tariff:1)
a2billing.php|1|did:
a2billing.php|1|did: file:Class.A2Billing.php - line:1640 - 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='058013'
[Sep 14 15:56:19] WARNING[5828]: file.c:664 ast_openstream_full: File # does not exist in any format
a2billing.php|1|did: file:Class.A2Billing.php - line:989 - [A2Billing] DID call friend: AUTHENTICATION FAILS !!!
a2billing.php|1|did:
-- AGI Script a2billing.php completed, returning 0

Thank's


Top
 Profile  
 
 Post subject: Re: A2billing DID Implementation
PostPosted: Tue Sep 15, 2009 2:39 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
Anyone can Help me?


Top
 Profile  
 
 Post subject: Re: A2billing DID Implementation
PostPosted: Wed Sep 16, 2009 9:09 am 
Offline

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

You really have not explained what the problem is, and generally my heart sinks when i see a log file pasted into a forum entry, I prefer to see a concise explanation of the problem, with an attached text file of the log. Scrolling though lines and lines of log on the forum is just tedious. You have to help us, and make it easy to assess your problem if we are giving up our free time to help you.

Try rephrasing your question.

Joe


Top
 Profile  
 
 Post subject: Re: A2billing DID Implementation
PostPosted: Wed Sep 16, 2009 12:25 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
Hi Jroper

I want implement a DID Billing, so the scenario is:

Inbound DID --------------> a2billing.php|1|did --------------> A2billing client (SIP in this case).

I created all of things in the section DID (DID Group, DID associated a DID group, DID Destination in this case, an client of a2billing).

For help me, you need more anything?

Sorry if in the last post I don't correctly explained.

Regards


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


All times are UTC


Who is online

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