Răsfoiți Sursa

*** empty log message ***

Bogdan-Andrei Iancu 24 ani în urmă
părinte
comite
7f56058ad9
2 a modificat fișierele cu 29 adăugiri și 20 ștergeri
  1. 24 1
      modules/tm/t_funcs.c
  2. 5 19
      modules/tm/t_funcs.h

+ 24 - 1
modules/tm/t_funcs.c

@@ -4,7 +4,30 @@
 struct cell         *T;
 unsigned int     global_msg_id;
 struct s_table*  hash_table;
-int                      sock_fd;
+
+
+struct cell* t_lookupOriginalT(  struct s_table* hash_table , struct sip_msg* p_msg );
+int t_reply_matching( struct s_table* , struct sip_msg* , struct cell** , unsigned int*  );
+int t_store_incoming_reply( struct cell* , unsigned int , struct sip_msg* );
+int t_relay_reply( struct cell* , unsigned int , struct sip_msg* );
+int t_check( struct s_table* , struct sip_msg*  );
+int t_all_final( struct cell * );
+int t_build_and_send_ACK( struct cell *Trans , unsigned int brach );
+int relay_lowest_reply_upstream( struct cell *Trans , struct sip_msg *p_msg );
+int push_reply_from_uac_to_uas( struct sip_msg * , unsigned int );
+int t_cancel_branch(unsigned int branch); //TO DO
+
+int send_udp_to( char *buf, unsigned buflen, struct sockaddr_in*  to, unsigned tolen );
+
+void retransmission_handler( void *);
+void final_response_handler( void *);
+void wait_handler( void *);
+void delete_handler( void *);
+
+int add_branch_label( struct cell *Trans, struct sip_msg *p_msg , int branch );
+
+
+
 
 
 

+ 5 - 19
modules/tm/t_funcs.h

@@ -75,24 +75,10 @@ int t_retransmit_reply( struct sip_msg *  );
 
 
 
-struct cell* t_lookupOriginalT(  struct s_table* hash_table , struct sip_msg* p_msg );
-int t_reply_matching( struct s_table* , struct sip_msg* , struct cell** , unsigned int*  );
-int t_store_incoming_reply( struct cell* , unsigned int , struct sip_msg* );
-int t_relay_reply( struct cell* , unsigned int , struct sip_msg* );
-int t_check( struct s_table* , struct sip_msg*  );
-int t_all_final( struct cell * );
-int t_build_and_send_ACK( struct cell *Trans , unsigned int brach );
-int relay_lowest_reply_upstream( struct cell *Trans , struct sip_msg *p_msg );
-int push_reply_from_uac_to_uas( struct sip_msg * , unsigned int );
-int t_cancel_branch(unsigned int branch); //TO DO
-
-int send_udp_to( char *buf, unsigned buflen, struct sockaddr_in*  to, unsigned tolen );
-
-void retransmission_handler( void *);
-void final_response_handler( void *);
-void wait_handler( void *);
-void delete_handler( void *);
-
-int add_branch_label( struct cell *Trans, struct sip_msg *p_msg , int branch );
+
+/* Retransmits the last sent inbound reply.
+  */
+int t_send_reply( struct sip_msg *  );
+
 
 #endif