Module: sip-router
Branch: rbetancor/drouting
Commit: 1ea464a3ee271810a560ca3c4cee0e96d8790027
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1ea464a…
Author: Raul Alexis Betancor Santana <rabs(a)dimension-virtual.com>
Committer: Raul Alexis Betancor Santana <rabs(a)dimension-virtual.com>
Date: Thu Jul 2 18:08:52 2009 +0100
drouting: Now the module compiles, but it's not tested
- fixed call to sip_resolvehost
---
modules_k/drouting/routing.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules_k/drouting/routing.c b/modules_k/drouting/routing.c
index 79f3e73..618f413 100644
--- a/modules_k/drouting/routing.c
+++ b/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",