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:
parent
71f62c2ade
commit
8c420d6d11
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue