<div dir="ltr">Strange, A BYE should be replied with 200 OK, 481 (non matching dialogid), 408 request time out or similar responses, but it should never be challenged. Only INVITE, REGISTER and  PUBLISH requests are challenged with 401/407.<div>As per rfc3261 it should not challenge the BYE Requests.  </div><div>*The workaround is to add a SIP Proxy(opensips/kamillio) in between your Provider and Asterisk server and manipulate the BYE message with challenge.</div><div><br></div><div>Regards,</div><div>Muhammad Faheem</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 23, 2016 at 12:19 AM, Owais Ahmad <span dir="ltr"><<a href="mailto:millennium.bug@gmail.com" target="_blank">millennium.bug@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi all,<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">My provider proxy expects authentication header on BYE packets as well. Is there a way in asterisk to add this header on BYE packets? <br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">When proxy replies with a 401 on BYE, asterisk just retransmits the BYE packet.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Regards,<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Owais<br></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>