Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 27, 2024 2:19 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: hacking the dialstr, experimenting with local channels
PostPosted: Fri Feb 01, 2008 4:35 am 
Offline

Joined: Wed Jan 23, 2008 10:21 am
Posts: 15
I've been experimenting with using local channels in the dial plan which opens up some interesting possibilities with A2B.

If you want to simultaneously dial several numbers for a user (home, office, cell) through A2Billing, it's a little tricky as things stand at the moment.

One solution is to modify the Class.RateEngine.php file, where the dialstring is set, to pass through some additional params:

Code:
   $dialstr = "$tech/$prefix$destination@$ipaddress".$dialVOIP.$dialparams;


For example to dial iax2 user rodney, you could pass through:
Code:
&iax2/rodney


I've tried this, and it works fine.

However by passing through a local channel further possibilities are opened up, e.g.

Code:
local/03456789@a2billing


This will start a second call out on a local channel (i.e. now we have two A2Billing calls going out). When the first call is answered, the second will terminate (or visa versa) so only one of them will end up being charged.

One would have to allow multiple simultaneous calls on the account.

~ Rodney


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 10:58 am 
Offline

Joined: Wed Jan 23, 2008 10:21 am
Posts: 15
Tested this tonight. It works.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 9:27 am 
Offline

Joined: Tue Aug 07, 2007 6:46 pm
Posts: 19
hi rodneyt,

could you provide more informatin about your experience using local channels?

I'm trying to use them, but a2billing doesn't want to bill them acordingly :(

http://forum.asterisk2billing.org/viewtopic.php?t=3185

paco


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 44 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