Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 12:01 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: calllback with a2billing 1.6
PostPosted: Wed Apr 14, 2010 6:40 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
Hi System config is as bellow

asterisk vertion = 1.6
a2billing vertion = 1.6

my callback context is as belllow


exten => 442034117245,1,deadAGI(a2billing.php,1,cid-callback,34)
exten => 442034117245,n,Hangup2


my calling card works well and i am trying to setup callback. when i call the callback DID i get the following message all times. what have i done wwrong. please help me


-- Executing [442034117245@from-sip-external:2] DeadAGI("SIP/204.11.194.35-08c21d68", "a2billing.php,1,cid-callback,34") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- <SIP/204.11.194.35-08c21d68>AGI Script a2billing.php completed, returning -1


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Wed Apr 14, 2010 7:06 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Do you really want to add 34 onto the callback number?

exten => 442034117245,1,deadAGI(a2billing.php,1,cid-callback,34)

Joe


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Wed Apr 14, 2010 7:28 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
i even tried exten => 442034117245,1,deadAGI(a2billing.php,1,cid-callback), that is not working as well without the 34 same error


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Thu Apr 15, 2010 2:28 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Change your verbosity in agi-conf1 to 4 and post Cli log here
that could give you an idea what is going on

it works okay for me

Asterisk, 1.6.2
A2billing, 1.7


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Thu Apr 15, 2010 5:18 am 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
Hi renatofb

TAHNK YOU VERYMUCH FOR YOUR REPLY IT WAS VERY HELPFUL. THANKS AGAIN.

the Debug is as bellow, i think the error is that the CLI is not added to a client, how come it is not asking for the pin number if the cli is not added, i want it to ask for a pin number. then authenticate and call back.



==============================================

