rendered paste body int retries = 5; char *carrier, *rounda1=NULL, *costa=NULL,*rounda2=NULL, *whcost=NULL, *clrounda1=NULL, *clrounda2=NULL, hangupcause[30], *sipnum, *sipverb; //Dispox added to pull DIALSTATUS information char rounding[5], clrounding[5], *custid; carrier = pbx_builtin_getvar_helper(chan,"CARRIER"); rounda1 = pbx_builtin_getvar_helper(chan,"ROUND1"); rounda2 = pbx_builtin_getvar_helper(chan,"ROUND2"); clrounda1 = pbx_builtin_getvar_helper(chan,"CLROUND1"); clrounda2 = pbx_builtin_getvar_helper(chan,"CLROUND2"); costa = pbx_builtin_getvar_helper(chan,"COST"); custid = pbx_builtin_getvar_helper(chan,"CUSTID"); codename = pbx_builtin_getvar_helper(chan,"CODENAME"); whcost = pbx_builtin_getvar_helper(chan,"WHCOST"); sipverb = pbx_builtin_getvar_helper(chan,"SIPRESPONSECODE"); sipnum = pbx_builtin_getvar_helper(chan,"SIPRESPONSECODENUM"); sprintf(hangupcause,"%s-%s",sipnum,sipverb); if ((option_verbose > 2)) ast_verbose(VERBOSE_PREFIX_3 "Variables Pulled from Dialplan... Proceeding..\n"); ast_mutex_unlock(&chan->lock); if (!rounda1 || !rounda2){ roundd1= 30; roundd2= 6; } else { if (strlen(rounda1) == 0 || strlen(rounda2) == 0){ roundd1 = 30; roundd2 = 6; }else{ roundd1 = atof(rounda1); roundd2 = atof(rounda2); } } if (!clrounda1 || !clrounda2){ clroundd1 = 30; clroundd2 = 6; }else{ if (strlen(clrounda1) == 0 || strlen(clrounda2) == 0){ clroundd1 = 1; clroundd2 = 1;