I have a application with multiple instances. When only I have one "SendAction" works perfectly but when I have two or more instances always obtain "Timeout". Example code:
OriginateAction oc = new OriginateAction();
oc.Context = llamada.contexto;
oc.Priority = "1";
oc.Channel = "SIP/" + llamada.hasta + "@" + llamada.proveedor;
oc.CallerId = (llamada.callerID != "" ? llamada.callerID : llamada.hasta);
oc.Exten = llamada.origen;
oc.Timeout = 27000;
oc.Async = true;
oc.SetVariable("ID", llamada.hasta);
oc.ActionId = ObtenerActionId();
try
{
originateResponse = _centralita.SendAction(oc,timeOutPeticiones);
}
catch (Exception ex)
{
Console.WriteLine("Fallo al realizar la llamada");
}
return oc.ActionId;
Interestingly, the call is made but I do not receive the event with the assigned callerid.
Comment that not only happens when doing the Originate, for example also happens with QueueStatusAction so I understand that it is a problem of the "SendAction" function
Can We help me?
I have a application with multiple instances. When only I have one "SendAction" works perfectly but when I have two or more instances always obtain "Timeout". Example code:
Interestingly, the call is made but I do not receive the event with the assigned callerid.
Comment that not only happens when doing the Originate, for example also happens with QueueStatusAction so I understand that it is a problem of the "SendAction" function
Can We help me?