Hi,
My PC application (192.168.1.127:5070) invites [email protected]:5060, who is account of a AVM FRITZ!Box Fon ata 1020 /firmware 11.04.01 (LAN connected, no registrar, no NAT, no STUN, username=max, password=admin).
Subsequently, the application tries to REFER the call to [email protected]:5070. The FRITZ!Box requires an authorization for a REFER and sends a "401 Unauthorized". The REFER is send again with authorization header. The FRITZ!Box answers with "400 Illegal Authorization header (10)".
Problem is that I don't see what's wrong with the authorization header. I used the following parameters for calculation the response:
- username=max
- password=admin
- realm=4DAA95B39CEF4D4DAD1C5CB6FAE64
- nonce=5300090F004C24962127B1537497E
- uri=sip:[email protected];uniq=4DAA95B39CEF4D4DAD1C5CB6FAE64
Any suggestions? Or does someone have an example of a successful authorized REFER session? Below are the session details. Feedback in German language is welcome!
REFER sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Contact: <sip:192.168.1.127>
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 3 REFER
Max-Forwards: 70
Refer-To: sip[email protected]:5070
Referred-By: <sip:192.168.1.127>
User-Agent: SIP_IF
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.127:5070;rport=5070;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 3 REFER
WWW-Authenticate: Digest realm="4DAA95B39CEF4D4DAD1C5CB6FAE64", nonce="5300090F004C24962127B1537497E"
User-Agent: AVM FRITZ!Box Fon ata 1020 11.04.01 (Jan 25 2006)
Content-Length: 0
REFER sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Contact: <sip:192.168.1.127>
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 4 REFER
Max-Forwards: 70
Refer-To: sip[email protected]:5070
Referred-By: <sip:192.168.1.127>
Authorization: Digest username="max",
realm="4DAA95B39CEF4D4DAD1C5CB6FAE64",
nonce="5300090F004C24962127B1537497E",
uri="sip:[email protected];uniq=4DAA95B39CEF4D4DAD1C5CB6FAE64",
response="7c625cb6fdb774311804f46b3c559126
User-Agent: SIP_IF
Content-Length: 0
SIP/2.0 400 Illegal Authorization header (10)
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 4 REFER
User-Agent: AVM FRITZ!Box Fon ata 1020 11.04.01 (Jan 25 2006)
Content-Length: 0
My PC application (192.168.1.127:5070) invites [email protected]:5060, who is account of a AVM FRITZ!Box Fon ata 1020 /firmware 11.04.01 (LAN connected, no registrar, no NAT, no STUN, username=max, password=admin).
Subsequently, the application tries to REFER the call to [email protected]:5070. The FRITZ!Box requires an authorization for a REFER and sends a "401 Unauthorized". The REFER is send again with authorization header. The FRITZ!Box answers with "400 Illegal Authorization header (10)".
Problem is that I don't see what's wrong with the authorization header. I used the following parameters for calculation the response:
- username=max
- password=admin
- realm=4DAA95B39CEF4D4DAD1C5CB6FAE64
- nonce=5300090F004C24962127B1537497E
- uri=sip:[email protected];uniq=4DAA95B39CEF4D4DAD1C5CB6FAE64
Any suggestions? Or does someone have an example of a successful authorized REFER session? Below are the session details. Feedback in German language is welcome!
REFER sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Contact: <sip:192.168.1.127>
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 3 REFER
Max-Forwards: 70
Refer-To: sip[email protected]:5070
Referred-By: <sip:192.168.1.127>
User-Agent: SIP_IF
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.127:5070;rport=5070;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 3 REFER
WWW-Authenticate: Digest realm="4DAA95B39CEF4D4DAD1C5CB6FAE64", nonce="5300090F004C24962127B1537497E"
User-Agent: AVM FRITZ!Box Fon ata 1020 11.04.01 (Jan 25 2006)
Content-Length: 0
REFER sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Contact: <sip:192.168.1.127>
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 4 REFER
Max-Forwards: 70
Refer-To: sip[email protected]:5070
Referred-By: <sip:192.168.1.127>
Authorization: Digest username="max",
realm="4DAA95B39CEF4D4DAD1C5CB6FAE64",
nonce="5300090F004C24962127B1537497E",
uri="sip:[email protected];uniq=4DAA95B39CEF4D4DAD1C5CB6FAE64",
response="7c625cb6fdb774311804f46b3c559126
User-Agent: SIP_IF
Content-Length: 0
SIP/2.0 400 Illegal Authorization header (10)
Via: SIP/2.0/UDP 192.168.1.127:5070;rport;branch=z9hG4bKvxw8kKP8mMAabbb1BQeb
From: "PZA-ZC" <sip:192.168.1.127>;tag=yXKKRHsb71
To: <sip:[email protected]:5060>;tag=C0C6682675BCBF6C1DFB658A282CA
Call-ID: j8eKFWjRyLZMEsJR
CSeq: 4 REFER
User-Agent: AVM FRITZ!Box Fon ata 1020 11.04.01 (Jan 25 2006)
Content-Length: 0