|
@@ -317,6 +317,7 @@ musicclass = queuemusic\n\
|
|
|
\n",q,g_row[2]);
|
|
|
dJson = cJSON_Parse(g_row[4]);
|
|
|
memset(noanswer_dest,0,sizeof(noanswer_dest));
|
|
|
+ printf("parse json: id-%d, type-%s, exten-%s\n",cJSON_GetObjectItem(dJson, "id")->valueint, cJSON_GetObjectItem(dJson, "type")->valuestring, cJSON_GetObjectItem(dJson, "exten")->valuestring);
|
|
|
if(dJson)
|
|
|
{
|
|
|
if(strcmp(cJSON_GetObjectItem(dJson, "type")->valuestring, "hangup") == 0){
|
|
@@ -327,7 +328,7 @@ musicclass = queuemusic\n\
|
|
|
}
|
|
|
else if(strcmp(cJSON_GetObjectItem(dJson, "type")->valuestring, "user") == 0){
|
|
|
int id = 100000 + cJSON_GetObjectItem(dJson, "id")->valueint;
|
|
|
- sprintf(noanswer_dest,"Goto(manager-queue-%s,s,1)",id);
|
|
|
+ sprintf(noanswer_dest,"Goto(manager-queue-%d,s,1)",id);
|
|
|
}
|
|
|
else if(strcmp(cJSON_GetObjectItem(dJson, "type")->valuestring, "outcall") == 0){
|
|
|
sprintf(noanswer_dest,"Goto(CallingRule_OutCall,%s,1)",cJSON_GetObjectItem(dJson, "exten")->valuestring);
|
|
@@ -337,6 +338,7 @@ musicclass = queuemusic\n\
|
|
|
{
|
|
|
strcpy(noanswer_dest,"Goto(hangup,s,1)");
|
|
|
}
|
|
|
+ printf("parse success\n");
|
|
|
if(iCount > 0)
|
|
|
{
|
|
|
if(strcmp(g_row[2],"ringall") == 0){
|