Im rather surpriced abouth how rather little there is about this subject Asterisk and security:
http://www.voip-info.org/wiki/view/Asterisk+securitySee also this:
http://www.voip-info.org/wiki/index.php?page=Asterisk+security+dialplanI don't know really how safe this hack is that I use for allowing incomming sip telephones:
[from-sip-external]
;give external sip users congestion and hangup
;exten => _.,1,AbsoluteTimeout(15)
;exten => _.,2,Congestion
;exten => _.,3,Hangup
exten => _X.,1,Goto(from-pstn,s,1)
# the line above is new
Anybody who got ideas about this ?
As far as I have been able to test it out it is only the internal extensions that is available for external calls.
By the way, I think the most important issue about setting up an Asterisk server with some payed "lines" is that to allways use prepaid services that will stop when the account is empty, or accounts with limited credit, that also has an "credit limit".
Hacked accounts or also something rather trivial like "hanging lines" might otherways be a rather big risk. (When testing and making some incorrect configuration my Asterisk server were hanging on the paid line for 4 hours without my knowledge, but it was a local call with only small money involved.)
I'm sorry to use a lot of the space on the forum, but I think that the security aspect of it is a rather important one, to make some investigation on.
Actually I think that a incorrect configured Asterisk server with the incorrect type of ip telephony connection (typical with unlimited credit) has the potensial of giving you some terrible problems.
First of all it should be a prepaid line or line with limited credit. Next it should be done some steps to avoid loosing those money as well.