Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 69809) +++ channels/chan_sip.c (working copy) @@ -8824,6 +8824,8 @@ { struct sip_pvt *p = data; + sip_pvt_lock(p); + switch(state) { case AST_EXTENSION_DEACTIVATED: /* Retry after a while */ case AST_EXTENSION_REMOVED: /* Extension is gone */ @@ -8844,6 +8846,9 @@ if (option_verbose > 1) ast_verbose(VERBOSE_PREFIX_1 "Extension Changed %s new state %s for Notify User %s\n", exten, ast_extension_state2str(state), p->username); + + sip_pvt_unlock(p); + return 0; }