-- Executing [1234@a2test:1] DeadAGI("SIP/2000-b769cb70", "a2billing.php,1,cid-callback") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:599 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:600 - uniqueid: - Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)
a2billing.php,1,cid-callback: [description] => agi-config
a2billing.php,1,cid-callback: [asterisk_version] => 1_6
a2billing.php,1,cid-callback: [answer_call] => 1
a2billing.php,1,cid-callback: [play_audio] => 1
a2billing.php,1,cid-callback: [say_goodbye] => 0
a2billing.php,1,cid-callback: [play_menulanguage] => 0
a2billing.php,1,cid-callback: [force_language] =>
a2billing.php,1,cid-callback: [intro_prompt] =>
a2billing.php,1,cid-callback: [min_credit_2call] => 0
a2billing.php,1,cid-callback: [min_duration_2bill] => 0
a2billing.php,1,cid-callback: [notenoughcredit_cardnumber] => 0
a2billing.php,1,cid-callback: [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php,1,cid-callback: [use_dnid] => 0
a2billing.php,1,cid-callback: [no_auth_dnid] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => 2400
a2billing.php,1,cid-callback: [1] => 2300
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [number_try] => 3
a2billing.php,1,cid-callback: [force_callplan_id] =>
a2billing.php,1,cid-callback: [say_balance_after_auth] => 1
a2billing.php,1,cid-callback: [say_balance_after_call] => 0
a2billing.php,1,cid-callback: [say_rateinitial] => 0
a2billing.php,1,cid-callback: [say_timetocall] => 1
a2billing.php,1,cid-callback: [auto_setcallerid] => 0
a2billing.php,1,cid-callback: [force_callerid] =>
a2billing.php,1,cid-callback: [cid_sanitize] => 0
a2billing.php,1,cid-callback: [cid_enable] => 1
a2billing.php,1,cid-callback: [cid_askpincode_ifnot_callerid] => 1
a2billing.php,1,cid-callback: [failover_lc_prefix] => 0
a2billing.php,1,cid-callback: [cid_auto_assign_card_to_cid] => 1
a2billing.php,1,cid-callback: [callerid_authentication_over_cardnumber] => 0
a2billing.php,1,cid-callback: [sip_iax_friends] => 0
a2billing.php,1,cid-callback: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1,cid-callback: [sip_iax_pstn_direct_call] => 0
a2billing.php,1,cid-callback: [ivr_voucher] => 1
a2billing.php,1,cid-callback: [ivr_voucher_prefix] => 8
a2billing.php,1,cid-callback: [jump_voucher_if_min_credit] => 0
a2billing.php,1,cid-callback: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php,1,cid-callback: [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000)
a2billing.php,1,cid-callback: [switchdialcommand] => 0
a2billing.php,1,cid-callback: [failover_recursive_limit] => 2
a2billing.php,1,cid-callback: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1,cid-callback: [send_reminder] => 0
a2billing.php,1,cid-callback: [record_call] => 0
a2billing.php,1,cid-callback: [monitor_formatfile] => gsm
a2billing.php,1,cid-callback: [agi_force_currency] =>
a2billing.php,1,cid-callback: [currency_association] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => usd:dollars
a2billing.php,1,cid-callback: [1] => mxn:pesos
a2billing.php,1,cid-callback: [2] => eur:euros
a2billing.php,1,cid-callback: [3] => all:credit
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [local_dialing_addcountryprefix] => 0
a2billing.php,1,cid-callback: [max_call_call_2_did] => 3600
a2billing.php,1,cid-callback: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php,1,cid-callback: [conf_order_menulang] => en:fr:es
a2billing.php,1,cid-callback: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1,cid-callback: [international_prefixes] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => 011
a2billing.php,1,cid-callback: [1] => 00
a2billing.php,1,cid-callback: [2] => 09
a2billing.php,1,cid-callback: [3] => 1
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [extracharge_did] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => 1800
a2billing.php,1,cid-callback: [1] => 1900
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [extracharge_fee] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => 0
a2billing.php,1,cid-callback: [1] => 0
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [extracharge_buyfee] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [0] => 0
a2billing.php,1,cid-callback: [1] => 0
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [maxtime_tounlimited_calls] => 5400
a2billing.php,1,cid-callback: [maxtime_tofree_calls] => 5400
a2billing.php,1,cid-callback: [callplan_deck_minute_threshold] =>
a2billing.php,1,cid-callback: [disable_announcement_seconds] => 0
a2billing.php,1,cid-callback: [verbosity_level] => 4
a2billing.php,1,cid-callback: [logging_level] => 3
a2billing.php,1,cid-callback: [dial_balance_reservation] => 0.25
a2billing.php,1,cid-callback: [callerid_update] => 0
a2billing.php,1,cid-callback: [cid_auto_create_card] => 0
a2billing.php,1,cid-callback: [cid_auto_create_card_len] => 10
a2billing.php,1,cid-callback: [cid_auto_create_card_typepaid] => PREPAID
a2billing.php,1,cid-callback: [cid_auto_create_card_credit] => 0
a2billing.php,1,cid-callback: [cid_auto_create_card_credit_limit] => 0
a2billing.php,1,cid-callback: [cid_auto_create_card_tariffgroup] => 1
a2billing.php,1,cid-callback: [busy_timeout] => 1
a2billing.php,1,cid-callback: [callback_reduce_balance] => 1
a2billing.php,1,cid-callback: [logger_enable] => 1
a2billing.php,1,cid-callback: [log_file] => /var/log/a2billing/a2billing.log
a2billing.php,1,cid-callback: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php,1,cid-callback: [currency_association_internal] => Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [usd] => dollars
a2billing.php,1,cid-callback: [mxn] => pesos
a2billing.php,1,cid-callback: [eur] => euros
a2billing.php,1,cid-callback: [all] => credit
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: [file_conf_enter_menulang] => prepaid-menulang
a2billing.php,1,cid-callback: [ivr_voucher_prefixe] => 8
a2billing.php,1,cid-callback: [cheat_on_announcement_time] => 0
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1
a2billing.php,1,cid-callback: file:a2billing.php - line:103 - uniqueid: - MODE : cid-callback
a2billing.php,1,cid-callback: file:a2billing.php - line:120 - uniqueid: - AGI Request:
a2billing.php,1,cid-callback: Array
a2billing.php,1,cid-callback: (
a2billing.php,1,cid-callback: [agi_request] => a2billing.php
a2billing.php,1,cid-callback: [agi_channel] => SIP/2000-b769cb70
a2billing.php,1,cid-callback: [agi_language] => en
a2billing.php,1,cid-callback: [agi_type] => SIP
a2billing.php,1,cid-callback: [agi_uniqueid] => 1271308120.944
a2billing.php,1,cid-callback: [agi_version] => 1.6.0.10-FONCORE-r40
a2billing.php,1,cid-callback: [agi_callerid] => 2000
a2billing.php,1,cid-callback: [agi_calleridname] => device
a2billing.php,1,cid-callback: [agi_callingpres] => 0
a2billing.php,1,cid-callback: [agi_callingani2] => 0
a2billing.php,1,cid-callback: [agi_callington] => 0
a2billing.php,1,cid-callback: [agi_callingtns] => 0
a2billing.php,1,cid-callback: [agi_dnid] => 1234
a2billing.php,1,cid-callback: [agi_rdnis] => unknown
a2billing.php,1,cid-callback: [agi_context] => a2test
a2billing.php,1,cid-callback: [agi_extension] => 1234
a2billing.php,1,cid-callback: [agi_priority] => 1
a2billing.php,1,cid-callback: [agi_enhanced] => 0.0
a2billing.php,1,cid-callback: [agi_accountcode] =>
a2billing.php,1,cid-callback: [agi_threadid] => 143944592
a2billing.php,1,cid-callback: [agi_arg_1] => 1
a2billing.php,1,cid-callback: [agi_arg_2] => cid-callback
a2billing.php,1,cid-callback: )
a2billing.php,1,cid-callback:
a2billing.php,1,cid-callback: file:a2billing.php - line:122 - uniqueid: - [INFO : A2Billing - Version 1.7.0 (Larch)]
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:713 - uniqueid:1271308120.944 - get_agi_request_parameter = 2000 ; SIP/2000-b769cb70 ; 1271308120.944 ; ; 1234
a2billing.php,1,cid-callback: file:a2billing.php - line:711 - uniqueid:1271308120.944 - [MODE : CALLERID-CALLBACK - 2000]
a2billing.php,1,cid-callback: file:a2billing.php - line:714 - uniqueid:1271308120.944 - [HANGUP CLI CALLBACK TRIGGER]
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:2355 - uniqueid:1271308120.944 - [CID_ENABLE - CID_CONTROL - CID:2000]
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:2370 - uniqueid:1271308120.944 -
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:2374 - uniqueid:1271308120.944 - [CID_CONTROL - NO CALLERID]
a2billing.php,1,cid-callback: file:Class.A2Billing.php - line:2577 - uniqueid:1271308120.944 - - Account code ::>
a2billing.php,1,cid-callback: file:a2billing.php - line:729 - uniqueid:1271308120.944 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1,cid-callback: file:a2billing.php - line:862 - uniqueid:1271308120.944 - [CALLBACK-CALLERID : CALLED= | Authentication failed]
-- <SIP/2000-b769cb70>AGI Script a2billing.php completed, returning -1


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Thu Apr 15, 2010 7:35 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
CID callback will only call back if the CallerID is present. This saves you money in wasted callbacks.

If you want the system to always callback when you dial the trigger number, use the all-callback setting.

Joe


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Thu Apr 15, 2010 10:43 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Just adding Joe's comment,
you either configuration, assign callerID and ask for PIN code are enabled in the agi-conf options.
Just enable or disable them according to the behavior you want.

Renato


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Thu Apr 15, 2010 11:21 pm 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Quote:
CID callback will only call back if the CallerID is present.


and to add you can manipulate the caller id depending on how the CID is received in your box

my setup

Quote:
[cid-callback-UK]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=0044${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|3|cid-callback|) ;last parameter is the callback area code
exten => _X.,n,Hangup


will strip incoming numbers or leading digits and set caller ID format for UK
make sure your rate table is compatible.

search for a good thread posted by Stavros on a real world dial examples.

Rgds
Eamonn

http://www.eatelco.com
http://www.eatelcommunity.com


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sat Apr 17, 2010 5:56 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
Hi Guys thankyou verymuch for your replies and GR8 help, i am going to test it now with all callback setting, i will update you the results after testing.


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sun Apr 18, 2010 5:08 am 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
which callplan will it use for calling if i use all callback, right now i am getting the following error.

Error : There is no route to call back your phonenumber !!!]

