The problem is in authorization info, ekiga uses. It takes auth info of first registered account (see Authorization header).
This short log of ekiga talking to asterisk shows what causes this problem: <--- SIP read from 87.249.10.61:52335 ---> REGISTER sip:ssof01 SIP/2.0 Route: <sip:ssof01:5060;lr> CSeq: 15 REGISTER Via: SIP/2.0/UDP 10.1.1.168:5060;branch=z9hG4bK2663d012-8f6f-de11-8d5b-001bfcafddc3;rport User-Agent: Ekiga/3.2.0 Authorization: Digest username="1x123", realm="asterisk", nonce="0e437ac4", uri="sip:ssof01", algorithm=MD5, response="6fbc872af5a973cb4bcee731f1a62804" From: <sip:1x100@ssof01>;tag=aceecd12-8f6f-de11-8d5b-001bfcafddc3 Call-ID: 76d9cd12-8f6f-de11-8d5b-001bfcafddc3@dmig-desktop To: <sip:1x100@ssof01> Contact: <sip:1x100@10.1.1.168>;q=1 Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,SUBSCRIBE,NOTIFY,REFER,MESSAGE,INFO,PING Expires: 3600 Content-Length: 0 Max-Forwards: 70
<-------------> --- (14 headers 0 lines) --- Using latest REGISTER request as basis request Sending to 87.249.10.61 : 52335 (NAT) ssof01*CLI> <--- Transmitting (NAT) to 87.249.10.61:52335 ---> SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.1.1.168:5060;branch=z9hG4bK2663d012-8f6f-de11-8d5b-001bfcafddc3;received=87.249.10.61;rport=52335 From: <sip:1x100@ssof01>;tag=aceecd12-8f6f-de11-8d5b-001bfcafddc3 To: <sip:1x100@ssof01> Call-ID: 76d9cd12-8f6f-de11-8d5b-001bfcafddc3@dmig-desktop CSeq: 15 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Contact: <sip:1x100@87.249.26.213> Content-Length: 0
<------------> ssof01*CLI> <--- Transmitting (NAT) to 87.249.10.61:52335 ---> SIP/2.0 403 Authentication user name does not match account name Via: SIP/2.0/UDP 10.1.1.168:5060;branch=z9hG4bK2663d012-8f6f-de11-8d5b-001bfcafddc3;received=87.249.10.61;rport=52335 From: <sip:1x100@ssof01>;tag=aceecd12-8f6f-de11-8d5b-001bfcafddc3 To: <sip:1x100@ssof01>;tag=as0afda709 Call-ID: 76d9cd12-8f6f-de11-8d5b-001bfcafddc3@dmig-desktop CSeq: 15 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Content-Length: 0
<------------>
The problem is in authorization info, ekiga uses. It takes auth info of first registered account (see Authorization header).
This short log of ekiga talking to asterisk shows what causes this problem: 5060;lr> 168:5060; branch= z9hG4bK2663d012 -8f6f-de11- 8d5b-001bfcafdd c3;rport "6fbc872af5a973 cb4bcee731f1a62 804" ssof01> ;tag=aceecd12- 8f6f-de11- 8d5b-001bfcafdd c3 8f6f-de11- 8d5b-001bfcafdd c3@dmig- desktop 10.1.1. 168>;q= 1 ACK,OPTIONS, BYE,CANCEL, SUBSCRIBE, NOTIFY, REFER,MESSAGE, INFO,PING
<--- SIP read from 87.249.10.61:52335 --->
REGISTER sip:ssof01 SIP/2.0
Route: <sip:ssof01:
CSeq: 15 REGISTER
Via: SIP/2.0/UDP 10.1.1.
User-Agent: Ekiga/3.2.0
Authorization: Digest username="1x123", realm="asterisk", nonce="0e437ac4", uri="sip:ssof01", algorithm=MD5, response=
From: <sip:1x100@
Call-ID: 76d9cd12-
To: <sip:1x100@ssof01>
Contact: <sip:1x100@
Allow: INVITE,
Expires: 3600
Content-Length: 0
Max-Forwards: 70
<-------------> 168:5060; branch= z9hG4bK2663d012 -8f6f-de11- 8d5b-001bfcafdd c3;received= 87.249. 10.61;rport= 52335 ssof01> ;tag=aceecd12- 8f6f-de11- 8d5b-001bfcafdd c3 8f6f-de11- 8d5b-001bfcafdd c3@dmig- desktop 87.249. 26.213>
--- (14 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 87.249.10.61 : 52335 (NAT)
ssof01*CLI>
<--- Transmitting (NAT) to 87.249.10.61:52335 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.1.1.
From: <sip:1x100@
To: <sip:1x100@ssof01>
Call-ID: 76d9cd12-
CSeq: 15 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1x100@
Content-Length: 0
<------------> 168:5060; branch= z9hG4bK2663d012 -8f6f-de11- 8d5b-001bfcafdd c3;received= 87.249. 10.61;rport= 52335 ssof01> ;tag=aceecd12- 8f6f-de11- 8d5b-001bfcafdd c3 ssof01> ;tag=as0afda709 8f6f-de11- 8d5b-001bfcafdd c3@dmig- desktop
ssof01*CLI>
<--- Transmitting (NAT) to 87.249.10.61:52335 --->
SIP/2.0 403 Authentication user name does not match account name
Via: SIP/2.0/UDP 10.1.1.
From: <sip:1x100@
To: <sip:1x100@
Call-ID: 76d9cd12-
CSeq: 15 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
<------------>