t_fwd.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * $Id$
  3. *
  4. *
  5. * Copyright (C) 2001-2003 Fhg Fokus
  6. *
  7. * This file is part of ser, a free SIP server.
  8. *
  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
  13. *
  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:
  17. * [email protected]
  18. *
  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.
  23. *
  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
  27. */
  28. #ifndef _T_FWD_H
  29. #define _T_FWD_H
  30. #include "../../proxy.h"
  31. typedef int (*tfwd_f)(struct sip_msg* p_msg , struct proxy_l * proxy );
  32. int t_replicate(struct sip_msg *p_msg, struct proxy_l * proxy );
  33. char *print_uac_request( struct cell *t, struct sip_msg *i_req,
  34. int branch, str *uri, int *len, struct socket_info *send_sock );
  35. void e2e_cancel( struct sip_msg *cancel_msg, struct cell *t_cancel, struct cell *t_invite );
  36. int e2e_cancel_branch( struct sip_msg *cancel_msg, struct cell *t_cancel, struct cell *t_invite, int branch );
  37. int add_uac( struct cell *t, struct sip_msg *request, str *uri, struct proxy_l *proxy );
  38. int t_forward_nonack( struct cell *t, struct sip_msg* p_msg, struct proxy_l * p );
  39. int t_forward_ack( struct sip_msg* p_msg );
  40. #endif