Index: channels/chan_iax2.c =================================================================== --- channels/chan_iax2.c (revision 157288) +++ channels/chan_iax2.c (working copy) @@ -6271,7 +6271,7 @@ /* Make sure our call still exists, an INVAL at the right point may make it go away */ if (!iaxs[callno]) { - res = 0; + res = -1; goto return_unref; }