浏览代码

drouting: Now the module compiles, but it's not tested

- fixed call to sip_resolvehost
Raul Alexis Betancor Santana 16 年之前
父节点
当前提交
1ea464a3ee
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      modules_k/drouting/routing.c

+ 1 - 2
modules_k/drouting/routing.c

@@ -351,8 +351,7 @@ add_dst(
 	}
 	/* note we discard the port discovered by the resolve function - we are
 	interested only in the port that was actually configured. */
-	if ( (he=sip_resolvehost( &uri.host, NULL, &uri.proto,
-	(uri.type==SIPS_URI_T), 0))==0 ) {
+	if ( (he=sip_resolvehost( &uri.host, NULL, (char*)(void*)&uri.proto)==0 )) {
 		if(dr_force_dns)
 		{
 			LM_ERR("cannot resolve <%.*s>\n",