Hello,
I was wondering if it was possible to add A2Billing trunks into FreePBX. The goal is to simply add a trunk, which will be called A2B on the local machine. It will pass through the normal dialout procedures but then it will transfer the outbound CID and number to be called to A2B.
Right now I have it setup as a so called extension via a manual edit of the extensions_custom.conf file however, the problem I have is with the Caller ID information. I can not transmit the extension’s callerID info cause it is transmitting the extension number instead of the Outbound CallerID information.
This is what I have in my extension_custom.conf file
Extensions->A2billing
exten => _1NXXNXXXXXX,1,Answer
exten => _1NXXNXXXXXX,2,Wait,1
exten => _1NXXNXXXXXX,3,DeadAGI,a2billing.php
exten => _1NXXNXXXXXX,4,Congestion
exten => _1NXXNXXXXXX,5,Wait,2
exten => _1NXXNXXXXXX,6,Hangup
exten => _011.,1,Answer
exten => _011.,2,Wait,1
exten => _011.,3,DeadAGI,a2billing.php
exten => _011.,4,Congestion
exten => _011.,5,Wait,2
exten => _011.,6,Hangup
exten => _225,1,Answer
exten => _225,2,Wait,1
exten => _225,3,DeadAGI,a2billing.php
exten => _225,4,Congestion
exten => _225,5,Wait,2
exten => _225,6,Hangup
What I would like it to do is to somehow modify the macro-dialout-trunk, if it sees a custom trunk that says A2B/$OUTNUM$ then it would call up the DeadAGI for a2billing.php and dialout with the actual Outbound CallerID instead of the Extension.
Has anyone done this or has anyone been able to integrate FreePBX via the web interface to work with A2Billing without the need to enter a custom hack like I did above?
Thanks.