Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] how to make voip client cannot use same username?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rafa.alfurqan at gmail...
Guest





PostPosted: Sun Sep 28, 2014 10:51 am    Post subject: [asterisk-users] how to make voip client cannot use same use Reply with quote

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
Back to top
rafa.alfurqan at gmail...
Guest





PostPosted: Sun Sep 28, 2014 10:27 pm    Post subject: [asterisk-users] how to make voip client cannot use same use Reply with quote

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






On Sun, Sep 28, 2014 at 10:51 PM, rafa alfurqan <rafa.alfurqan@gmail.com (rafa.alfurqan@gmail.com)> wrote:
Quote:
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




Back to top
paul.belanger at polyb...
Guest





PostPosted: Mon Sep 29, 2014 8:42 am    Post subject: [asterisk-users] how to make voip client cannot use same use Reply with quote

On Sun, Sep 28, 2014 at 11:51 AM, rafa alfurqan <rafa.alfurqan@gmail.com> wrote:
Quote:
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?


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.

--
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger@polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
rafa.alfurqan at gmail...
Guest





PostPosted: Mon Sep 29, 2014 8:57 am    Post subject: [asterisk-users] how to make voip client cannot use same use Reply with quote

Hi Paul,


thanks for your repply.

Quote:
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.


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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services