コード例 #1
0
ファイル: resolve.c プロジェクト: btriller/kamailio
/** wrapper function to recalculate the naptr and srv protocol preferences */
void reinit_proto_prefs(str *gname, str *name)
{
#ifdef USE_NAPTR
	init_naptr_proto_prefs();
#endif
	init_srv_proto_prefs();
}
コード例 #2
0
ファイル: resolve.c プロジェクト: miao606/kamailio
/* wrapper function to initialize the resolver at startup */
int resolv_init(void)
{
	int res = -1;
	_resolv_init();

#ifdef USE_NAPTR
	init_naptr_proto_prefs();
#endif
	/* init counter API only at startup
	 * This function must be called before DNS cache init method (if available)
	 */
	res = stat_init();
	return res;
}