Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 4:26 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Issues with NAT
PostPosted: Mon Apr 14, 2014 9:56 am 
Offline

Joined: Fri Apr 11, 2014 5:14 am
Posts: 13
Hi there, I am new to the forum, so maybe I am posting this were I shouldn't, so please let me know if this topic does not belong here.

I have a network like the one in the picture (link here http://i59.tinypic.com/v7e1s3.png as I couldn't upload to the post), with the following configured:
- I have created users in A2billing and use their VoIP credentials in the ATAs, which successfully register with A2billing using Asterisk Realtime
- The asterisk in the A2billing server registers with the provider
- The Rate Engine in A2billing works as the simulator provides rate for given destinations
- The calls from the users get registered in A2Billing.
- The calls from the analogue phones go through as the end phone rings, and get registered in A2Billing for the given user (although as Cancelled)
- The calls appear registered in the provider's log and are billed according to its duration.

However, no sound is heard in any of the phones after picking up, and a2billing does not recognise any duration for the call. As said in the log they appear as CANCEL and 00:00 duration.

I have tried to reduce the complexity of the problem and set up a SIP client on a mobile phone, which registers to the asterisk in the A2Billing server. Although this client does not register to A2Billing (I don't know how to do so, :-S), the calls from it experience the same behaviour as above.

Googling about the problem, I have learnt that it is common problem related to a natted networks. I have tried including externip and localnet within the [general] context of the sip.conf of the asterisk in the A2Billing server, but this produces the asterisk lose registration from the SIP provider.

I know this question is more related to asterisk than to a2billing, but I was hoping that your experience could shed some light in this regard.

Best,

carlos


Top
 Profile  
 
 Post subject: Re: Issues with NAT
PostPosted: Mon Apr 14, 2014 10:47 am 
Offline

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

The best place for an A2Billing server is on a public IP address, not behind NAT.

However, the key to this is in the externip and localnet settingsm they are required, as well as setting NAT=yes for the extension.

Yours

Joe


Top
 Profile  
 
 Post subject: Re: Issues with NAT
PostPosted: Wed Apr 16, 2014 4:01 am 
Offline

Joined: Fri Apr 11, 2014 5:14 am
Posts: 13
Hi Joe,

Thanks for the answer. I managed to get hold of a USB dongle (obtaining a public) and set it up on the a2billing server. Then in the each asterisk in the Mesh Potato cloud I included localnet=10.130.1.0/255.255.255.255.0 and externip=0.0.0.0 and it worked. Now the audio works bidirectionally, and the calls are billed in a2billing.

We have an issue with the billing, as the call has been billed more than it should. I think it is a question of the currency (like some sort of exchange rate between usd and rands). We want everything to be in South African rands (credit and billing), but we may not have changed all the variables require for this. Do you which ones should we take into account?

Additionally, the time of the calls are reported to have happened 2 hours later than in reality. I have configured cdr.conf for not using gmt, and included a symbolic link form the time zone here to /etc/localtime ( ln -sf /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime ). The time for the calls logged in /var/log/asterisk/cdr-csv/Master.csv is the correct one, but the one in a2billing remains two hours more. Do you know what should I change in a2billing for the time to be logged properly?

Thanks in advance,

carlos


Top
 Profile  
 
 Post subject: Re: Issues with NAT
PostPosted: Sat Apr 19, 2014 7:39 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
For the currency you really want to set it before you do anything else - http://sysadminman.net/blog/2012/settin ... rency-4532

Changing the currency after creating rate cards can cause confusion.


Top
 Profile  
 
 Post subject: Re: Issues with NAT
PostPosted: Mon May 26, 2014 3:40 pm 
Offline

Joined: Fri Apr 11, 2014 5:14 am
Posts: 13
Cool! Setting the time and the currency before setting up the rate makes everything working fine. Thanks!


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


All times are UTC


Who is online

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