jroper wrote:
Hi
Check you don't answer the call in the dial plan
Joe
Sorry, But how should I do that? I didn't understand you.
jroper wrote:
Hi
check you have answer_call = no in the agi-conf
Joe
I did this individually (only this change), and all the calls were getting dropped.
INBOUND: I am directing the calls in to A2B using: custom destination, using: *custom-a2billing-did,${EXTEN},1*, to direct DID into A2Billing for onwards delivery and billing.
OUTBOUND: I am making calls out using A2B using: which is a Custom Dial String to A2B/2.
A2B/1 is for calling card (entering pin) and A2B/2 is bypassing entering the pin.
This is my "extensions_a2billing.conf":
"
[custom-a2billing]
;Custom Destination
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI(a2billing.php|2)
exten => _X.,4,Wait,2
exten => _X.,5,Hangup
[custom-a2billing-did]
;To deliver DID and bill for them
exten => _X.,1,deadAGI(a2billing.php|2|did)
exten => _X.,2,Hangup
[macro-dialout-trunk-predial-hook]
;FreePBX A2B Trunk Macro
exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
exten => s,2,MacroExit
[custom-freepbx-a2billing]
;FreePBX A2B Trunk Macro
exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})
exten => _X.,n,Hangup()
"
Any help? Please tell me if you need more info on my setup...'
Thanks.