which call plan shall i use, what call plan or trunks will it use for all call back when i do not have the CLI in the system


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sun Apr 18, 2010 1:09 pm 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Quote:
which callplan will it use for calling if i use all callback

Check your Global settings under callback
Code:
Callback CallPlan ID all_callback_tariff


Quote:
Error : There is no route to call back your phonenumber !!!]

Make sure the CLI matches the rate card, if you have for example 44777xxxx on the rate table then CLI needs to be recieved as 44777XXX not 0044777xxxx
Code:
exten => _X.,n,Set(CALLERID(num)=44${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})


Quote:
what call plan or trunks will it use for all call back when i do not have the CLI in the system

How can a system call an uknown number? :shock: :shock:

Rgds
Eamonn

http://www.eatelco.com
http://www.eatelcommunity.com


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sun Apr 18, 2010 6:01 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
tks mate


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sun Apr 18, 2010 6:42 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
now it get inserted in to callback, but it's always error, the call is not going to the terminating end.

on asterisk CLI it shows
== Manager 'myasterisk' logged off from 127.0.0.1
== Manager 'myasterisk' logged on from 127.0.0.1

a2b-callback-daemon/log shows
"2010-04-18 16:08:37,599 - root - MainThread - INFO - waiting..."
"2010-04-18 16:08:37,610 - root - MainThread - INFO - [<callback_daemon.database.CallBack_Spool object at 0xb79b95ac>]"
"2010-04-18 16:08:37,624 - root - MainThread - INFO - try_originate : SIP/208.38.165.74/442082114678 : 1000 : a2billing-callback"
"2010-04-18 16:08:37,626 - root - MainThread - INFO - CallBack Status : Error"
"2010-04-18 16:08:37,636 - root - MainThread - INFO - [2010/04/18 16:08:37] Placed 14 calls"
"2010-04-18 16:08:42,637 - root - MainThread - INFO - waiting..."




