Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 9:57 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: a2billing rates
PostPosted: Thu Oct 29, 2009 1:35 am 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
People I need help. I'm with a2billing in Ubuntu server working correctly.

But I can't configure it to work as follows:

I need to dial 0yyxxxxxxxx the rate has to be 55yy and I have to send to the trunk 0yyxxxxxxxx

I set the trunk to remove the 0 and add the 55 but then he does not find the fare.

In older versions it works but in 1.4 it doesn't.


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 6:06 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
Please write exatcly what your clints have to dial, e.g 0044xxx
and write in which format your provider wants to have the datas.

Cheers
Skiller


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 1:12 pm 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
My clientes have dial 0yyxxxxxxxx and my provider require de same format but i need the rates in international format ex: 55yyxxxxxxxx

tranks

Leandro


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 1:35 pm 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
Is this an international format 55yyxxxxxxxx ???????

Write the number in digits not in letters, make an example with an UK number


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 3:47 pm 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
Sorry, I`dont know the UK format.

The international format from Brasil is 55(contry code)+11(city code)+number.

I need create de rate in this format:

55115687 , 55(brasil country code) 11 (São Paulo city code) 5687 (prefix that a fixed number)

But the client dials 0115687 and I need send to provider in the same format 0115687

Trank`s for you help


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 5:12 pm 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
Create or import your rates in this format, see attached file. It should work. If not set the verbose level from
your Asterisk to 4 and send me the records from your CLI

Cheers
Skiller


Attachments:
ast.jpg
ast.jpg [ 161.98 KiB | Viewed 11022 times ]
Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 5:14 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
So put 0115687 as the rate, and don't strip the international dialcode off in the callplan.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 5:21 pm 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
Yes in this format work fina but I need that rates in the international format is possible?

The client send 011 and the rate is 5511.


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 5:25 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
In which case, a little astersk dialplan work to manipulate the dialled digits before sending them into A2Billing is what is required.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 5:47 pm 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
exten => OXXX.,1,Dial(SIP/55${EXTEN:1}@YourProvider,40,trg)

or add the Prefix in the trunk section 55

Cheers


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 6:19 pm 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
Yes, I think that it can work with a manipulation in the asterisk digit

but how can I use the variable $(EXTEN) to send to the a2billing AGI and not directly to the trunk?


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Thu Oct 29, 2009 6:22 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Manipulate the digits in one context, then goto CONTEXT,EXTENSION,PRIORITY
e.g. goto a2billing,${covertedtdigits},1

Joe


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Fri Oct 30, 2009 5:53 pm 
Offline

Joined: Thu Oct 29, 2009 1:28 am
Posts: 6
Trank`s for help! It`s work now with simple manipulation digits:


[a2billing]
exten => _0xx.,1,Set(number=55${EXTEN:1})
exten => _0xx.,2,Goto(goa2billing,${number},1)

exten => _00xx.,1,Set(numberinter=${EXTEN:2})
exten => _00xx.,2,Goto(goa2billing,${numberinter},1)

exten => _55210xxx,1,Dial(SIP/${EXTEN}@jntech,r)

[goa2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup


Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Mon Dec 14, 2009 1:31 am 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
HI,

I do have the same problem I have to send 011 prefix to my provider.

Here is my configuration.

User.config

[IP Communications]
;context = DID_IP Communications
context = a2billing
host = XXX.XXX.XXX.XXX
username =
secret =
trunkname = IP Communications ; GUI metadata
hasiax = no
registeriax = no
hassip = yes
registersip = yes
trunkstyle = voip
hasexten = no
insecure = no
disallow = all
allow = ulaw,alaw,gsm

extenstions.coj
.
.
.
[a2billing]
include = a2billing_default
.
.
.
[a2billing_default]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,AGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

Now for outbound calls to my provider
.
.
.
[DID_VOIPProvider]
include = DID_VOIPProvider_default
.
.


[CallingRule_International]
exten = _011XXXXX.,1,Macro(trunkdial-failover-0.3,${VOIPProvider}/${EXTEN:0},,VOIPProvider,VOIPProvider)
.
.

and on my failovertrunk I have the dial() as follow

exten = 1-dial,1,Dial(${ARG1},,L(180000:120000:30000))

Also, in my prefix configuration I do have to add 011.

Any Ideas how to pass 011 from a2billing. If I cal from another trunk the international call rules works fine.

Best regards,

AL


Last edited by aberrio on Mon Dec 14, 2009 8:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: a2billing rates
PostPosted: Mon Dec 14, 2009 8:35 pm 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
HI,

Any ideas how to add 011? I had follow all information on this issues without luck.
Regards,

AL


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Predictive Dialer


All times are UTC


Who is online

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