Index: res/res_features.c =================================================================== --- res/res_features.c (revision 146037) +++ res/res_features.c (working copy) @@ -2104,6 +2113,11 @@ pu = parkinglot; while(pu) { if (pu->parkingnum == park) { + if (pu->chan->pbx) { /* do not allow call to be picked up until the PBX thread is finished */ + ast_mutex_unlock(&parking_lock); + ast_module_user_remove(u); + return -1; + } if (pl) pl->next = pu->next; else