Public feed #379451

Someone

public text v1 · immutable
Raw Edit
·published 2007-03-03 08:14 UTC
rendered paste body
 ERROR[955]: pbx.c:5708 pbx_builtin_serialize_variables: Data Buffer Size Exceeded!

static void set_queue_variables(struct queue_ent *qe)
{

       char interfacevar[256]="";
       float sl = 0;

       if (qe->parent->setqueuevar) {
       sl = 0;
       if (qe->parent->callscompleted > 0)
               sl = 100 * ((float) qe->parent->callscompletedinsl / (float) qe->parent->callscompleted);

       snprintf(interfacevar,sizeof(interfacevar),
               "QUEUEMAX=%d|QUEUESTRATEGY=%s|QUEUECALLS=%d|QUEUEHOLDTIME=%d|QUEUECOMPLETED=%d|QUEUEABANDONED=%d|QUEUESRVLEVEL=%d|QUEUESRVLEVELPERF=%2.1f",
               qe->parent->maxlen, int2strat(qe->parent->strategy), qe->parent->count, qe->parent->holdtime, qe->parent->callscompleted,
               qe->parent->callsabandoned,  qe->parent->servicelevel, sl);

       pbx_builtin_setvar(qe->chan, interfacevar);
       }
}