As i need an billid, incoming channel ID(sig/1),queue_name and other some other value that's should necessary to validate some condition and append into another message.
For Ex :
Once call.answered message received from sip(sip/1) then need to emit chan.connect with sip/1 with sig/1. Where i can id for sip/1 but i need to get value of sig/1 through some variable. Like queue_name on chan.disconnected message need to emit new message to queue module.
And Also original billid which calls to queue module is not passing into Queue_Out Module, so need value to append to sip outleg.
Current Call.answered handler :
if (msg.getValue("id") == m_partycallid) {
msg.setParam("reason", "pickup");
return true;
}
else if (msg.getValue("targetid") == m_ourcallid)
{
msg.setParam("targetid", m_partycallid);
Message* mc = new Message("chan.connect");
mc->copyParam(msg, "id");
mc->addParam("targetid", m_partycallid);
Engine::dispatch(mc);
return true;
}
return false;
Value want to store :
- billid
- queue_name
- partycallid
- ..
Want to Store into Cache Memory/ Temp File Storage/ :
Store Like : JSON Object/Object List/Single Variable
Just for scenario ,It would be great if values are stored into ObjectList from Queue Module and access it on Queue_Outgoing Module.