<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link href="chrome://translator/skin/floatingPanel.css"
type="text/css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I know over time SIP OPTIONS message handling has changed and I've
seen some write ups that seem to indicate that an s extension in the
default context is needed now to get them to work.<br>
<br>
It's probably my error in any case.<br>
<br>
So, what am I doing wrong or what do I need to do to get the sip
ping to work?<br>
<br>
Bruce Ferrell<br>
<br>
Just for fun, I created a sip peer called ping at a fixed address
with a default context of ping:<br>
<br>
sip.conf<br>
=======<br>
[ping]<br>
type=peer<br>
host=XX.XX.XX.XX<br>
defaultip=XX.XX.XX.XX<br>
context=ping<br>
<br>
extensions.conf<br>
============<br>
[ping]<br>
exten => s,1,NoOp()<br>
<br>
<br>
I am sending the following:<br>
<br>
<br>
OPTIONS <a class="moz-txt-link-freetext" href="sip:YY.YY.YY.YY">sip:YY.YY.YY.YY</a> SIP/2.0<br>
Via: SIP/2.0/UDP XX.XX.XX.XX:5061;branch=z9hG4bK1316447867<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
To: <a class="moz-txt-link-rfc2396E" href="sip:YY.YY.YY.YY"><sip:YY.YY.YY.YY></a><br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX">20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX</a><br>
CSeq: 102 OPTIONS<br>
User-Agent: sip_ping.pl<br>
Date: Mon, 19 September 2011 08:57:47 PDT<br>
Allow: ACK, CANCEL<br>
Content-Length: 0<br>
<br>
<br>
And the asterisk instance is logging the following with core set
debug 9:<br>
<br>
<--- SIP read from UDP:XX.XX.XX.XX:6051 ---><br>
OPTIONS <a class="moz-txt-link-freetext" href="sip:YY.YY.YY.YY">sip:YY.YY.YY.YY</a> SIP/2.0<br>
Via: SIP/2.0/UDP XX.XX.XX.XX:5061;branch=z9hG4bK1316447867<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
To: <a class="moz-txt-link-rfc2396E" href="sip:YY.YY.YY.YY"><sip:YY.YY.YY.YY></a><br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX">20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX</a><br>
CSeq: 102 OPTIONS<br>
User-Agent: sip_ping.pl<br>
Date: Mon, 19 September 2011 08:57:47 PDT<br>
Allow: ACK, CANCEL<br>
Content-Length: 0 <br>
<-------------><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 0 [ 32]:
OPTIONS <a class="moz-txt-link-freetext" href="sip:YY.YY.YY.YY">sip:YY.YY.YY.YY</a> SIP/2.0<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 1 [ 59]: Via:
SIP/2.0/UDP XX.XX.XX.XX:5061;branch=z9hG4bK1316447867<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 2 [ 29]:
From: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 3 [ 22]: To:
<a class="moz-txt-link-rfc2396E" href="sip:YY.YY.YY.YY"><sip:YY.YY.YY.YY></a><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 4 [ 32]:
Contact: <a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 5 [ 54]:
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX">20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX</a><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 6 [ 17]:
CSeq: 102 OPTIONS<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 7 [ 23]:
User-Agent: sip_ping.pl<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 8 [ 41]:
Date: Mon, 19 September 2011 08:57:47 PDT<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 9 [ 18]:
Allow: ACK, CANCEL<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Header 10 [ 18]:
Content-Length: 0 <br>
[2011-09-19 08:57:47] VERBOSE[2979] chan_sip.c: --- (11 headers 0
lines) ---<br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: = Looking for Call
ID: <a class="moz-txt-link-abbreviated" href="mailto:20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX">20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX</a> (Checking From)
--From tag --To-tag <br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: OPTIONS request has no
from tag, dropping callid:
<a class="moz-txt-link-abbreviated" href="mailto:20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX">20d664d681edcbd48dd76f57915d413b@XX.XX.XX.XX</a> from:
<a class="moz-txt-link-rfc2396E" href="sip:ping@XX.XX.XX.XX"><sip:ping@XX.XX.XX.XX></a><br>
[2011-09-19 08:57:47] DEBUG[2979] chan_sip.c: Invalid SIP message -
rejected , no callid, len 355<br>
<br>
<div style="bottom: auto; left: 21px; right: auto; top: 50px;
display: none;" class="translator-theme-default"
id="translator-floating-panel">
<div title="Click to translate"
id="translator-floating-panel-button"></div>
</div>
</body>
</html>