Set John's defaultip to 192.168.1.1 in sip.conf

Defaultip=192.168.1.1  

 

This should "tie" john to that IP address.

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of harry R
Sent: Friday, July 24, 2009 9:23 AM
To: [email protected]
Subject: [asterisk-users] asterisk users

 

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)

 

 

 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to