rem: send_udp( ack_buf, p-ack_buf, &(T->outbound_request[branch]->to) , sizeof(struct sockaddr_in) );
add: udp_send( ack_buf, p-ack_buf, &(T->outbound_request[branch]->to) , sizeof(struct sockaddr_in) );
context: int t_build_and_send_ACK( struct cell *Trans, unsigned int branch){    struct sip_msg* p_msg = T->inbound_request;    struct via_body *via;    struct hdr_field *hdr;   char *ack_buf, *p;    unsigned int len;   ack_buf = (char *)malloc( 1024 * 10 );   p = ack_buf;   /* first line */   memcpy( p , "ACK " , 4);   p += 4;   memcpy( p , p_msg->first_line.u.request.uri.s , p_msg->first_line.u.request.uri.len );   p += p_msg->first_line.u.request.uri.len+1;   *(p++)=' ';   memcpy( p , p_msg->first_line.u.request.version.s , p_msg->first_line.u.request.version.len );   p += p_msg->first_line.u.request.version.len;   *(p++) = '\n';   /* insert our via */   memcpy( p , "Via: SIP/2.0/UDP " , 17);   p += 17;   memcpy( p , names[0] , names_len[0] );   p += names_len[0];   *(p++) = ':';   memcpy( p , port_no_str , port_no_str_len );   p += port_no_str_len;   /* VIA (first we have to find the header) */   for( hdr=p_msg->headers ; hdr ; hdr=hdr->next  )      if ( hdr->type==HDR_VIA || hdr->type==HDR_FROM || hdr->type==HDR_CALLID )      {         len = (hdr->body.s+hdr->body.len) - hdr->name.s;         memcpy( p , p_msg->orig+(hdr->name.s-p_msg->buf) , len );         p += len;         *(p++) = '\n';      }      else if ( hdr->type==HDR_CSEQ )      {         len = (get_cseq(p_msg)->number.s+get_cseq(p_msg)->number.len) - hdr->name.s;         memcpy( p , p_msg->orig+(hdr->name.s-p_msg->buf) , len );         p += len;         memcpy( p , " ACK\n" , 5);         p += 5;      }      if ( hdr->type==HDR_TO )      {         len = (T->outbound_response[branch]->to->body.s+T->outbound_response[branch]->to->body.len) - T->outbound_response[branch]->to->name.s;         memcpy( p , T->outbound_response[branch]->orig+(T->outbound_response[branch]->to->name.s-T->outbound_response[branch]->buf) , len );         p += len;         *(p++) = '\n';      }   /* end of message*/   *(p++) = '\n';   /* sends the ACK message to the same destination as the INVITE */   send_udp( ack_buf, p-ack_buf, &(T->outbound_request[branch]->to) , sizeof(struct sockaddr_in) );   /* free mem*/   free( ack_buf );   return 0;}