[Asterisk-Users] Restrict outbound calls on Broadvoice
Luki
asterisk at lugosoft.com
Tue Dec 7 15:55:35 MST 2004
Jimmy,
> allow users to only call certain area codes?
Create a dial plan that requires the area code to match, and send all other
non-matching calls into an extension that plays an 'unauthorized' message,
or whatever you want.
I have this for the "world plan"
[broadvoice-toll-free]
; US calls (7 and 11 digits)
exten => _NXXXXXX,1,Macro(outcall,${EXTEN})
exten => _1NXXNXXXXXX,1,Macro(outcall,${EXTEN:1})
; Broadvoice International free
exten => _01131.,1,Macro(outcall,${EXTEN})
exten => _01132.,1,Macro(outcall,${EXTEN})
exten => _01133.,1,Macro(outcall,${EXTEN})
exten => _01134.,1,Macro(outcall,${EXTEN})
exten => _011353.,1,Macro(outcall,${EXTEN})
exten => _01139.,1,Macro(outcall,${EXTEN})
exten => _01141.,1,Macro(outcall,${EXTEN})
exten => _01143.,1,Macro(outcall,${EXTEN})
exten => _01144.,1,Macro(outcall,${EXTEN})
exten => _01145.,1,Macro(outcall,${EXTEN})
exten => _01146.,1,Macro(outcall,${EXTEN})
exten => _01147.,1,Macro(outcall,${EXTEN})
exten => _01149[2-9].,1,Macro(outcall,${EXTEN})
exten => _01156.,1,Macro(outcall,${EXTEN})
exten => _01161.,1,Macro(outcall,${EXTEN})
exten => _01165.,1,Macro(outcall,${EXTEN})
exten => _011852.,1,Macro(outcall,${EXTEN})
exten => _01186.,1,Macro(outcall,${EXTEN})
exten => _011886.,1,Macro(outcall,${EXTEN})
The outcall macro sets a few more things up (namely determine the outgoing
line to use) and Dials(${ARG1}@${OUTGOING_LINE})
> way to distinguish a land line phone number from a cell phone number?
Certain countries have designated area codes for cell phones. For Germany,
it's 17... so I simply disallow any area code that starts with 1 in the plan
above. That works for me.... for now. Filtering cell phones in other
countries is harder...
> 3 SIP phones connected to the Asterisk PBX and have them
> all make simultaneous calls under 1 account with Broadvoice?
Yes. See the Dial command, you can specify multiple extensions to ring:
ex: Dial(SIP/EXT1&SIP/EXT2&SIP/EXT3)
--Luki
More information about the asterisk-users
mailing list