[asterisk-users] allowguest=yes, how?

Paul van der Vlis paul at vandervlis.nl
Thu Apr 21 03:09:12 CDT 2011


Op 20-04-11 21:47, Danny Nicholas schreef:
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
>> bounces at lists.digium.com] On Behalf Of Paul van der Vlis
>> Sent: Wednesday, April 20, 2011 2:41 PM
>> To: asterisk-users at lists.digium.com
>> Subject: [asterisk-users] allowguest=yes, how?
>>
>> Hello,
>>
>> I want that people from other servers like ekiga.net can make calls to
>> my users. When I do an "allowguest=no" then people from other domains
>> cannot call me. So I think I need "allowguest=yes".

< cut setup >

>> Is this a good setup?
>> 
>> 
> [Danny Nicholas] 
> Talking a little "out of school", but the safest method is going to be to
> set up one context with allowguest=yes that has ABSOLUTELY NO DIALING
> PRIVILEDGES, otherwise you will open Pandora's box.

Maybe you mean something like this?

extensions.conf:
-------------
[default]
include => users

[dialout]
include => users
exten=_0.,1,Dial(SIP/trunk/0${EXTEN:1},30,tT)

[users]
exten=>6001,1,Dial(SIP/paul,20)
exten=>6002,1,Dial(SIP/ann,20)
(...)
--------

sip.conf:
-----------
[general]
context=default
allowguest=no
(...)

[guests]
context=default
allowguest=yes

[trunk]
context=dialout
(...)

[phone-paul]
context=dialout
(...)

[phone-ann]
context=dialout
(...)
-----------

Thanks for your help!

With regards,
Paul van der Vlis.




-- 
http://www.vandervlis.nl/





More information about the asterisk-users mailing list