Sipsak: 404 Error

Home » Asterisk Users » Sipsak: 404 Error
Asterisk Users No Comments

Hi,

I **think** that I have user of thufir101, because I get a 200 response below, but I also get a 404. It seems to depend on how I send the ip address/fqdn?

tleilax*CLI>
tleilax*CLI> sip show users Username Secret Accountcode
Def.Context ACL Forcerport
201 password 201
default No Yes
thufir101 password thufir101
default No Yes
babytel jlfjd54545
default No Yes
gs102 X58sKpZCcDfcGT0 gs102
default No Yes
tleilax*CLI>
tleilax*CLI> sip show user thufir101

* Name : thufir101
Secret :
MD5Secret :
Context : default
Language : en
Accountcode : thufir101
AMA flags : Unknown
Netborder CPD: No
Transfer mode: open
MaxCallBR : 384 kbps
CallingPres : Presentation Allowed, Not Screened
Call limit : 0
Callgroup :
Pickupgroup :
Callerid : “atreides” <123>
ACL : No
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Sess-Min-SE : 90 secs
RTP Engine : asterisk
Codec Order : (ulaw:20,gsm:20)
Auto-Framing: No

tleilax*CLI>

which would make the URI sip:thufir101@tleilax.bounceme.net ?

thufir@doge:~$
thufir@doge:~$ sudo sipsak -vv -s sip:thufir101@tleilax No SRV record: _sip._tcp.tleilax No SRV record: _sip._udp.tleilax using A record: tleilax

message received:
SIP/2.0 200 OK
CSeq: 1 OPTIONS
Via: SIP/2.0/UDP
127.0.1.1:52173;branch=z9hG4bK.4ca3965f;rportR173;alias;received2.168.1.3
User-Agent: Ekiga/4.0.1
From: sip:sipsak@127.0.1.1:52173;tagc1bb564
Call-ID: 1662760292@127.0.1.1
To: sip:thufir101@tleilax Contact:
Content-Length: 0

** reply received after 3.381 ms **
SIP/2.0 200 OK
final received thufir@doge:~$
thufir@doge:~$ sudo sipsak -vv -s sip:thufir101@tleilax.bounceme.net No SRV record: _sip._tcp.tleilax.bounceme.net No SRV record: _sip._udp.tleilax.bounceme.net using A record: tleilax.bounceme.net

message received:
SIP/2.0 200 OK
CSeq: 1 OPTIONS
Via: SIP/2.0/UDP
127.0.1.1:35077;branch=z9hG4bK.353a619c;rport5077;alias;received2.168.1.3
User-Agent: Ekiga/4.0.1
From: sip:sipsak@127.0.1.1:35077;tag#9b4596
Call-ID: 597378454@127.0.1.1
To: sip:thufir101@tleilax.bounceme.net Contact:
Content-Length: 0

** reply received after 2.987 ms **
SIP/2.0 200 OK
final received thufir@doge:~$
thufir@doge:~$ sudo sipsak -vv -s sip:thufir101@192.168.1.2

message received:
SIP/2.0 404 Not Found Via: SIP/2.0/UDP
127.0.1.1:39721;branch=z9hG4bK.4b7b7fab;alias;received2.168.1.3;rport9721
From: sip:sipsak@127.0.1.1:39721;tagk70e831
To: sip:thufir101@192.168.1.2;tag=as34aa76ca Call-ID: 1802561585@127.0.1.1
CSeq: 1 OPTIONS
Server: Asterisk PBX 1.8.32.1-vici Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer Accept: application/sdp Content-Length: 0

** reply received after 0.665 ms **
SIP/2.0 404 Not Found
final received thufir@doge:~$
thufir@doge:~$

I updated my hosts file on doge with the ip adress for tleilax…for some reason that “makes” it work..?

any pointers, thank you,

Thufir