thufir
2015-Feb-20 11:15 UTC
[asterisk-users] sipsak 200 for a user, but 404 for a different user...why?
What's the difference between user "123" and "devries"? Based on the output here, they seem the same..? tleilax*CLI> tleilax*CLI> sip show users Username Secret Accountcode Def.Context ACL Forcerport 201 password 201 default No Yes 123 password 123 default No Yes devries password devries default No Yes babytel hjkgk58757 default No Yes gs102 X58sKpZCcDfcGT0 gs102 default No Yes tleilax*CLI> tleilax*CLI> sip show user 123 * Name : 123 Secret : <Set> MD5Secret : <Not set> Context : default Language : en Accountcode : 123 AMA flags : Unknown Netborder CPD: No Transfer mode: open MaxCallBR : 384 kbps CallingPres : Presentation Allowed, Not Screened Call limit : 0 Callgroup : Pickupgroup : Callerid : "123" <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> tleilax*CLI> sip show user devries * Name : devries Secret : <Set> MD5Secret : <Not set> Context : default Language : en Accountcode : devries AMA flags : Unknown Netborder CPD: No Transfer mode: open MaxCallBR : 384 kbps CallingPres : Presentation Allowed, Not Screened Call limit : 0 Callgroup : Pickupgroup : Callerid : "devries" <999> 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> tleilax*CLI> exit tleilax:~ # tleilax:~ # exit logout Connection to tleilax closed. thufir at doge:~$ thufir at doge:~$ sudo sipsak -vv -s sip:123 at tleilax [sudo] password for thufir: No SRV record: _sip._tcp.tleilax No SRV record: _sip._udp.tleilax using A record: tleilax message received: SIP/2.0 200 OK Via: SIP/2.0/UDP 127.0.1.1:55238;branch=z9hG4bK.3e59b63f;alias;received=192.168.1.3;rport=55238 From: sip:sipsak at 127.0.1.1:55238;tag=1e6fe4eb To: sip:123 at tleilax;tag=as7dc4727d Call-ID: 510649579 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 Contact: <sip:192.168.1.2:5060> Accept: application/sdp Content-Length: 0 ** reply received after 0.627 ms ** SIP/2.0 200 OK final received thufir at doge:~$ thufir at doge:~$ sudo sipsak -vv -s sip:devries at tleilax No SRV record: _sip._tcp.tleilax No SRV record: _sip._udp.tleilax using A record: tleilax message received: SIP/2.0 404 Not Found Via: SIP/2.0/UDP 127.0.1.1:54969;branch=z9hG4bK.38ee5c41;alias;received=192.168.1.3;rport=54969 From: sip:sipsak at 127.0.1.1:54969;tag=6e148be1 To: sip:devries at tleilax;tag=as2b617a9b Call-ID: 1846840289 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.648 ms ** SIP/2.0 404 Not Found final received thufir at doge:~$ thanks, Thufir
Andres
2015-Feb-20 13:46 UTC
[asterisk-users] sipsak 200 for a user, but 404 for a different user...why?
On 2/20/15 6:15 AM, thufir wrote:> What's the difference between user "123" and "devries"? Based on the > output here, they seem the same..? > > tleilax*CLI> > tleilax*CLI> sip show users > Username Secret Accountcode > Def.Context ACL Forcerport > 201 password 201 > default No Yes > 123 password 123 > default No Yes > devries password devries > default No Yes > babytel hjkgk58757 > default No Yes > gs102 X58sKpZCcDfcGT0 gs102 > default No Yes > tleilax*CLI> > tleilax*CLI> sip show user 123 > > > * Name : 123 > Secret : <Set> > MD5Secret : <Not set> > Context : default > Language : en > Accountcode : 123 > AMA flags : Unknown > Netborder CPD: No > Transfer mode: open > MaxCallBR : 384 kbps > CallingPres : Presentation Allowed, Not Screened > Call limit : 0 > Callgroup : > Pickupgroup : > Callerid : "123" <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> > tleilax*CLI> sip show user devries > > > * Name : devries > Secret : <Set> > MD5Secret : <Not set> > Context : default > Language : en > Accountcode : devries > AMA flags : Unknown > Netborder CPD: No > Transfer mode: open > MaxCallBR : 384 kbps > CallingPres : Presentation Allowed, Not Screened > Call limit : 0 > Callgroup : > Pickupgroup : > Callerid : "devries" <999> > 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> > tleilax*CLI> exit > tleilax:~ # > tleilax:~ # exit > logout > Connection to tleilax closed. > thufir at doge:~$ > thufir at doge:~$ sudo sipsak -vv -s sip:123 at tleilax > [sudo] password for thufir: > No SRV record: _sip._tcp.tleilax > No SRV record: _sip._udp.tleilax > using A record: tleilax > > message received: > SIP/2.0 200 OK > Via: SIP/2.0/UDP > 127.0.1.1:55238;branch=z9hG4bK.3e59b63f;alias;received=192.168.1.3;rport=55238 > From: sip:sipsak at 127.0.1.1:55238;tag=1e6fe4eb > To: sip:123 at tleilax;tag=as7dc4727d > Call-ID: 510649579 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 > Contact: <sip:192.168.1.2:5060> > Accept: application/sdp > Content-Length: 0 > > > > ** reply received after 0.627 ms ** > SIP/2.0 200 OK > final received > thufir at doge:~$ > thufir at doge:~$ sudo sipsak -vv -s sip:devries at tleilax > No SRV record: _sip._tcp.tleilax > No SRV record: _sip._udp.tleilax > using A record: tleilax > > message received: > SIP/2.0 404 Not Found > Via: SIP/2.0/UDP > 127.0.1.1:54969;branch=z9hG4bK.38ee5c41;alias;received=192.168.1.3;rport=54969 > From: sip:sipsak at 127.0.1.1:54969;tag=6e148be1 > To: sip:devries at tleilax;tag=as2b617a9b > Call-ID: 1846840289 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.648 ms ** > SIP/2.0 404 Not Found > final received > thufir at doge:~$A "sip set debug on" will give you more info on why you are getting the 404. It probably has to do something with your context/dialplan.> > > thanks, > > Thufir > >-- Technical Support http://www.cellroute.net
thufir
2015-Feb-20 19:29 UTC
[asterisk-users] sipsak 200 for a user, but 404 for a different user...why?
On Fri, 20 Feb 2015 08:46:13 -0500, Andres wrote:> A "sip set debug on" will give you more info on why you are getting the > 404. It probably has to do something with your context/dialplan.on tleilax: tleilax*CLI> tleilax*CLI> sip set debug on SIP Debugging enabled tleilax*CLI> on doge: thufir at doge:~$ thufir at doge:~$ sudo sipsak -vv -s sip:devries at tleilax -m "hi" No SRV record: _sip._tcp.tleilax No SRV record: _sip._udp.tleilax using A record: tleilax Max-Forwards set to 0 message received: SIP/2.0 404 Not Found Via: SIP/2.0/UDP 127.0.1.1:56377;branch=z9hG4bK.0edaada3;alias;received=192.168.1.3;rport=56377 From: sip:sipsak at 127.0.1.1:56377;tag=6b540010 To: sip:devries at tleilax;tag=as02b0fdd6 Call-ID: 1800667152 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.844 ms ** SIP/2.0 404 Not Found final received thufir at doge:~$ However, I'm sure you're right that it's the dialplan; I'm looking into it. thanks, Thufir