[asterisk-users] asterisk users

harry R rhm.noa101 at gmail.com
Fri Jul 24 09:22:46 CDT 2009


Hi

I have a new question. Here the situation :
I use softphone on 2 computers (soft1 and soft2) located on the same
subnetwork.
When I register on asterisk server using soft1 with one user (e.g JOHN)
which I declared in sip.conf I can register again with this same user using
soft2.
Is it normal ?

I notice that I can pass some call from both but incoming call for JOHN user
only arrive on the last softphone where JOHN registred.

How can I say to asterisk server : "don't accept other registration for
JOHN if you see that he's already registred on another softphone" ?

Here a sample of my sip.conf file :

[JOHN]
type=friend
username=john_smith
secret=******
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=internal
callerid="john smith" <103>

Here a simple of CLI command sip show peers after 2 succesive registration
## register from soft1 with JOHN" ##
Name/username        Host             Dyn Nat  ACL  Port        Status
JOHN/john_smith    192.168.1.1       D    N            5060         OK (3ms)

## register from soft2 with JOHN" at least 2min after##
 Name/username        Host             Dyn Nat  ACL  Port        Status
JOHN/john_smith    192.168.1.2       D    N            5060         OK (4ms)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090724/a359abc8/attachment.htm 


More information about the asterisk-users mailing list