Hello,

run kamailio in higher debug mode to see the log messages with hints why is not authenticated.

I see that you have double authentication, one for realm asterisk and one for realm aliasdomain.com. Is it what you want to have?

One more hint, in 3.1 you can load debugger module and print the execution trace for such case so you can discover if the configuration file routes the request as you want or not.

Cheers,
Daniel
 

On 10/27/10 1:32 PM, michel freiha wrote:
Hello All,

I have my kamailio server running and working properly as much as it's listening to an IP address..>As soon as i add an alias as a domain mae, I'm not be able to make call anymore and i'm getting Proxy Authentication required on my X-lite registered on the server...Please find below SIP packets:

U +0.045706 Kamailio_IP:5060 -> X-Lite_Public_IP:49088
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-a83b4359a1218b33-1---d8754z-;rport=49088;received=X-Lite_Public_IP.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>;tag=7adebec44d02c48c117ad920bb5281f8.c246.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 4 INVITE.
Proxy-Authenticate: Digest realm="Aliasdomain.com", nonce="TMgYGEzIFuyzAuVUGSbPwq3ZJaBE8k4a".
Server: kamailio (3.1.0 (i386/linux)).
Content-Length: 0.
.


U +0.253584 X-Lite_Public_IP:49088 -> Kamailio_IP:5060
INVITE sip:00XXXXXX@Aliasdomain.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-a83b4359a1218b33-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:michofr@X-Lite_Public_IP:49088>.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 4 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Proxy-Authorization: Digest username="michofr",realm="asterisk",nonce="2fe0dd55",uri="sip:00XXXXXX@Aliasdomain.com",response="a2f6f58360e4a3059a82964f9e8ddbe2",algorithm=MD5.
Proxy-Authorization: Digest username="michofr",realm="Aliasdomain.com",nonce="TMgYF0zIFutYZomwP0F6LJLcvg4y/gwt",uri="sip:00XXXXXX@Aliasdomain.com",response="143021428e9b74db816f76a97b522a60",algorithm=MD5.
User-Agent: eyeBeam release 1102q stamp 51814.
Content-Length: 283.
.
v=0.
o=- 6 2 IN IP4 192.168.0.164.
s=CounterPath eyeBeam 1.5.
c=IN IP4 192.168.0.164.
t=0 0.
m=audio 17956 RTP/AVP 18 101.
a=alt:1 1 : 0V1r/5Dg TGVW9xcA 192.168.0.164 17956.
a=fmtp:18 annexb=yes.
a=fmtp:101 0-15.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.


U +0.057365 Kamailio_IP:5060 -> X-Lite_Public_IP:49088
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-a83b4359a1218b33-1---d8754z-;rport=49088;received=X-Lite_Public_IP.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>;tag=7adebec44d02c48c117ad920bb5281f8.c246.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 4 INVITE.
Proxy-Authenticate: Digest realm="Aliasdomain.com", nonce="TMgYGEzIFuyzAuVUGSbPwq3ZJaBE8k4a".
Server: kamailio (3.1.0 (i386/linux)).
Content-Length: 0.
.


U +0.255609 X-Lite_Public_IP:49088 -> Kamailio_IP:5060
ACK sip:00XXXXXX@Aliasdomain.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-4312233712260f32-1---d8754z-;rport.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>;tag=7adebec44d02c48c117ad920bb5281f8.c9fd.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 3 ACK.
Content-Length: 0.
.


U +0.015090 X-Lite_Public_IP:49088 -> Kamailio_IP:5060
ACK sip:00XXXXXX@Aliasdomain.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-a83b4359a1218b33-1---d8754z-;rport.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>;tag=7adebec44d02c48c117ad920bb5281f8.c246.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 4 ACK.
Content-Length: 0.
.


U +0.136372 X-Lite_Public_IP:49088 -> Kamailio_IP:5060
ACK sip:00XXXXXX@Aliasdomain.com SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.164:49088;branch=z9hG4bK-d8754z-a83b4359a1218b33-1---d8754z-;rport.
To: "00XXXXXX"<sip:00XXXXXX@Aliasdomain.com>;tag=7adebec44d02c48c117ad920bb5281f8.c246.
From: <sip:michofr@Aliasdomain.com>;tag=00727922.
Call-ID: MDc5YzVkNjdjYTZkMTIwMTdlYzE2YTRlZmExMDllNWM..
CSeq: 4 ACK.
Content-Length: 0.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com