Skip to content

SendAction Timeout in multiple instances #188

@mjcuadrado

Description

@mjcuadrado

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in the project that needs to be fixed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions