Index: asterisk/apps/app_meetme.c =================================================================== --- asterisk/apps/app_meetme.c (revision 376309) +++ asterisk/apps/app_meetme.c (working copy) @@ -6481,6 +6481,16 @@ } if (done) break; + + /* check that SLA station that originated trunk call is still alive */ + if (args->station && ast_device_state(args->station->device) == AST_DEVICE_NOT_INUSE) { + ast_debug(3, "Originating station device %s no longer active\n", args->station->device); + trunk_ref->trunk->chan = NULL; + break; + } + /* avoid tight loop... sleep for 1/10th second */ + ast_safe_sleep(trunk_ref->chan, 100); + } if (!trunk_ref->trunk->chan) {