Hi
i just want to copy all the parameters from dispatched message into new message, so that i can emit this message without missing any parameters.
Message* m = new Message("call.route");
m->copyParam(msg,"billid");
m->copyParam(msg,"peerid");
if (Engine::dispatch(m))
{
Message* notify = new Message("chan.masquerade");
notify->addParam("id", msg.getParam(YSTRING("id"))->c_str());
notify->addParam("message", "call.execute");
notify->copyParams(m,notify); // Like this i need to copy all the paramaters from dispatched message to new message.
}
By any loop or any default function available. ?
Kindly help me out