Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 12:30 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Account Code Survival
PostPosted: Thu Apr 12, 2012 10:03 pm 
Offline

Joined: Thu Apr 12, 2012 9:49 pm
Posts: 1
Hi,

I'm not sure if this has been covered somewhere else, but I've searched and can't find the answer. I'm also new to A2 billing.

First, this is what I'm trying to do: I run a couple of PIAF freepbx machines. I want to put an A2 billing machine in front of them for call rating and LCR. So far so good, I have a trunks set up between the PIAf boxes and the A2 box processes the calls in a wholesale type set up using account code for authentication. Currently I can set the account code at the trunk and everything works ok.

What I want to do is set account codes per extension and have the account code pass over the trunk and to the A2 box. So far I can't figure out how to get the account code to survive the process of going over the trunk to the a2 box.

I have seen some people say prefix the dialed number with the account code and strip it out on the otherside, but I am not sure on how to do this without mucking up the freepbx dial plan.

Any suggestions would be very much appreciated.


Top
 Profile  
 
 Post subject: Re: Account Code Survival
PostPosted: Mon Sep 03, 2012 7:48 pm 
Offline

Joined: Mon Sep 03, 2012 7:45 pm
Posts: 10
I dont think there is any other option, I am doing the same at this very moment.
In short, this is probably what has to be done:

exten => _X*XXXXXXXXX,1,Set(numer=${EXTEN:-9})
exten => _X*XXXXXXXXX,n,Set(CDR(accountcode)=${EXTEN:0:1})
exten => _X*XXXXXXXXX,n,Dial(${Port}/${numer},60,rW)
exten => _X*XXXXXXXXX,104,Hangup

in the above example I am assuming that the accuntcode is 1 digit, if it has to be 10 digits, just make the exten:
_XXXXXXXXXX*XXXXXXXXX,etc...
and ofcourse: Set(CDR(accountcode)=${EXTEN:0:10})

Marcin


Top
 Profile  
 
 Post subject: Re: Account Code Survival
PostPosted: Wed Sep 05, 2012 8:39 am 
Offline

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

I don't have the exact code to hand, but you can put the accountcode in the SIP header, and then extract it out at the other end.

Here's a post on the subject. - http://www.freepbx.org/forum/freepbx/ge ... via-trunks

Joe


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


All times are UTC


Who is online

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