Fixed call.drop parameters set when a call is terminated. Set 'busy' reason for incoming, not answered calls.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4022 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
78eeb38473
commit
f27d6a6266
|
@ -2481,16 +2481,16 @@ void Client::callTerminate(const String& id, const char* reason, const char* err
|
|||
Message* m = new Message("call.drop");
|
||||
m->addParam("id",id);
|
||||
if (hangup || cancel) {
|
||||
if (!error && cancel)
|
||||
error = "cancelled";
|
||||
if (!reason)
|
||||
reason = cancel ? s_cancelReason : s_hangupReason;
|
||||
if (!reason && cancel)
|
||||
reason = "cancelled";
|
||||
if (!error)
|
||||
error = cancel ? s_cancelReason : s_hangupReason;
|
||||
}
|
||||
else {
|
||||
if (!error)
|
||||
error = "rejected";
|
||||
if (!reason)
|
||||
reason = s_rejectReason;
|
||||
reason = "busy";
|
||||
if (!error)
|
||||
error = s_rejectReason;
|
||||
}
|
||||
m->addParam("error",error,false);
|
||||
m->addParam("reason",reason,false);
|
||||
|
|
Loading…
Reference in New Issue