Forward call drop reason to the local call leg.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1908 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-04-15 14:16:27 +00:00
parent 6184218227
commit d524c6a060
1 changed files with 13 additions and 0 deletions

View File

@ -345,6 +345,7 @@ public:
virtual bool msgAnswered(Message& msg);
virtual bool msgTone(Message& msg, const char* tone);
virtual bool msgText(Message& msg, const char* text);
virtual bool msgDrop(Message& msg, const char* reason);
virtual bool msgUpdate(Message& msg);
virtual bool callRouted(Message& msg);
virtual void callAccept(Message& msg);
@ -3347,6 +3348,18 @@ bool YateSIPConnection::msgText(Message& msg, const char* text)
return false;
}
bool YateSIPConnection::msgDrop(Message& msg, const char* reason)
{
if (!Channel::msgDrop(msg,reason))
return false;
int code = lookup(reason,dict_errors);
if (code >= 300) {
m_reasonCode = code;
m_reason = lookup(code,SIPResponses,reason);
}
return true;
}
bool YateSIPConnection::msgUpdate(Message& msg)
{
String* oper = msg.getParam("operation");