[asterisk-users] Enable/Disable Sip without registration

Johansson Olle E oej at edvina.net
Sun Dec 23 12:33:02 CST 2007


23 dec 2007 kl. 15.15 skrev Raj Jain:

>
> On Dec 12, 2007 8:01 AM, equis software <equissoftware at gmail.com>  
> wrote:
> I try to configure that only registered sips can make calls.
> How can I do that?
>
> Registrations are meant for routing calls to end-points, not for  
> accepting calls from end-points. I don't think Asterisk supports a  
> mechanism which allows only registered end-points to make calls.

You are right in that the SIP channel doesn't bother with this. But  
there's another way.

Like most other things related to calls in Asterisk, this can be  
controlled in the dialplan.
Use the SIPPEER function to check if the peer is registered. If not,  
hangup without
answering. If it is, then process the call as usual.

If you want to, you can even play prompts or send the calls from  
unregistered
devices to the talking clock in London.

Some devices, like Linksys/Sipura, have settings of their own that  
block calls
if the device can't register.

Merry Christmas!

/O


---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/






More information about the asterisk-users mailing list