[Asterisk-Users] Restricting connection of unauthorized phones.

Jay Milk jay at skimmilk.net
Tue May 10 21:34:17 MST 2005


1. Yes, its how SIP works.  The phone registers to let * know where it
is.  If another phone registers with the same credentials, * updates its
sip peers list -- the phone with the most recent successful registration
will show in that list.  Asterisk doesn't know whether you moved the
first phone, or are registering a second phone.

2. See above -- Asterisk can only register one phone to an extension.

3. See above -- how is * to tell whether the same phone isn't
registering from a different location, and/or re-registering (which SIP
phones DO periodically).  In short: No.

4. If you don't have valid credentials in sip.conf, then of course the
phone can't register, so it won't be able to receive calls.  In order to
prevent a phone from dialing through your * server, simply set up the
general context to be something like "dontdial" and setup that
[dontdial] context to not allow dialing through.

* It should be noted that most SIP clients will not allow dialing unless
they're registered to the server.  Of course, in your scenario, both
clients *think* they're registered, so they'll allow you to dial through
the server; in addition, they have valid credentials, so * will allow
them to dial anyway.

> -----Original Message-----
> From: Michael Stahl [mailto:mstahl at ocg.ca] 
> Sent: Tuesday, May 10, 2005 9:29 PM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] Restricting connection of 
> unauthorized phones.
> 
> 
> I have asterisk up and running now, and installed XLITE on 2 
> PC's. Both machines (mistakenly) registered as the same user 
> / extension.
> 
> Strangely, asterisks allows this and both phones can make 
> calls! But, only the first one to register can receive calls 
> at the extensions.
> 
> 1. Is this normal behavior? (Why allow 2 phones on same extension) 
> 
> 2. Why is asterisk not showing the second phone when I type 
> SIP SHOW PEERS?  Only the first (with the same extension) shows.
> 
> 3. Is there some way to make asterisk NOT allow phones to 
> connect on an extension already in use?
> 
> 4. Is there a way to make asterisk NOT allow phones to 
> connect that do not have a valid extension in SIP.CONF?
> 
> Thanks,
> 
> Mike
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com 
> http://lists.digium.com/mailman/listinfo/aster> isk-users
> To 
> UNSUBSCRIBE or update options visit:
>    
http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list