Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 12:54 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: callback dont billed first leg
PostPosted: Fri Feb 13, 2009 11:34 am 
Offline

Joined: Thu Feb 12, 2009 9:08 am
Posts: 7
asterisk 1.4 + a2billing 1.3.4
Dont billed first leg :(
Here my config files


Code:
; CURRENCY SECTION
; Define all the audio (without file extensions) that you want to play according to currency (use , to separate, ie "usd:prep
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit

; Please enter the file name you want to play when we prompt the calling party to enter the destination number
; file_conf_enter_destination = prepaid-enter-number-u-calling-1-or-011
file_conf_enter_destination = prepaid-enter-dest

; Please enter the file name you want to play when we prompt the calling party to choose the prefered language
; file_conf_enter_menulang = prepaid-menulang
file_conf_enter_menulang = prepaid-menulang2

; Define if you want to bill the 1st leg on callback even if the call is not connected to the destination
callback_bill_1stleg_ifcall_notconnected = YES




Code:

$charge_callback = 1;

if ($callback_mode=='CID'){
                $charge_callback = 1;
                $A2B->agiconfig['use_dnid'] = 0;
                $A2B->agiconfig['number_try'] =1;
                $A2B->CallerID = $called_party;


Code:

[a2billing-cb]                                                  ;CallBack CallingCard application Ukraine
exten => s,1,Ringing
exten => s,2,Wait(5)
exten => s,3,Set(CALLERID(num)=${IF($[${LEN(${CALLERID(num)})} = 11]?3${CALLERID(num)}:${CALLERID(num):3})})
exten => s,4,DeadAGI(a2billing.php|1|cid-callback|)
exten => s,5,Wait(2)
exten => s,6,Hangup


What i need to do?
Help me please with this problem


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2009 10:38 am 
Offline

Joined: Thu Feb 12, 2009 9:08 am
Posts: 7
thanks for help :)
I resolve this problem


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 10, 2009 2:05 pm 
Offline

Joined: Thu Feb 12, 2009 9:08 am
Posts: 7
in extensions.conf of my asterisk i have:
[a2billing-callback] ;Callback - first leg
exten => 1234,1,AGI(a2billing.php)
exten => 1234,n,Hangup

Im change this to:
[a2billing-callback] ;Callback - first leg
exten => 1234,1,AGI(a2billing.php|1|callback)
exten => 1234,n,Hangup

and its work fine. First leg of call-back billed in a2billing

Ask me if you dont anderstand or you have problems like im have.
I will help you if i know :)


Top
 Profile  
 
 Post subject: Re: callback dont billed first leg
PostPosted: Mon Jun 29, 2009 1:39 pm 
Offline

Joined: Mon Jun 15, 2009 4:14 pm
Posts: 17
Hey baall, could you help me? I had mentioned my problem on the post ( viewtopic.php?f=7&t=5744 ) . It's about the same problem that you had.

Help me please.

Regards

Ricardo


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


All times are UTC


Who is online

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