<div dir="ltr">Thank you Mark for your answer.<div><br></div><div>BTW, a long time ago, I had an issue with AMI to send NOTIFY because it was impossible to set a specific header.</div><div>I don't remember exactly the problem, but finally, I've used scapy to inject SIP NOTIFY. It was very ugly, but it works.</div><div><br></div><div>I'll follow your suggestion with AMI command and the latest Asterisk version, I'll ping if I have again an issue.</div><div><br></div><div>Have a nice week-end.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>--<br><div style="font-size:small"><div>Ludovic Gasc (GMLudo)</div></div><div style="font-size:small"><a href="http://www.gmludo.eu/" target="_blank">http://www.gmludo.eu/</a></div></div></div></div></div>
<br><div class="gmail_quote">2015-04-29 21:06 GMT+02:00 Mark Michelson <span dir="ltr"><<a href="mailto:mmichelson@digium.com" target="_blank">mmichelson@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hello,<br>
<br>
Asterisk is not a SIP proxy, so it does not forward SIP traffic to
destinations. In your case, you're likely seeing a 489 response
because Asterisk only knows about specific events in NOTIFY
requests ("refer" for transfers, "message-summary" for outbound
MWI subscriptions, "keep-alive" for certain devices' NAT
keepalives, and "call-completion" for call completion
subscriptions. Anything else is not understood by Asterisk, so you
get a 489 Bad Event response.<br>
<br>
If you want to send NOTIFYs from Asterisk, you must use AMI or the
CLI commands to do so.<div><div class="h5"><br>
<br>
On 04/28/2015 10:05 AM, Ludovic Gasc wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I've a SIP endpoint written in Python-AsyncIO that is
registered on an Asterisk 13 with chan_sip.</div>
<div><br>
</div>
<div>When I try to send a SIP NOTIFY to another hardphone
endpoint (it's to send commands), Asterisk anwsers me with:
"SIP/2.0 489 Bad event"</div>
<div><br>
</div>
<div>In Asterisk, even with debug level on SIP and in console, I
don't have a very interesting message:</div>
<div>[Apr 28 16:57:48] DEBUG[2932]: chan_sip.c:28297
handle_request_do: SIP message could not be handled, bad
request: b5262f5c-9061-4cb3-86c6-df629fd95a82
</div>
<div><br>
</div>
<div>An idea to have more details about this error ? Or it's
better to use pjsip ?</div>
<div><br>
</div>
<div>BTW, is it possible to send a SIP NOTIFY to another
endpoint via Asterisk, or it's forbidden ?</div>
<div><br>
</div>
<div>PS: I already know it's possible to send SIP NOTIFY via
AMI, I've already used that.</div>
<div>But the idea here it's a tool where we don't need an AMI
access with Asterisk to run.</div>
<div><br>
</div>
<div>Regards.<br clear="all">
<div>
<div>
<div dir="ltr">
<div>--<br>
<div style="font-size:small">
<div>Ludovic Gasc (GMLudo)</div>
</div>
<div style="font-size:small"><a href="http://www.gmludo.eu/" target="_blank">http://www.gmludo.eu/</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
asterisk-app-dev mailing list
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
<br></blockquote></div><br></div>