Hi
As am initiating a outbound call through background system and i need to call sip user by using call.route method moment call got answered.
Is it possible.
Initiating Outbound :
Message* notify = new Message("call.execute");
copyParams2(*notify, a, i);
notify->addParam("copyparams", "cdrtrack,link");
notify->addParam("cdrtrack", "false");
Engine::enqueue(notify);
Call.cdr Message Handler :
if (msg.getParam(YSTRING("operation"))->c_str() == YSTRING("update") &&
msg.getParam(YSTRING("status"))->c_str() == YSTRING("answered")) {
Message* notify = new Message("call.route");
notify->copyParam(msg,"billid");
notify->copyParam(msg,"caller");
notify->copyParam(msg,"called");
}