--- pbx.c 2011-12-23 10:09:16.000000000 +0800 +++ pbxb.c 2012-08-06 16:41:59.504934919 +0800 @@ -9022,6 +9022,8 @@ goto outgoing_app_cleanup; } } + if ( *reason == AST_CONTROL_HANGUP ) + res = 0; } } else {