[Sipsak] SIP/2.0 404 Not Found
Raj Adhikari
raj at cyzap.com
Fri Nov 7 01:03:21 CET 2008
Hi group,
I am using Asterisk 1.4.9.
My intention is to monitor asterisk server. So I used sipsak. I have
registered an extension 999 with password 999 at the asterisk server.
But using sipsak I am getting SIP/2.0 404 Not Found for this or any sip
user. Why SIP is not sending 200 OK response for simple SIP command with
valid extension? I am novice in SIP. But I am not getting expected
result from sipsak. May be you can look at the following two examples to
see the problem. I would like to get SIP 200 OK when sending simple
INVITE command. I will appreciate if you can enlighten me if I lack
knowledge on SIP.
Here is the sipsak traceroute:
[root at phones sipsak-0.9.6]# sipsak -s sip:999 at 172.30.101.235 -vvv
fqdnhostname: 127.0.0.1
our Via-Line: Via: SIP/2.0/UDP
127.0.0.1:32833;branch=z9hG4bK.74e1949e;rport;alias
New message with Via-Line:
OPTIONS sip:999 at 172.30.101.235 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:32833;branch=z9hG4bK.74e1949e;rport;alias
From: sip:sipsak at 127.0.0.1:32833;tag=2ae5e525
To: sip:999 at 172.30.101.235
Call-ID: 719709477 at 127.0.0.1
CSeq: 1 OPTIONS
Contact: sip:sipsak at 127.0.0.1:32833
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.6
Accept: text/plain
request:
OPTIONS sip:999 at 172.30.101.235 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:32833;branch=z9hG4bK.74e1949e;rport;alias
From: sip:sipsak at 127.0.0.1:32833;tag=2ae5e525
To: sip:999 at 172.30.101.235
Call-ID: 719709477 at 127.0.0.1
CSeq: 1 OPTIONS
Contact: sip:sipsak at 127.0.0.1:32833
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.6
Accept: text/plain
send to: UDP:172.30.101.235:5060
message received:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
127.0.0.1:32833;branch=z9hG4bK.74e1949e;alias;received=172.30.101.235;rport=32833
From: sip:sipsak at 127.0.0.1:32833;tag=2ae5e525
To: sip:999 at 172.30.101.235;tag=as3c2579a1
Call-ID: 719709477 at 127.0.0.1
CSeq: 1 OPTIONS
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Accept: application/sdp
Content-Length: 0
** reply received after 0.512 ms **
SIP/2.0 404 Not Found
final received
----------------------------------------------------------
Even if I provide password with -a 999, I am getting the same result.
But look when I issue following command I get the 200 OK response.
[root at phones sipsak-0.9.6]# sipsak -U -C sip:212 at 172.30.101.235 -x 10 -s
sip:212 at 172.30.101.235 -vvv
warning: ignoring -i option when in usrloc mode
fqdnhostname: 127.0.0.1
our Via-Line: Via: SIP/2.0/UDP
127.0.0.1:32840;branch=z9hG4bK.3f80693c;rport;alias
New message with Via-Line:
REGISTER sip:172.30.101.235 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:32840;branch=z9hG4bK.3f80693c;rport;alias
From: sip:212 at 172.30.101.235;tag=641c811f
To: sip:212 at 172.30.101.235
Call-ID: 1679589663 at 127.0.0.1
CSeq: 1 REGISTER
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.6
Expires: 10
Contact: sip:212 at 172.30.101.235
registering user 212...
request:
REGISTER sip:172.30.101.235 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:32840;branch=z9hG4bK.3f80693c;rport;alias
From: sip:212 at 172.30.101.235;tag=641c811f
To: sip:212 at 172.30.101.235
Call-ID: 1679589663 at 127.0.0.1
CSeq: 1 REGISTER
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.6
Expires: 10
Contact: sip:212 at 172.30.101.235
send to: UDP:172.30.101.235:5060
SIP/2.0 100 Trying
ignoring provisional response
OK
SIP/2.0 200 OK
Via: SIP/2.0/UDP
127.0.0.1:32840;branch=z9hG4bK.3f80693c;alias;received=172.30.101.235;rport=32840
From: sip:212 at 172.30.101.235;tag=641c811f
To: sip:212 at 172.30.101.235;tag=as289e979e
Call-ID: 1679589663 at 127.0.0.1
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Expires: 60
Contact: <sip:212 at 172.30.101.235>;expires=60
Date: Fri, 07 Nov 2008 00:01:07 GMT
Content-Length: 0
All usrloc tests completed successful.
received last message 11.369 ms after first request (test duration).
More information about the Sipsak
mailing list