add: DBG(" routing tabel - call UNIMPLEMENTED\n ");
context: int get_req_destination( AAAMessage *msg, struct peer_chain **p_chain,												struct aaa_module **module ){	struct peer        *p;	struct aaa_module  *mod;	/* is Dest-Host present? */	if (msg->dest_host) {		/* dest-host avp present */		if (!msg->dest_realm) {			/* has dest-host but no dest-realm -> bogus msg */			return AAA_MISSING_AVP;		}		/* check the dest-host */		if (msg->dest_host->data.len==aaa_identity.len &&		strncmp(msg->dest_host->data.s, aaa_identity.s, aaa_identity.len) ) {			/* I'm the destination host */			*p_chain = 0;			*module = find_module(msg->applicationId);			return ((*module!=0)?0:AAA_APPLICATION_UNSUPPORTED);		} else {			/* I'm not the destination host -> am I peer with the dest-host? */			p = lookup_peer_by_identity( &(msg->dest_host->data) );			if (p) {				/* the destination host is one of my peers */				*p_chain = &(p->pc);				*module = 0;				return 0;			}			/* do routing based on dest realm */		}	} else {		if (!msg->dest_realm) {			/* no dest-host and no dest-realm -> it's local */			*p_chain = 0;			*module = find_module(msg->applicationId);			return ((*module!=0)?0:AAA_APPLICATION_UNSUPPORTED);		}		/* do routing based on dest realm */	}	/* do routing based on destination-realm AVP */	if (msg->dest_realm->data.len==aaa_realm.len &&	strncmp(msg->dest_realm->data.s, aaa_realm.s, aaa_realm.len) ) {		/* I'm the destination realm */		/* do I support the requested app_id? */		if ( (mod=find_module(msg->applicationId))!=0) {			/* I support the application localy */			*p_chain = 0;			*module = mod;			return 0;		} else {			/* do I have a peer in same realm that supports this app-Id? */			p = lookup_peer_by_realm_appid( &msg->dest_realm->data,				msg->applicationId );			if ( p ) {				/* forward the request to this peer */				*p_chain = &(p->pc);				*module = 0;				return 0;			} else {				return AAA_APPLICATION_UNSUPPORTED;			}		}	} else {		/* it's not my realm -> do routing based on script */		// TO DO		*p_chain = 0;		*module = 0;		return 0;	}	return 1;}