Hi,
The flows and agents must be defined via the DB, there is no way around
this.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit 2018
http://www.opensips.org/events/Summit-2018Amsterdam
On 06/29/2018 07:56 PM, SamyGo wrote:
Hi,
Is it possible to have agents and flows created in realtime w/o them
being pre-defined into the DB ?
I'm thinking that I login agents to a flow when they Register and
handle calls in a flow w/o DB engaged. !
something like:
loadmodule "call_center.so"
modparam("call_center", "db_mode", 0)
So, what happens next is, I can dynamically create flow and login
agents into it.
if(is_method("REGISTER")){
$avp(flow_name) = $hdr(X-Queue-Name);
cc_agent_login("$avp(flow_name)","1");
}
...
...
if( $si = "PROVIDER" && is_method("INVITE") && !has_totag()) {
# some FlowName finding via DB query or rest_post or anything here
if (!cc_handle_call("$avp(flow_name")) {
send_reply("403","Cannot handle call");
exit;
}
}
I most certainly don't want to do MI fifo reloading and scripting
inside the opensips.cfg to make above happen but it is an option
available for me right now.
Awaiting positive feedback on this.
Regards,
Sammy
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users