Hi Guys
Hoping someone can give me a hand here.
I have Elastix 2.4.0 setup and comes with A2billing 1.9.4 installed. I have everything set up, well almost everything. Outbound calls work perfectly as well as inbound calls. I have set up a few DID with my provider. Those DID are set up on my A2B system and are forwarding calls in the following format to a hosted PBX (FreePBX):
SIP/
[email protected]On the hosted FreePBX I have set up the inbound routes, which forward the calls to extensions or ring groups. All working fine.
My question is this.
I have 2 clients currently on this A2B system. Both have DID's assigned to their accounts and both have hosted PBX's. When the one client calls the other via their DID, the call starts off as a DID_VOIP in the CDR's and then goes out via a trunk to the VOIP provider only to come back in again via the inbound routes.
I want to allow the calls to stay within my A2B and have searched this forum and many others without any solution.
Here is a screenshot of the CDR record where you can see the call as a DID_VOIP call and then goes out and is billed:
I'm thinking it has something to do with the context's so here is what is listed in my extension_a2billing_additional.conf:
[a2billing]
include => a2billing_callingcard
include => a2billing_monitoring
include => a2billing_voucher
include => a2billing_did
[a2billing_callingcard]
; CallingCard application
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,1)
exten => _X.,n,Hangup
[a2billing_voucher]
exten => _X.,1,Answer(1)
exten => _X.,n,DeadAgi(a2billing.php,1,voucher)
;exten => _X.,n,AGI(a2billing.php,1,voucher,44) ; will add 44 in front of the callerID for the CID authentication
exten => _X.,n,Hangup
[a2billing_did]
exten => _X.,1,DeadAgi(a2billing.php,1,did)
exten => _X.,2,Hangup
In Elastix, I have a custom desitnation setup for all the above, the inbound route in Elastix is set up to forward all inbound calls to [a2billing_did] custom destination.
My context for all customers in A2Billing is the default of A2BILLING.
Any help would be great.
Many thanks
Vince