When setting type=friend for the incoming calls :

; outgoing conversations
[user1-out]
type=peer
host=sip.ITSP
username=user1
secret=secret1
fromuser=user1

; incoming conversations
[user1]
type=friend
host=sip.ITSP
context=user1incoming

; outgoing conversations
[user2-out]
type=peer
host=sip.ITSP
username=user2
secret=secret2
fromuser=user2

; incoming conversations
[user2]
type=friend
host=sip.ITSP
context=user2incoming

I get the following message :

[Jan 29 18:49:07] NOTICE[6314]: chan_sip.c:14703 handle_request_invite:
Call from 'user2' to extension "329990102" rejected because extension
not found.

The call in fact needs to come from user1 in stead of from user2. Of
course the extension is not found as it is defined in the context for
incoming calls of user 1.

In sip.conf [user2] is defined after [user1] and I have the impression
that the last definition of a user is always taken. [user2] is always
taken for incoming calls.


How can I identify calls that are destined for user1 as defined in :
register => user1:pass...@sip.itsp

[user1]
type=friend
host=sip.ITSP
context=user1incoming


It must be possible to have several accounts with the same ITSP on the
same Asterisk-server ?!


Jonas.


On Fri, 2010-01-29 at 16:51 +0000, Robert Lister wrote:

> On Fri, 2010-01-29 at 15:09 +0100, jonas kellens wrote:
> > Hello list !
> > 
> > Having troubles with multiple registrations to one and the same ITSP.
> > 
> > This sip.conf :
> > 
> > register => user1:pass...@sip.itsp
> > register => user2:pass...@sip.itsp
> > 
> > ; outgoing conversations
> > [user1-out]
> > type=peer
> > host=sip.ITSP
> 
> Try setting type=friend instead of peer for these and see what happens.


-- 
_____________________________________________________________________
-- 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