Index: src/psp_resolv.c =================================================================== RCS file: /cvsroot/partysip/partysip/src/psp_resolv.c,v retrieving revision 1.4 diff -u -3 -r1.4 psp_resolv.c --- src/psp_resolv.c 17 Jun 2002 11:40:08 -0000 1.4 +++ src/psp_resolv.c 2 Sep 2002 14:03:03 -0000 @@ -138,7 +138,7 @@ ppl_dns_query(&dns, address, "udp"); if (dns!=NULL) /* success! */ { - TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"Successfully resolved the domain!\n")); + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"Successfully resolved the domain '%s' udp!\n", address)); psp_core_dns_add_domain_result(dns); return; } @@ -147,11 +147,11 @@ ppl_dns_query_host(&dns, address, 5060); if (dns!=NULL) /* success! */ { - TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"INFO: Successfully resolved the hostname!\n")); + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"INFO: Successfully resolved the hostname '%s' 5060!\n", address)); psp_core_dns_add_domain_result(dns); return; } - TRACE(trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"hostname can't be resolved!\n")); + TRACE(trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"hostname '%s' can't be resolved!\n", address)); /* not found... We should add it in the "black list for a while" */ psp_core_dns_add_domain_error(address); } Index: src/sfp.c =================================================================== RCS file: /cvsroot/partysip/partysip/src/sfp.c,v retrieving revision 1.12 diff -u -3 -r1.12 sfp.c --- src/sfp.c 25 Jun 2002 17:05:43 -0000 1.12 +++ src/sfp.c 2 Sep 2002 14:03:03 -0000 @@ -384,7 +384,7 @@ (In this case, we are sure ips->name is not a domain name but a real FQDN.) */ if (ips!=NULL && (int)(one_inet_addr = inet_addr(ips->name)) == -1) { - TRACE(trace(__FILE__,__LINE__,OSIP_INFO3,NULL,"sfp module: Replacing with the FQDN for statefull transaction!\n")); + TRACE(trace(__FILE__,__LINE__,OSIP_INFO3,NULL,"sfp module: Replacing with the FQDN (%s) for statefull transaction!\n", ips->name)); sfree(url2->host); url2->host = sgetcopy(ips->name); } @@ -465,7 +465,7 @@ nict_set_destination(transaction->nict_context, sgetcopy(inet_ntoa(ips->sin.sin_addr)), ntohs(ips->sin.sin_port)); - TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"sfp module: The destination for the transaction is set to: %s.!\n", inet_ntoa(ips->sin.sin_addr))); + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"sfp module: The destination for the transaction is set to: '%s'.!\n", inet_ntoa(ips->sin.sin_addr))); } /* else, the usual processing is done */ transaction_add_event(transaction, evt); Index: src/slp.c =================================================================== RCS file: /cvsroot/partysip/partysip/src/slp.c,v retrieving revision 1.10 diff -u -3 -r1.10 slp.c --- src/slp.c 17 Jun 2002 16:49:18 -0000 1.10 +++ src/slp.c 2 Sep 2002 14:03:03 -0000 @@ -540,6 +540,7 @@ sfree(req); return -1; } + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"Checking if we are responsible for '%s'\n", route->url->host)); i = psp_core_is_responsible_for_this_route(route->url); if (i==0) /* yes, it is responsible! So we need to forward it to the next route element. */ Index: plugin/ls_sfull/ls_sfull.c =================================================================== RCS file: /cvsroot/partysip/partysip/plugin/ls_sfull/ls_sfull.c,v retrieving revision 1.7 diff -u -3 -r1.7 ls_sfull.c --- plugin/ls_sfull/ls_sfull.c 2 Jul 2002 15:15:03 -0000 1.7 +++ plugin/ls_sfull/ls_sfull.c 2 Sep 2002 14:03:03 -0000 @@ -150,6 +150,9 @@ /* in the case where we detect an IP address in the request-URI which is not the local proxy, then we should forward it to this destination. */ + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, + "ls_sfull plugin: checking if we are responsible for request-URI '%s'\n", + psp_req->request->strtline->rquri->host)); if (0==psp_core_is_responsible_for_this_request_uri(psp_req->request->strtline->rquri)) { psp_req_set_state(psp_req, PSP_CONTINUE); Index: plugin/ls_sless/ls_sless.c =================================================================== RCS file: /cvsroot/partysip/partysip/plugin/ls_sless/ls_sless.c,v retrieving revision 1.9 diff -u -3 -r1.9 ls_sless.c --- plugin/ls_sless/ls_sless.c 2 Jul 2002 15:15:03 -0000 1.9 +++ plugin/ls_sless/ls_sless.c 2 Sep 2002 14:03:03 -0000 @@ -429,6 +429,9 @@ /* in the case where we detect an IP address in the request-URI which is not the local proxy, then we should forward it to this destination. */ + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, + "ls_sless plugin: checking if we are responsible for request-URI '%s'\n", + psp_req->request->strtline->rquri->host)); if (0==psp_core_is_responsible_for_this_request_uri(psp_req->request->strtline->rquri)) { psp_req_set_state(psp_req, PSP_CONTINUE); Index: ppl/unix/ppldns.c =================================================================== RCS file: /cvsroot/partysip/partysip/ppl/unix/ppldns.c,v retrieving revision 1.17 diff -u -3 -r1.17 ppldns.c --- ppl/unix/ppldns.c 1 Sep 2002 21:46:19 -0000 1.17 +++ ppl/unix/ppldns.c 2 Sep 2002 14:03:03 -0000 @@ -375,17 +375,23 @@ strcat(zone, protocol); strcat(zone, "."); strcat(zone, domain); - + + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, "About to ask for '%s IN SRV'\n", zone)); + n = res_query( zone, C_IN, T_SRV, (unsigned char *)&answer, sizeof( answer ) ); - (void) free( zone ); - if ( n < (int)sizeof(HEADER) ) { + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, "Did not get a valid response for query '%s IN SRV'\n", zone)); + (void) free( zone ); return -1; } /* valid answer received. */ + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, "Got valid response for query '%s IN SRV'\n", zone)); + + (void) free( zone ); + /* now we must resolv all IP address... */ dns = (ppl_dns_entry_t*) smalloc(sizeof(ppl_dns_entry_t)); @@ -412,6 +418,8 @@ n = ppl_dns_gethostbyname(&(ip->sin), ip->name, ip->port); if (n!=PPL_SUCCESS) { + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, + "Hostname '%s' does not resolve", ip->name)); sfree(ip->name); ip->name=NULL; /* mark for deletion */ } @@ -434,8 +442,12 @@ REMOVE_ELEMENT(dns->dns_ips, ip); sfree(ip); } - else + else { next = ip->next; + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL, + "Hostname '%s' resolved to '%s'\n", + ip->name, inet_ntoa(ip->sin.sin_addr))); + } } *dest = dns; Index: src/osip_msg.c =================================================================== RCS file: /cvsroot/partysip/partysip/src/osip_msg.c,v retrieving revision 1.7 diff -u -3 -r1.7 osip_msg.c --- src/osip_msg.c 17 Jun 2002 11:40:08 -0000 1.7 +++ src/osip_msg.c 2 Sep 2002 14:03:03 -0000 @@ -293,6 +293,7 @@ msg_getroute(fwd,0,&route); if (route!=NULL) { + TRACE(trace(__FILE__,__LINE__,OSIP_INFO2,NULL,"Checking if we are responsible for '%s'\n", route->url->host)); i = psp_core_is_responsible_for_this_route(route->url); if (i==0) /* yes, it is */ {