Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 3:00 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Follow-me billing with a2billing and FreePBX
PostPosted: Sun Dec 18, 2011 9:18 pm 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello,

I have a2billing 1.9.4 set up with FreePBX 2.9 and asterisk 1.8.
Everything works well and the system is generally very flexible.

I seem to have hit the wall on a specific matter.
This is the scenario:

I have extensions set up in FreePBX (and the corresponding account in a2billing). When my FreePBX users dial out (trunk), they get billed via a2billing, this works great.
I have set up follow-me on some of the FreePBX extensions to forward calls to their mobile phone. The follow-me is set up as "NUMBER#" which tells asterisk to dial NUMBER on an external trunk.
The follow-me is then billed via a2billing, but not correctly.

Example:
Extension 4004 has a follow-me defined to 007873927937#.
Extension 4001 calls 4004. 4004 is not there and the call is forwarded to 007873927937 where the call is picked up.
Since 4001 made the call, "4001" (and the corresponding accountcode) is passed to a2billing and 4001 is charged for the call, which is wrong.

This is of course very bad if someone external is calling 4004 since they are then asked by a2billing to "enter pin number" once the follow-me kicks in (since their callerid does not have an account with a2billing)


Potential workaround:
I could of course define the follow-me for 4004 such that "4004" (and its accountcode) is always passed to a2billing in case of a follow-me.
However, this would mean that I would remove any caller ID (as 4004 would show up on the mobile rather than the person actually calling)

Goal:
All follow-me charges is to be billed to the extension where the follow-me is defined.
CallerID shows up correctly during a follow-me.


Any help in this would be greatly appreciated.


With kind regards,

Bjorn


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Dec 19, 2011 2:58 pm 
Offline

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

If you are using the accountcode for authentication, along with the Pre-dial hook in FreePBX, we can provide an accountcode preserve module for FreePBX that maintains the accountcode for follow me, VMX locator etc. The cost to install and demonstrate how to use it is usually one hour.

Joe Roper
Commercial Director
[email protected]


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 1:14 pm 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello,

Thanks for your reply and for your advice.

I have, however, chosen to implement a solution in a2billing.
If I use the "inbound DID" I can set destinations with priority - which in effect acts just like a "follow-me". It has the added charm that it's easy to build a website around this to update these things on the fly.
It does of course not work with internal calls. But that is not a major problem for me at this stage, and if I need this I will contact you.

I have another issue with the a2billing solution,
When implementing the "follow-me" solution in a2billing it plays the annoying "prepaid-callfollowme" message each time it forwards the call. Does anyone know how to turn this message off permanently?


Cheers,

Bjorn


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 1:16 pm 
Offline

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

Are you answering the call, or got the agiconf to play audio?

Joe


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 1:36 pm 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello,


Here the debug output:


== Using UDPTL TOS bits 184
== Using UDPTL CoS mark 5
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/6004
-- Local/XXXX@from-internal-deb3;1 is ringing
-- Connected line update to Local/XXXX@from-internal-deb3;2 prevented.
-- SIP/XXXX-00000141 is ringing
-- Local/XXXX@from-internal-deb3;1 is ringing
-- SIP/TRUNK-0000013f answered Local/00XXXXXXXXXXX@a2billing-66cf;2
-- Nobody picked up in 25000 ms
== Spawn extension (macro-dial-one, s, 42) exited non-zero on 'Local/XXXX@from-internal-deb3;2' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on 'Local/XXXX@from-internal-deb3;2' in macro 'exten-vm'
== Spawn extension (from-internal, XXXX, 2) exited non-zero on 'Local/XXXX@from-internal-deb3;2'
-- Executing [h@from-internal:1] Hangup("Local/XXXX@from-internal-deb3;2", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/XXXX@from-internal-deb3;2'
-- Playing 'prepaid-callfollowme' (escape_digits=#) (sample_offset 0)
> doing dnsmgr_lookup for 'sip.PROVIDER.com'
-- AGI Script Executing Application: (DIAL) Options: (sip/TRINK/YYYYYYYYYY,,HRrL(33176000:61000:30000))
> Limit Data for this call:
> timelimit = 33176000 ms (33176.000 s)
> play_warning = 61000 ms (61.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000 ms (30.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =

I assume it is going through agi-config.

I've tried to set "play-audio" to "No".
This does work - but I am not sure if it like using a sledge hammer to hammer in a nail. (i.e. I am afraid it will remove other functionality, like announcements relating to calling-cards).


Cheers,

Bjorn


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 1:49 pm 
Offline

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

Use a separate agi-conf for DID, so you don't affect other services.

Joe


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 1:57 pm 
Offline

Joined: Sun Dec 18, 2011 8:57 pm
Posts: 6
Hello,

This sounds reasonable - thank you.

I see that I am not quite as clever as I should be about this.
I'll have to read up how to work with 2 agi-conf files.
But, how hard can it be.

Thanks for pointing me in the right direction.


Cheers,

Bjorn


Top
 Profile  
 
 Post subject: Re: Follow-me billing with a2billing and FreePBX
PostPosted: Mon Jan 02, 2012 2:22 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
In the current version of A2Billing (1.9.4) which you should be using, then just click Add Agi-conf in System settings, then redo your dialplan to call the new agi-conf.

Joe


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


All times are UTC


Who is online

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