<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I'm trying to use SipSak to check if my Asterisk server is
available/running with the following :<br>
<br>
sipsak -vv -s <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sip:username@sip.domain.tld">sip:username@sip.domain.tld</a>
-c
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:sip:username@sip.domain.tld">sip:username@sip.domain.tld</a>
--password guessthis --hostname XX.XX.XX.63<br>
<br>
The SIP OPTION is received by Asterisk as follow
:<br>
<br>
OPTIONS <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:sip:username@sip.domain.tld">sip:username@sip.domain.tld</a>
SIP/2.0<br>
Via: SIP/2.0/UDP XX.XX.XX.63:36887;branch=z9hG4bK.304f1a46;rport;alias<br>
<b>From: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:36887;tag=5e8faf01">sip:sipsak@XX.XX.XX.63:36887;tag=5e8faf01</a></b><br>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:sip:username@sip.domain.tld">sip:username@sip.domain.tld</a><br>
Call-ID: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:1586474753@XX.XX.XX.63">1586474753@XX.XX.XX.63</a><br>
CSeq: 1 OPTIONS<br>
Contact: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:36887">sip:sipsak@XX.XX.XX.63:36887</a><br>
Content-Length: 0<br>
Max-Forwards: 70<br>
User-Agent: sipsak 0.9.6<br>
Accept: text/plain<br>
<br>
<br>
and it send back :<br>
<br>
SIP/2.0 404 Not Found<br>
Via: SIP/2.0/UDP
XX.XX.XX.63:36887;branch=</font><font
 face="Helvetica, Arial, sans-serif">z9hG4bK.304f1a46</font><font
 face="Helvetica, Arial, sans-serif">;alias;received=XX.XX.XX.63;rport=36887<br>
<b>From: <a class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:50628;tag=7ffbdc48">sip:sipsak@XX.XX.XX.63:</a></b><a
 class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:50628;tag=7ffbdc48">36887</a><b><a
 class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:50628;tag=7ffbdc48">;tag=</a></b><a
 class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:50628;tag=7ffbdc48"><b><a
 class="moz-txt-link-abbreviated"
 href="mailto:sip:sipsak@XX.XX.XX.63:36887;tag=5e8faf01">5e8faf01</a></b></a><br>
To: <a class="moz-txt-link-abbreviated"
 href="mailto:sip:username@sip.domain.tld;tag=as29357d12">sip:username@sip.domain.tld;tag=as29357d12</a><br>
Call-ID: <a class="moz-txt-link-abbreviated"
 href="mailto:1586474753@XX.XX.XX.63">1586474753</a><a
 class="moz-txt-link-abbreviated" href="mailto:2147212360@XX.XX.XX.63">@XX.XX.XX.63</a><br>
CSeq: 1 OPTIONS<br>
Server: Asterisk PBX 1.6.2.10<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO<br>
Supported: replaces, timer<br>
Accept: application/sdp<br>
Content-Length: 0<br>
<br>
<br>
I am not able to change the FROM-header so Asterisk authenticates the
OPTION being sent.<br>
<br>
<br>
Jonas.<br>
</font>
<br>
</body>
</html>