Changeset 420:c8a61dabea55 in freeDiameter for extensions/test_sip/test_sip.h
- Timestamp:
- Jul 19, 2010, 4:46:33 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_sip/test_sip.h
r409 r420 34 34 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 35 35 *********************************************************************************************************/ 36 36 #include <freeDiameter/extension.h> 37 #include <sys/time.h> 38 #include <stdint.h> 39 #include <stdlib.h> 40 #include <stdio.h> 41 #include <gcrypt.h> 42 #include <string.h> 43 #include <mysql.h> 37 44 38 45 /* The module configuration */ 39 struct t est_sip_conf {46 struct ts_conf { 40 47 char * destination_sip; 41 48 char * destination_realm; … … 44 51 char * sip_aor; 45 52 }; 46 extern struct test_sip_conf * test_sip_conf; 47 53 extern struct ts_conf * ts_conf; 48 54 49 55 //Storage for some usefull AVPs … … 51 57 struct dict_object * Auth_Session_State; 52 58 struct dict_object * Auth_Application_Id; 59 struct dict_object * Destination_Host; 60 struct dict_object * Destination_Realm; 53 61 struct dict_object * User_Name; 62 struct dict_object * Session_Id; 54 63 struct dict_object * SIP_Auth_Data_Item; 55 64 struct dict_object * SIP_Authorization; … … 61 70 struct dict_object * SIP_Method; 62 71 struct dict_object * SIP_AOR; 72 struct dict_object * SIP_Deregistration_Reason; 73 struct dict_object * SIP_Reason_Code; 74 struct dict_object * SIP_Reason_Info; 63 75 struct dict_object * Digest_URI; 64 76 struct dict_object * Digest_Nonce; … … 76 88 77 89 extern struct sip_dict sip_dict; 90 extern struct session_handler * ts_sess_hdl; 78 91 92 int ts_entry(); 93 void fd_ext_fini(void); 79 94 80 95 int test_sip_LIR_cb(); 81 96 82 97 int test_sip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); 83 98 int test_sip_MAA_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); 84 99 int test_sip_RTR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); 100 int test_sip_LIA_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); 85 101 86
Note: See TracChangeset
for help on using the changeset viewer.