[Home]

Summary:ASTERISK-07718: [patch] both 404 and 503 code responses sent when extension not found
Reporter:phsultan (phsultan)Labels:
Date Opened:2006-09-11 09:06:59Date Closed:2006-10-02 15:17:01
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) trunk-sched_destroy.1.patch
( 1) trunk-sched_destroy.2.patch
Description:Asterisk sends a 404 immediatly followed with a 503 response when trying to call an extension that cannot be found in sip.conf.

It looks like the SIP_NEEDDESTROY flag is useless in this part of chan_sip, the attached patch will test p->autokillid instead.

****** ADDITIONAL INFORMATION ******

Disclaimer sent.
Comments:By: Olle Johansson (oej) 2006-09-12 09:12:41

I have changed the use of needdestroy quite a bit lately... THanks for catching this, Philippe!

By: Olle Johansson (oej) 2006-09-12 09:18:10

Fix committed to svn trunk, rev 42826 with small change. (autkillid with a zero value is valid too).

By: phsultan (phsultan) 2006-09-13 11:31:50

Hi Olle!

The problem remains. Actually, the loop at line 13083 should be entered when no channel has been created (ex. extension not found) and the call has not been marked for destruction yet.

The attached patch should make Asterisk behave this way.

Enjoy VON!

By: Paul Cadach (pcadach) 2006-10-02 15:17:01

Fixed by revision 44078 in 1.4 branch, by revision 44079 in the SVN trunk.