[Home]

Summary:ASTERISK-16758: can't register to different sip accounts when registered to same IP/DNS
Reporter:Tamer Higazi (tameritoke)Labels:
Date Opened:2010-10-01 05:43:18Date Closed:2010-10-05 09:59:13
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have registered 3 different accounts from one single provider through the register command:

register = 334931111:xxxxxx@sipgate.de/334931111
register = 334931112:xxxxxx@sipgate.de/334931112
register = 334911113:xxxxxx@sipgate.de/334931113


sip accounts:

[sipgate](!)
type=friend
fromdomain=sipgate.de
host=sipgate.de
insecure=invite ; otherwise I get authentication errors
nat=yes
secret=xxxxxx
caninvite=no
canreinvite=no
allow=alaw
allow=ulaw
allow=speex
allow=g729
dtmfmode=rfc2833


[334931111](sipgate)
username=334931111
fromuser=334931111
context=mamatelein

[334931112](sipgate)
username=334931112
fromuser=334931112
context=tamertelein

[334931113](sipgate)
username=334931113
fromuser=334931113
context=tamertelein


the dialplan:
context mamatelein {
334931111 => {
   Dial(SIP/2002,,r);
   Hangup;
}


context tamertelein {
_33493111[23] => {
   Dial(SIP/2000,,r);
   Hangup;
}

has the following output:

all calls from the provider example on "334931112" are routed internally in asterisk wrong and the console debug:

[Sep 21 11:32:30] NOTICE[21215]: chan_sip.c:20200
handle_request_invite: Call from '334931111' to extension '334931112'
rejected because extension not found in context 'mamatelein'.

****** ADDITIONAL INFORMATION ******

Asterisk tells me, that all calls, independently from which account of the sip provider are from the 1st account i registered.

(A)

in this order:
register = 334931111:xxxxxx@sipgate.de/334931111
register = 334931112:xxxxxx@sipgate.de/334931112
register = 334911113:xxxxxx@sipgate.de/334931113

that means:

calls on 334931112 are shown on asterisk as 334931111,
calls on 334931113 are shown on asterisk as 334931111,


(B)

in this order:
register = 334931112:xxxxxx@sipgate.de/334931112
register = 334931111:xxxxxx@sipgate.de/334931111
register = 334911113:xxxxxx@sipgate.de/334931113

that means:

calls on 334931111 are shown on asterisk as 334931112
calls on 334931113 are shown on asterisk as 334931112

(C)

in this order:
register = 334911113:xxxxxx@sipgate.de/334931113
register = 334931112:xxxxxx@sipgate.de/334931112
register = 334931111:xxxxxx@sipgate.de/334931111


that means:

calls on 334931111 are shown on asterisk as 334931113
calls on 334931112 are shown on asterisk as 334931113

Comments:By: David Woolley (davidw) 2010-10-01 08:34:46

Duplicate ASTERISK-9619678 (no change required) and, I suspect, many others.

I believe this is considered a feature, not a bug.

By: David Woolley (davidw) 2010-10-01 08:37:08

I believe this current instance started as http://forums.digium.com/viewtopic.php?f=1&t=75461