This question may already be answered on the forum, but generally you want to set up all your extensions in extensions_custom.conf since freepbx does not rewrite this file. However if your internal extension are already calling each other then just insert "outbound-allroutes-custom" Here is a quick and dirty way:
; this will allow 7000 & 7001 to call each other without a2billing
[from-internal-custom]
exten => 7000/7000,1,Congestion ;congestion if ext dials itself
exten => 7000,2,Dial(SIP/7000,30) ;rings ext and times out at 30 sec
exten => 7000,3,Voicemail(u7000) ; If unavailable, send to voicemail w/ unavail announce
exten => 7001/7001,1,Congestion ;congestion if ext dials itself
exten => 7001,2,Dial(SIP/7001,30) ;rings ext and times out at 30 sec
exten => 7001,3,Voicemail(u7001) ; If unavailable, send to voicemail w/ unavail announce
; a2billing will ask for pin if 7000 or 7001 tries to dial any other number
; this context "outbound-allroutes-custom" is freepbx builtin
[outbound-allroutes-custom]
; this is to bill outbound calls from internal
exten => _X.,1,Answer
exten => _X.,2,Wait(2)
exten => _X.,3,DeadAGI(a2billing.php|1)
exten => _X.,4,Wait(1)
exten => _X.,5,Hangup
|