| Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX. |  | 
October 19th, 2007, 01:28 PM
| | Junior Member | | Join Date: Oct 2006
Posts: 14
| | Virtual PBX on Asterisk Hello,
How to build virtual PBX, two or more, on Asterisk, or how to forbid some extension to call others?
For example, I wish to have like two PBX's with extensions from 5000 to 5050 and 6000 to 6050; frobid calling from 50XX to 60XX, but enable them both to go on the same trunks.
If you have any link or some document, please provide...
Thanks... | 
October 20th, 2007, 04:39 AM
| | Member | | Join Date: Apr 2007
Posts: 64
| | Re: Virtual PBX on Asterisk Hi
Virtual PBX same as normal pbx so you can develpoe as you develope noram pbx.
if you want make 2 pbx system on same asterisk that is alos possible
only need to make etc/asterisk/extensions where you make that 2 system extension.conf & that files include in main extension .conf which you get from etc/asterisk then ls
include this way
# include extension/extension50.conf
#include extension/extension60.conf
this extension 50 & 60 are 2 files for 2 diffrent pbx on same asterisk.
same way you can do for sip ,queus.conf &.....
ok any pbx extension like 5050 can make call to 6060 extension for that you have to include both extension to each other
like this way
[extension 50]
exten => 5050,1,macro(std-exten-50.5050.SIP/5050)
include= extension 60
[extension 60]
exten => 6060,1 macro(std-exten-60,6060,SIP/6060)
include => extenion 50
this will work to make call each other by extesions
try this it help you | 
October 22nd, 2007, 08:52 AM
| | Junior Member | | Join Date: Oct 2006
Posts: 14
| | Re: Virtual PBX on Asterisk Thanks for the reply,
but, how to disable 50XX reaching 60XX?
By not including:
include= extension 60
?
Thanks again. | 
October 22nd, 2007, 06:24 PM
| | Member | | Join Date: Apr 2007
Posts: 64
| | Re: Virtual PBX on Asterisk Hi
yes you are correct
dont include exten 60 so any uiser from extension 50xx cant call extension in 60
try this | 
October 23rd, 2007, 12:06 PM
| | Junior Member | | Join Date: Oct 2006
Posts: 14
| | Re: Virtual PBX on Asterisk Hello from me again,
since I'm a bit new to the Asterisk (and using TrixBox), can you give some example of "extensions50", or somethigng similar, so I can modify. I'm bit confused with the: "macro(std-exten..." in
exten => 5050,1,macro(std-exten-50.5050.SIP/5050)
although I understand the logic beyond.
Thanks... | 
October 23rd, 2007, 04:07 PM
|  | Junior Member | | Join Date: Oct 2007 Location: Cebu
Posts: 2
| | Re: Virtual PBX on Asterisk use asterisknow i think trixbox is limited.
__________________ bluebox global solutions visit my callcenter blog http financehlp.blogspot.com
CRM guides,VOIP Success guides,Call center simulation software (Bluebox Branded) | 
October 30th, 2007, 12:07 PM
| | Junior Member | | Join Date: Oct 2006
Posts: 14
| | Re: Virtual PBX on Asterisk Here what I have done so far...
Here with what I came up with:
in extensions_additional.conf I have add a context for the customers with the extensions 60XX (I add just one).
[customer60]
exten => 6001,1,Macro(exten-vm,6001,6001)
exten => 6001,n,Hangup
exten => 6001,hint,SIP/6001
exten => ${VM_PREFIX}6001,1,Macro(vm,6001,DIRECTDIAL)
exten => ${VM_PREFIX}6001,n,Hangup
....
In extensions.conf, in macro [macro-exten-vm] i have added logic (after the line with: exten => s,n... - book say that asterisk will chose most specific match)
[macro-exten-vm]
exten => _60XX,1,GotoIf($[${EXTTOCALL:2} = 60]?10:20)
exten => _60XX,10,Macro(dial,${RT},${DIAL_OPTIONS},${EXTTOC ALL})
exten => _60XX,20,Congestion( )
So, I'm trying ti see if two first numbers are 60, if the are I proceed call to macro dial, else, for example, I play congestion.
Is this enough, and would the same method work for 50XX on the same PBX?
Any help is appriciated.
Thanks... | 
October 30th, 2007, 11:18 PM
| | Junior Member | | Join Date: Oct 2007
Posts: 1
| | Re: Virtual PBX on Asterisk I don't believe you can manage this with Trixbox (freepbx) or AsteriskNow.
You may want to look at the Multi-Tenant Edition of Thirdlane PBX Manager GUI or Thirdlane Advantage PBX at http://www.thirdlane.com. The multi-tenant edition allows you to do just that - partition Asterisk in a number of tenants (Virtual PBXs) with independent extensions, feature codes, routes, mailboxes, etc. | 
November 15th, 2007, 04:41 PM
| | Junior Member | | Join Date: Jan 2007
Posts: 15
| | Re: Virtual PBX on Asterisk The way I do it is using a freepbx unsupported module named Custom Contexts ( http://aussievoip.com/wiki/freePBX-CustomContexts ).
It allows you to create various contexts for your various offices.
Good Luck! |  | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | |