[asterisk-users] sipsak: 404 error

thufir hawat.thufir at gmail.com
Wed Feb 18 19:59:25 CST 2015


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       : <Set>
  MD5Secret    : <Not set>
  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 at tleilax.bounceme.net ?




thufir at doge:~$ 
thufir at doge:~$ sudo sipsak -vv -s sip:thufir101 at 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;rport=52173;alias;received=192.168.1.3
User-Agent: Ekiga/4.0.1
From: sip:sipsak at 127.0.1.1:52173;tag=631bb564
Call-ID: 1662760292 at 127.0.1.1
To: sip:thufir101 at tleilax
Contact: <sip:thufir101 at 192.168.1.3>
Content-Length: 0



** reply received after 3.381 ms **
   SIP/2.0 200 OK
   final received
thufir at doge:~$ 
thufir at doge:~$ sudo sipsak -vv -s sip:thufir101 at 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;rport=35077;alias;received=192.168.1.3
User-Agent: Ekiga/4.0.1
From: sip:sipsak at 127.0.1.1:35077;tag=239b4596
Call-ID: 597378454 at 127.0.1.1
To: sip:thufir101 at tleilax.bounceme.net
Contact: <sip:thufir101 at 192.168.1.3>
Content-Length: 0



** reply received after 2.987 ms **
   SIP/2.0 200 OK
   final received
thufir at doge:~$ 
thufir at doge:~$ sudo sipsak -vv -s sip:thufir101 at 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;received=192.168.1.3;rport=39721
From: sip:sipsak at 127.0.1.1:39721;tag=6b70e831
To: sip:thufir101 at 192.168.1.2;tag=as34aa76ca
Call-ID: 1802561585 at 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 at doge:~$ 
thufir at 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




More information about the asterisk-users mailing list