Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Apr 28, 2024 12:11 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Adding a new callback
PostPosted: Tue Feb 19, 2008 9:21 pm 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi :
Iam new to callback at A2Billing,I finished installing callback-daemon and now iam trying to add a new callback but not understand what should i enter in CHANNEL blank i tried SIP/127.0.0.1 but without any success STATUS shows error ,
My purpose is to get the caller id from zap(through access number) when caller calls and call back again through zap and ask him for a pin number.

I'll appreciate your help;
Wassim


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 9:44 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Hello Wassim

When a call comes in, send it the the [a2billing-all-callback] context. Make sure that you have at least 1 card in a2billing. Also, setup your callplan, ratecards, ...

If all of these are done, simply call the ZAP number and a2billing will hangup and callback.

Make sure that the phone you will be calling from do not block its callerid.


Top
 Profile  
 
 Post subject: not working
PostPosted: Tue Feb 19, 2008 10:23 pm 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi:
I did all what you have mentioned but when i try to call zap the agi hangup and didnt try to call back and hear is what i have in my callback configuration on a2billing and my extensios.conf :
UNIQUEID : 1234567
STATUS : Pending
CHANNEL : SIP/127.0.0.1 ;i guess the problem is hear
EXTEN : 1000
CONTEXT : a2billing-all-callback
PRIORITY : 1

extensions.conf:
[a2billing-all-callback]
exten => s,1,AGI(a2billing.php|1|all-callback)
exten => s,2,Hangup


Top
 Profile  
 
 Post subject: Re: not working
PostPosted: Wed Feb 20, 2008 7:23 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
wassim wrote:
UNIQUEID : 1234567


:shock: I have never seen such a "non-random" unique id. That indicates the beginning of a problem somewhere.

And yep, your channel seems to be wrong. That mean that your trunk settings needs to been corrected.

Cheers


Top
 Profile  
 
 Post subject: Re: Adding a new callback
PostPosted: Wed Feb 20, 2008 7:51 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
wassim wrote:
iam trying to add a new callback but not understand what should i enter in CHANNEL blank i tried SIP/127.0.0.1 but without any success STATUS shows error ,
Callback -> Add new callback is for advanced usage only; you shouldn't try to manually queue a callback like that.
wassim wrote:
My purpose is to get the caller id from zap(through access number) when caller calls and call back again through zap and ask him for a pin number.
Ensure you have a 'cid-callback' trigger number in extensions.conf, then call it. This example sends the trigger call into [agi-conf4] of a2billing.conf:
Code:
; CLI CALL BACK
exten => 441xxxxxxxxx,1,Goto(a2billing-cid-callback,${EXTEN},1)

[a2billing-cid-callback]
exten => _X.,1,Ringing
exten => _X.,n,DeadAGI(a2billing.php|4|cid-callback|) ;last parameter is the callback area code, if you need to add one to the received CLI
exten => _X.,n,Wait(3)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject: agi-conf4
PostPosted: Wed Feb 20, 2008 10:52 pm 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi all:
Thanks Stavros for your reply ,What i have in a2billing.conf is agi-conf1 and not agi-conf4 ,does it make a difference ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 11:06 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Which of your [agi-confX] sections you point it at is entirely up to you. I have many such sections in a2billing.conf, each with the appropriate settings for different purposes.


Top
 Profile  
 
 Post subject: cid-callback working well but not all-callback
PostPosted: Fri Feb 22, 2008 10:17 am 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi all:
cid-callback working well with me after i configured my callplan on admin web page , but also i've tried all-callback at he same callplan as cid-callback but not working,when calling any of my access number all-callback initiate and hangup without calling back me again. My purpose of all-callback is to authorize any CID and not just registered CIDs on my A2B.
Does all-callback has a different callplan or a different place to configure callplan than cid-callback.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 11:06 am 
Offline

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

For testing purposes only, simply take your inbound DID, and point it at the A2Billing-all-callback context instead of the a2billing-cid-callback context. If you have them configured in broadly the same way (e.g. same agi-conf etc), you should get the call-back.


