[asterisk-users] 1 Asterisk server, multiple registrations to ITSP

jonas kellens jonas.kellens at telenet.be
Fri Jan 29 12:01:33 CST 2010


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:passwd1 at 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:passwd1 at sip.ITSP
> > register => user2:passwd2 at sip.ITSP
> > 
> > ; outgoing conversations
> > [user1-out]
> > type=peer
> > host=sip.ITSP
> 
> Try setting type=friend instead of peer for these and see what happens.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100129/6d49ecf1/attachment.htm 


More information about the asterisk-users mailing list