How To Make Voip Client Cannot Use Same Username?

Home » Asterisk Users » How To Make Voip Client Cannot Use Same Username?
Asterisk Users 3 Comments

Hi All,

I have one asterisks server and 3 client (i’m using voip sip client for my handphone). I’ve configured sip.conf and extension.conf with 3 user different. And nothing wrong with them, i could make them to make a call too.

what i want to ask is, i was try to use 1 user (ex:1001) in 2 different client. example:
client 1 (1001) make a call to client 2 (1002) –> ok then in client 3, i used (1001) same username with client 1. when client 1
is connecting with client 2, my client 3 could make a call to with client 2
(1002) with the same username in client 1.

how i could make the system, so i cannot use with 1 username in 2 different client before i make a call (when registering process in voip client), or at least my voip client cannot use same username if that username is connected with the other user?

any help will help me a lot. thanks in advance.

rafa

3 thoughts on - How To Make Voip Client Cannot Use Same Username?

  • hi,

    anyone seen this?

    actually this is my sip.conf file
    [1002]
    type = friend context = test username = 1002
    secret = 12345
    host = dynamic

    if i want to make my client register to server with matching on username instead of ip address, so the username is used just for 1 client how could i do that?

    if i change the host (dynamic into the ip) and the type (friend) is still the same. in my voip client is unregistered (however i still could make a call but can’t be called). but if the type i changed into peer, my voip client is still unregistered (i couldn’t make a call and can’t be called). so what i have to configured in my sip.conf and extensions.conf files?

    thanks in advance. rafa

  • Since what you describe is a valid for SIP, you’ll have to drop the packets at the network level (firewall). Or use the ACL system in asterisk to restrict it.

  • Hi Paul,

    thanks for your repply.

    i was try change the host from dynamic to spesific ip address. but somehow my sipphone couldn’t register into server, however it’s still could make a call but couldn’t be called.

    i was try “permit” statement too, but the result is same. this is my sip.conf
    [1001]
    type = friend context = test username = 1001
    secret = 12345
    host = 192.168.1.5
    nat = no disallow = no allow = ulaw permit = 192.168.1.5/255/255.255.255.0

    is there anything wrong?

    how could i make matching on username instead of ip address?

    thanks in advance