Fixed message parameter name. Add iq namespace to message only for set/get type.

git-svn-id: http://voip.null.ro/svn/yate@2900 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-11-05 15:40:49 +00:00
parent 73b051b6f5
commit bdb2bd4ec3
1 changed files with 3 additions and 2 deletions

View File

@ -1289,7 +1289,7 @@ bool YJBEngine::handleMsgExecute(Message& msg)
else {
// Directed chat
if (!called.resource())
called.resource(msg.getValue("called_resource"));
called.resource(msg.getValue("called_instance"));
JBClientStream* stream = called.resource() ? findClientStream(true,called) : 0;
bool ok = stream && stream->flag(flags);
if (ok) {
@ -2634,7 +2634,8 @@ void JBPendingWorker::processIq(JBPendingJob& job)
m.addParam("to_instance",ev->to().resource());
addValidParam(m,"id",ev->id());
addValidParam(m,"type",ev->stanzaType());
addValidParam(m,"xmlns",TelEngine::c_safe(xmlns));
if (!respond)
addValidParam(m,"xmlns",TelEngine::c_safe(xmlns));
m.addParam(new NamedPointer("xml",ev->releaseXml()));
if (Engine::dispatch(m)) {
if (respond) {