When you are happy it is working, out it back to how it was.

You will then need to get another DID to run your all-callback service on.

Joe

Added after 9 minutes:

To clarify, on rereading, change the words cid-callback in your existing working set up to all-callback, just for testing purposes. It should just work, but prompt for a PIN.

Joe


Top
 Profile  
 
 Post subject: still not working
PostPosted: Fri Feb 22, 2008 1:25 pm 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi:
I pointed my zap to a2billing-all-callback context and i didnt change anything in my callplan
but its still not working , all-callback just hangup without calling me back, and hear is what i have in my extensions.conf and zapata.conf:
-extensions.conf:
[a2billing-all-callback]
exten => s,1,DeadAGI(a2billing.php|1|all-callback)
exten => s,2,Hangup
;
[a2billing-callback]
exten => 1000,1,AGI(a2billing.php|1|callback)
exten => 1000,2,Hangup

-zapata.conf:
signalling=fxs_ks
context=a2billing-all-callback
channel => 1-2

and hear is whats shown on my CLI:

-- Starting simple switch on 'Zap/1-1'
-- Executing [s@a2billing-all-callback:1] DeadAGI("Zap/1-1", "a2billing.php|1|all-callback") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1|all-callback: A2Billing AGI internal configuration:
a2billing.php|1|all-callback: Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [debug] => 1
a2billing.php|1|all-callback: [asterisk_version] => 1_2
a2billing.php|1|all-callback: [answer_call] => 1
a2billing.php|1|all-callback: [play_audio] => 1
a2billing.php|1|all-callback: [say_goodbye] =>
a2billing.php|1|all-callback: [play_menulanguage] =>
a2billing.php|1|all-callback: [force_language] =>
a2billing.php|1|all-callback: [intro_prompt] =>
a2billing.php|1|all-callback: [min_credit_2call] => 0
a2billing.php|1|all-callback: [min_duration_2bill] => 0
a2billing.php|1|all-callback: [notenoughcredit_cardnumber] => 1
a2billing.php|1|all-callback: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|1|all-callback: [use_dnid] =>
a2billing.php|1|all-callback: [no_auth_dnid] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [0] => 2400
a2billing.php|1|all-callback: [1] => 2300
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [number_try] => 3
a2billing.php|1|all-callback: [force_callplan_id] =>
a2billing.php|1|all-callback: [say_balance_after_auth] => 1
a2billing.php|1|all-callback: [say_balance_after_call] =>
a2billing.php|1|all-callback: [say_rateinitial] =>
a2billing.php|1|all-callback: [say_timetocall] => 1
a2billing.php|1|all-callback: [auto_setcallerid] => 1
a2billing.php|1|all-callback: [force_callerid] =>
a2billing.php|1|all-callback: [cid_sanitize] =>
a2billing.php|1|all-callback: [cid_enable] => 1
a2billing.php|1|all-callback: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1|all-callback: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1|all-callback: [cid_auto_create_card] =>
a2billing.php|1|all-callback: [cid_auto_create_card_len] => 10
a2billing.php|1|all-callback: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1|all-callback: [cid_auto_create_card_credit] => 0
a2billing.php|1|all-callback: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1|all-callback: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1|all-callback: [callerid_authentication_over_cardnumber] =>
a2billing.php|1|all-callback: [sip_iax_friends] =>
a2billing.php|1|all-callback: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1|all-callback: [sip_iax_pstn_direct_call] =>
a2billing.php|1|all-callback: [ivr_voucher] =>
a2billing.php|1|all-callback: [ivr_voucher_prefix] => 8
a2billing.php|1|all-callback: [jump_voucher_if_min_credit] =>
a2billing.php|1|all-callback: [extracharge_did] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [0] =>
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [extracharge_fee] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [0] =>
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [international_prefixes] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [0] => 011
a2billing.php|1|all-callback: [1] => 00
a2billing.php|1|all-callback: [2] => 09
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php|1|all-callback: [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
a2billing.php|1|all-callback: [switchdialcommand] =>
a2billing.php|1|all-callback: [failover_recursive_limit] => 2
a2billing.php|1|all-callback: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1|all-callback: [send_reminder] =>
a2billing.php|1|all-callback: [record_call] =>
a2billing.php|1|all-callback: [monitor_formatfile] => gsm
a2billing.php|1|all-callback: [agi_force_currency] =>
a2billing.php|1|all-callback: [currency_association] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [0] => usd:dollars
a2billing.php|1|all-callback: [1] => mxn:pesos
a2billing.php|1|all-callback: [2] => eur:euros
a2billing.php|1|all-callback: [3] => all:credit
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1|all-callback: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1|all-callback: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1|all-callback: [logger_enable] => 1
a2billing.php|1|all-callback: [log_file] => /tmp/a2billing.log
a2billing.php|1|all-callback: [currency_association_internal] => Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [usd] => dollars
a2billing.php|1|all-callback: [mxn] => pesos
a2billing.php|1|all-callback: [eur] => euros
a2billing.php|1|all-callback: [all] => credit
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: [ivr_voucher_prefixe] => 8
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: file:a2billing.php - line:76 - IDCONFIG : 1
a2billing.php|1|all-callback: file:a2billing.php - line:77 - MODE : all-callback
a2billing.php|1|all-callback: file:a2billing.php - line:89 - AGI Request:
a2billing.php|1|all-callback: file:a2billing.php - line:90 - Array
a2billing.php|1|all-callback: (
a2billing.php|1|all-callback: [agi_request] => a2billing.php
a2billing.php|1|all-callback: [agi_channel] => Zap/1-1
a2billing.php|1|all-callback: [agi_language] => en
a2billing.php|1|all-callback: [agi_type] => Zap
a2billing.php|1|all-callback: [agi_uniqueid] => 1203710950.6
a2billing.php|1|all-callback: [agi_callerid] => 03674263
a2billing.php|1|all-callback: [agi_calleridname] => unknown
a2billing.php|1|all-callback: [agi_callingpres] => 0
a2billing.php|1|all-callback: [agi_callingani2] => 0
a2billing.php|1|all-callback: [agi_callington] => 0
a2billing.php|1|all-callback: [agi_callingtns] => 0
a2billing.php|1|all-callback: [agi_dnid] => unknown
a2billing.php|1|all-callback: [agi_rdnis] => unknown
a2billing.php|1|all-callback: [agi_context] => a2billing-all-callback
a2billing.php|1|all-callback: [agi_extension] => s
a2billing.php|1|all-callback: [agi_priority] => 2
a2billing.php|1|all-callback: [agi_enhanced] => 0.0
a2billing.php|1|all-callback: [agi_accountcode] =>
a2billing.php|1|all-callback: )
a2billing.php|1|all-callback:
a2billing.php|1|all-callback: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 03674263 ; Zap/1-1 ; 1203710950.6 ; ; s
a2billing.php|1|all-callback: file:a2billing.php - line:555 - [MODE : ALL-CALLBACK - 03674263]
a2billing.php|1|all-callback: file:a2billing.php - line:559 - [HANGUP ALL CALLBACK TRIGGER]
-- AGI Script a2billing.php completed, returning 0
-- Hungup 'Zap/1-1'


Top
 Profile  
 
 Post subject: Finally its worked
PostPosted: Fri Feb 22, 2008 8:06 pm 
Offline

Joined: Wed Oct 31, 2007 12:33 am
Posts: 70
Location: Lebanon
Hi guys:
Finally its worked ,I went to a2billing.conf and found the 'all_callback_tariff= 1' setting and i changed it to the number of my callplan on the WebUI.
And its worked great ,When i called my access number, 'all-callback' initialized and got my CID and hangup ,and then its called back me and requested for a pin number.


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 19 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