Hi
In Tony's example, he was creating a system for his friends and family so that they could enjoy the benefits of FreePBX, but still bill for outbound calls.
Joe
Thanks joe. I did have a way around it, where in followme, it would dial out with using a different outbound route then of a2billing.Hi
Your issue is that FreePBX authenticates to A2Billing in your scenario with the accountcode. However when you use Followme, the FreePBX dialplan does not pass the accountcode to A2Billing, so you are prompted for a PIN.
Theoretically, you could set up some dialplan to strip the first 10 digits of the followme, and set the accountcode, and at the same time, forward calls to A2Billing with the accountcode and the number to call.
Alternatively we had a module written by the FreePBX team that sets the accountcode for followme's but not necessarily ring groups or queues, as these do not have an accountcode assigned to them. Drop me a line for more details of this. But note that this module was obseleted by version 2.8 of FreePBX.
Tony, A2Billing 1.8.5 now supports A Leg billing (Billing for inbound DID) natively at a very simple level.
Joe
Open extensions_custom.conf and add the following code to the bottom of the file: -
Now create a trunk in FreePBX over which we are going to pass billable calls.Code:[macro-dialout-trunk-predial-hook] exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2) exten => s,2,MacroExit [custom-freepbx-a2billing] exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8}) exten => _X.,n,Hangup()
[custom-freepbx-a2billing]
exten => _X.,1,DeadAGI(a2billing.php,${OUT_${DIAL_TRUNK}:8})
exten => _X.,n,Hangup()
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.