浏览代码

pua_dialoginfo: use dlg api function get_dlg_varref()

- manual update to the new dlg api function replacing the old
  get_dlg_var()
Daniel-Constantin Mierla 3 年之前
父节点
当前提交
bfc5c2aacb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/pua_dialoginfo/pua_dialoginfo.c

+ 2 - 2
src/modules/pua_dialoginfo/pua_dialoginfo.c

@@ -559,7 +559,7 @@ struct dlginfo_cell* get_dialog_data(struct dlg_cell *dlg, int type, int disable
 
 		} else {
 			if(caller_dlg_var.len>0
-					&& (s = dlg_api.get_dlg_var(dlg, &caller_dlg_var))!=0) {
+					&& (s = dlg_api.get_dlg_varref(dlg, &caller_dlg_var))!=0) {
 				dlginfo->pubruris_caller =
 					(struct str_list*)shm_malloc(sizeof(struct str_list) + s->len + 1);
 				if (dlginfo->pubruris_caller==0) {
@@ -578,7 +578,7 @@ struct dlginfo_cell* get_dialog_data(struct dlg_cell *dlg, int type, int disable
 			}
 
 			if(callee_dlg_var.len>0
-					&& (s = dlg_api.get_dlg_var(dlg, &callee_dlg_var))!=0) {
+					&& (s = dlg_api.get_dlg_varref(dlg, &callee_dlg_var))!=0) {
 				dlginfo->pubruris_callee =
 					(struct str_list*)shm_malloc(sizeof(struct str_list) + s->len + 1);
 				if (dlginfo->pubruris_callee==0) {