Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 4:18 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: cid-callback vs all-callback
PostPosted: Wed Mar 19, 2008 9:50 am 
Offline

Joined: Wed Mar 19, 2008 9:30 am
Posts: 6
Location: France
Hi !

I'm new using A2Billing and it's a very great software !

I'm currently testing cid-callback and all-callback and i have a question.

cid-callback extension authenticate Caller ID. If Authentication is OK the system callback the CallerID and say balance, etc, etc ... However using this context if the CallerID is not regsitered in the database, the system never callback the Caller ID.

all-callback, always callback the Caller ID. Great ! But even if the Caller ID is registered in the database, the server asks for the PIN.

Do you know if there is a special issue whitch permit to:
- If callerID unknown, the server callback and ask for the PIN
- If callerID known, the server callback, say balance and etc ...

I know that is possible using with these 2 differents contexts in extensions.conf, but i have only one incoming number to reach the server.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 12:07 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
It's not possible to achieve what you want without modifications to A2Billing. I believe the most simple way to accomplish this would be to modify cli-callback so it sets a channel variable indicating whether or not it successfully queued a callback. Then, after the cli-callback trigger has finished, in the Asterisk dialplan check for this variable and if it's not set call A2Billing in all-callback mode.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 12:33 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Well, and to expand upon this concept, what about a prompt after a successful pin entry asking if this number should be added to their account so that future calls will know this number is attached to this PIN


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 1:01 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
With the exception of the prompt (which would be trivial to add), you can achieve that with A2B as it stands. Rafael was doing it, and discovered a small bug in it which we fixed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 1:24 pm 
Offline

Joined: Wed Mar 19, 2008 9:30 am
Posts: 6
Location: France
krzykat wrote:
Well, and to expand upon this concept, what about a prompt after a successful pin entry asking if this number should be added to their account so that future calls will know this number is attached to this PIN


The configuration i have regarding CallerID in a2billing.conf are :

cid_enable = YES
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = NO

I modify cid_auto_assign_card_to_cid to YES

I try a first time and the systems ask for the PIN.
On the 2nd try, stay same, the system still ask the PIN.
I check on the database too and the CallerID has not been inserted ...

@stavros : do you mean cid-callback for cli-callback ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 2:08 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
macagoule wrote:
On the 2nd try, stay same, the system still ask the PIN.
Your configuration looks good. Can you confirm you're editing the [agi-confX] section used by the [callback] context, as I believe this is the one that will be adding the CLI, not [cid-callback].
Quote:
@stavros : do you mean cid-callback for cli-callback ?
Yes you're quite right. I've evidently been slacking and permitted a little blood to sneak into my caffeine-stream. I shall rectify this immediately.
:laugh:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 4:07 pm 
Offline

Joined: Wed Mar 19, 2008 9:30 am
Posts: 6
Location: France
Stavros, i confirm you the use of agi-conf1 and the use of
a2billing.php|1|all-callback ; I only need one profile.

I try the configuration with a2billing context (a2billing.php|1) on a
SIP account and is runs well. It means i call the server, if CID is
known, there is no need to enter a PIN, else the server asks for the PIN.

Moreover with my last change in a2billing.conf (cid_auto_assign_card_to_cid=YES )
it seems the CallerID saved in the database and for the next
call the cid authentication is Ok.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 4:27 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Which indicates the problem is outside A2Billing. Are you sure your carrier is presenting CLI, and is it in the format you are expecting?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 20, 2008 8:24 am 
Offline

Joined: Wed Mar 19, 2008 9:30 am
Posts: 6
Location: France
Yes i'm sure of that, the carrier return me the good CallerID

I try to perform the same test with the sip account.
I force the CallerID in sip.conf file and try with cid-callback
and all-callback contexts. The problem stay the same ...

It seems a2billing.php do not use the same values indicated in
a2billing.conf when using default context or all-calback context.

I think i have to change the all-callback section or maybe the
cid-callback section in the script. What do you think about that ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 20, 2008 4:57 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
macagoule wrote:
It seems a2billing.php do not use the same values indicated in a2billing.conf when using default context or all-calback context.
That depends on which [agi-confX] section the callback contexts are using. As you've set them all to use [agi-conf1], they should all be using the same settings. What exactly did you mean? You did remember to 'extensions reload' in Asterisk, right?
Quote:
I think i have to change the all-callback section or maybe the
cid-callback section in the script. What do you think about that ?
I can't offer any suggestions unless you describe what modifications you are intending to make. Personally I would rather establish what the problem is before trying to fix it. I think perhaps a clue might be found in a2billing_agi.log.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 21, 2008 9:59 am 
Offline

Joined: Wed Mar 19, 2008 9:30 am
Posts: 6
Location: France
I mean the use of all-callback context does not use ALL options
in the agi-confX section. I think when all-callback context has been
called, the script read the file but doest not matter for the some
option and specially for CallerID section ...

I do not understand why CallerID authentication works when calling
a2billing.php|1| (does not callback, of course) and a2billing.php|1|all-callback
always asks for PIN -without modification of a2billing.conf-

Added after 1 hours 52 minutes:

I found the solution i perform some tests and it runs well.
Using all-callback the server can perform CallerID authentication
and asks for PIN if CallerID unknown :D :D

To do this i change this code is a2billing.php script :

Line 638 :
Change : $callerid = $A2B -> config["callback"]['callerid'];
To : $callerid = $A2B -> CallerID;


Line 730 :
Change : $A2B->agiconfig['cid_enable'] =0;
To : $A2B->agiconfig['cid_enable'] =1;

First, i change line 730 and i see the server try to authenticate 123456
CallerID, i just modify then the CallerID in ALL-CALLBACK section in
order tu use the CallerID from Phone number and not from agi
configuration. I perform tests for billing and both legs bill correctly.

I'happy to find this fine tuning and i hope this helps some other people !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group