FILTER ON UNIQUEID :
ID UNIQUEID ENTRY TIME STATUS SERVER IP NA AR CALLBACK TIME LAST_ATTEMPT CHANNEL CONTEXT SERVER ACTION
47 57854-vkcz01y 2010-04-18 14:29:06 ERROR localhost 1 Error 2010-04-18 14:29:16 2010-04-18 14:29:17 SIP/208.38.165.74/442082114678 a2billing-callback


i have set the call back context as bellow

[a2billing-callback]
exten => _X.,1,deadAGI(a2billing.php,1,callback)
exten => _X.,n,Hangup

asterisk manager username and password is also correct

it does not work when i use s insted of _X.

[a2billing-callback]
exten => s,1,deadAGI(a2billing.php,1,callback)
exten => s,n,Hangup


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Sun Apr 18, 2010 8:56 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
it started working when i change the manager setting for myasterisk user from. it is working now, i will keep you guys posted

read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

to:

read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = system,call,agent,user,config,command,reporting,originate


Top
 Profile  
 
 Post subject: Re: calllback with a2billing 1.6
PostPosted: Mon Apr 19, 2010 5:50 am 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
hi
now i get the call back call, but when i enter the pin number it says, no card number has been entered and please enter your pin number. i think it's something to do with the DTMF. what DTMF type is needed for this and how do i set it ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

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