Index: channels/chan_iax2.c =================================================================== --- channels/chan_iax2.c (revision 89272) +++ channels/chan_iax2.c (working copy) @@ -5350,7 +5350,7 @@ return_unref: if (p) peer_unref(p); - + ast_mutex_unlock(&iaxsl[callno]); return res; } @@ -6003,7 +6003,7 @@ return_unref: peer_unref(p); - + ast_mutex_unlock(&iaxsl[callno]); return res ? res : send_command_final(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_REGACK, 0, ied.buf, ied.pos, -1); } @@ -6042,7 +6042,7 @@ return_unref: peer_unref(p); - + ast_mutex_unlock(&iaxsl[callno]); return res ? res : send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_REGAUTH, 0, ied.buf, ied.pos, -1);; }