Put the disconnect reason in the proper message parameter.

git-svn-id: http://voip.null.ro/svn/yate@6065 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-11-17 13:31:15 +00:00
parent 71f62c2ade
commit 8c420d6d11
1 changed files with 1 additions and 1 deletions

View File

@ -3824,7 +3824,7 @@ bool JsChannel::runNative(ObjList& stack, const ExpOperation& oper, GenObject* c
// there may be a race between chan.disconnected and call.drop so set in both
Message* msg = ja->getMsg(runner);
if (msg)
msg->setParam("reason",*op);
msg->setParam((ja->state() == JsAssist::Routing) ? "error" : "reason",*op);
}
ja->end();
Engine::enqueue(m);