Outbond routes for each phone??

edisoninfo

Guru
Joined
Nov 19, 2007
Messages
505
Reaction score
4
How do I default my office phones to dial out Zap/3 and my home phones to dial out Zap/4 ?? I have inbound trunks and ring groups working fine. Now I just need to route the outbound calls.
 
I'm not sure if this is the only way, but you could set up 2 outbound routes. In each route you set up, use a prefix of 8 for one route, and 9 for the other, then pick a specific trunk for each route. Hover over the "Dial Patterns" on the route page to get the proper help/syntax.
TomSyr
 
Yup, done that. Works fine. However, "she who makes calls" is NOT going to enter an 8 or 9 every time she calls out. :) I need to default my business phones to my Zap line and the house phones to the other Zap line.
 
I have my business VoIP line and our home pots line coming into PIAF. The house line dials normal, and my business line needs a 9. I cancelled long distance on my home phone and told my wife if she needs to call long distance just dial 9 to do it. Now we can use any phone in the house to call long distance or use the business line.

if you figure out how to truly separate the lines with different outbound routes please post how you do it.
 
outbound routes

Its pretty easy to set em up like this. This should work for you.

outbound route 1 (home)

Dial Patterns (local 7/10 digit)
NXXXXXX
NXXNXXXXXX


Trunk Sequence
Zap/g0 (replace with proper trunk)

outbound route 2 (office)

Dial patterns
9|.


Trunk Sequence
Zap/g1 (replace with proper trunk)
 
How do I default my office phones to dial out Zap/3 and my home phones to dial out Zap/4 ?? I have inbound trunks and ring groups working fine. Now I just need to route the outbound calls.
Check out the custom contexts module for FreePBX at http://aussievoip.com.au/wiki/freePBX-CustomContexts

It allows you to set up a context with its own allowed route patterns and then assign that context to specific extensions. This lets you have multiple routing for multiple locations if you need it.
 
I have used the following reference:
http://samyantoun.50webs.com/asterisk/athome/limittrunk.htm
and I have it working perfectly with PBXiaFlash 1.1 and FreePBX 2.4. You have to do some manual modifications to the code in order to create custom context to be used instead of the FROM-INTERNAL context that is the default one for each extension. Once you get you custom context defined, you can use it for any extension that you want, add, etc. Hope this helps
 
This appears to be what I need. However in reading the wiki pages, I see comments that this has been added to core. Has it and if so, how do I get to it?
 
I am sorry to let you know, but on further testing of the implementation I suggested, I am finding some errors, and the calls are not working according to the custom context I have defined. It was working up until I did an upgrade to FreePBX 2.4, but I wll look into it as I need to have it fixed somehow.

Before you could define a [custom-trunk-1] on extensions_custom.conf, so I had done that as follows:

[custom-trunk-1]
; applications are now mostly all found in from-internal-additional in _custom.conf
include => from-internal-xfer
include => bad-number
include => parkedcalls
include => from-internal-custom
;allow phones to dial other extensions
include => ext-fax
;allow phones to access generated contexts
;
; MODIFIED (PL)
;
; Currently the include for findmefollow is being auto-generated before ext-local which is the desired

behavior.
; However, I haven't been able to do anything that I know of to force this. We need to determine if it should
; be hardcoded into here to make sure it doesn't change with some configuration. For now I will leave it out
; until we can discuss this.
;
include => ext-local-confirm
include => findmefollow-ringallv2
;include => from-internal-additional
;commenting line above in order to copy the context from this module and only select what is needed

; This causes grief with '#' transfers, commenting out for the moment.
; include => bad-number

include => from-internal-additional-custom
include => app-recordings
include => app-blacklist
include => ext-group
include => grps
include => app-daynight
include => app-daynight-toggle
include => ext-paging
include => app-pbdirectory
include => app-dnd-off
include => app-dnd-on
include => ext-findmefollow
include => fmgrps
include => app-dictate-record
include => app-dictate-send
include => app-cf-busy-off
include => app-cf-busy-off-any
include => app-cf-busy-on
include => app-cf-off
include => app-cf-off-any
include => app-cf-on
include => ext-queues
include => app-gabcast
include => app-callwaiting-cwoff
include => app-callwaiting-cwon
include => ext-meetme
include => app-languages
include => app-dialvm
include => app-vmmain
include => app-calltrace
include => app-directory
include => app-echo-test
include => app-speakextennum
include => app-speakingclock
include => vmblast-grp
include => app-userlogonoff
include => app-pickup
include => app-zapbarge
include => app-chanspy
include => ext-test
include => ext-local
;include => outbound-allroutes
;commenting line above to defined the outbound routes that this extension will use

;below are the routes to be used by this trunk only
include => outbound-allroutes-custom
include => outrt-001-emergency
include => outrt-002-BellsouthService
include => outrt-003-tollfreeMIA
include => outrt-004-DADEcallsMIA
include => outrt-005-PRcellcallsMIA
include => outrt-006-UScallsMIA
include => outrt-007-INTERNATIONALcallsMIA
exten => foo,1,Noop(bar)

exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)

; end of [custom-trunk-1]


Then I could just the context on each of the extension to the custom trunk that I have defined, but I recently noticed that this is not working anymore. I will try to see if there is an alternate solution and post it here when i find it.
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

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.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top