[OpenSIPS-Users] Callcenter module with dynamic/realtime agents+flows
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jun 29 13:10:15 EDT 2018
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180629/d72db921/attachment.html>
More information about the Users
mailing list