5 * Copyright (C) 2001-2003 FhG Fokus
7 * This file is part of ser, a free SIP server.
9 * ser is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version
14 * For a license to use the ser software under conditions
15 * other than those described here, or to purchase support for this
16 * software, please contact iptel.org by e-mail at the following addresses:
19 * ser is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 * 2003-02-18 added proto to various function prototypes (andrei)
32 * 2007-05-02 added unmatched_cancel & t_forward_cancel (andrei)
41 #include "../../proxy.h"
44 enum unmatched_cancel_t { UM_CANCEL_STATEFULL=0, UM_CANCEL_STATELESS,
47 typedef int (*tfwd_f)(struct sip_msg* p_msg , struct proxy_l * proxy );
48 typedef int (*taddblind_f)( /*struct cell *t */ );
50 void t_on_branch(unsigned int go_to);
51 unsigned int get_on_branch();
52 int t_replicate(struct sip_msg *p_msg, struct proxy_l * proxy, int proto);
53 /* -- not use outside t_fwd.c for noe
54 char *print_uac_request( struct cell *t, struct sip_msg *i_req,
55 int branch, str *uri, unsigned int *len, struct dest_info *dst);
57 void e2e_cancel( struct sip_msg *cancel_msg, struct cell *t_cancel, struct cell *t_invite );
58 int e2e_cancel_branch( struct sip_msg *cancel_msg, struct cell *t_cancel, struct cell *t_invite, int branch );
59 int add_uac( struct cell *t, struct sip_msg *request, str *uri, str* next_hop,
60 struct proxy_l *proxy, int proto );
61 #ifdef USE_DNS_FAILOVER
62 int add_uac_dns_fallback( struct cell *t, struct sip_msg* msg,
63 struct ua_client* old_uac,
66 int add_blind_uac( /* struct cell *t */ );
67 int t_forward_nonack( struct cell *t, struct sip_msg* p_msg,
68 struct proxy_l * p, int proto);
69 int t_forward_cancel(struct sip_msg* p_msg , struct proxy_l * proxy,
70 int proto, struct cell** tran);
71 int t_forward_ack( struct sip_msg* p_msg );
72 int t_send_branch( struct cell *t, int branch, struct sip_msg* p_msg ,
73 struct proxy_l * proxy, int lock_replies);
74 int t_relay_cancel(struct sip_msg* p_msg);
76 int reparse_on_dns_failover_fixup(void *handle, str *name, void **val);