Mercurial > hg > freeDiameter
comparison extensions/app_sip/diamsip.h @ 368:a1f26147ec61
Corrected bugs on app_sip and rgwx_sip
author | Alexandre Westfahl <awestfahl@freediameter.net> |
---|---|
date | Sat, 03 Jul 2010 00:40:00 +0900 |
parents | da11085cf6d9 |
children | 8e260030f32c |
comparison
equal
deleted
inserted
replaced
367:a2c268b2d8fe | 368:a1f26147ec61 |
---|---|
81 void nonce_deletelistnonce(); | 81 void nonce_deletelistnonce(); |
82 */ | 82 */ |
83 | 83 |
84 | 84 |
85 | 85 |
86 static int ds_entry(); | 86 int ds_entry(); |
87 void fd_ext_fini(void); | 87 void fd_ext_fini(void); |
88 int diamsip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); | 88 int diamsip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); |
89 int diamsip_MAR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); | 89 int diamsip_MAR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act); |
90 #define SQL_GETPASSWORD "SELECT `password` FROM ds_users WHERE `username` ='%s'" | 90 #define SQL_GETPASSWORD "SELECT `password` FROM ds_users WHERE `username` ='%s'" |
91 #define SQL_GETPASSWORD_LEN 52 | 91 #define SQL_GETPASSWORD_LEN 52 |
100 #define SQL_GETSIPAOR_LEN 131 | 100 #define SQL_GETSIPAOR_LEN 131 |
101 | 101 |
102 #define SQL_CLEARFLAG "UPDATE ds_users SET `flag`=0 WHERE `username` ='%s'" | 102 #define SQL_CLEARFLAG "UPDATE ds_users SET `flag`=0 WHERE `username` ='%s'" |
103 #define SQL_CLEARFLAG_LEN 74 | 103 #define SQL_CLEARFLAG_LEN 74 |
104 | 104 |
105 static struct session_handler * ds_sess_hdl; | 105 extern struct session_handler * ds_sess_hdl; |
106 static struct session *dssess; | |
107 | 106 |
108 | 107 |
109 | 108 |
110 struct ds_nonce | 109 struct ds_nonce |
111 { | 110 { |
112 char *nonce; | 111 char *nonce; |
113 }; | 112 }; |
114 | 113 |
115 //Storage for some usefull AVPs | 114 //Storage for some usefull AVPs |
116 static struct { | 115 struct diamsip_dict{ |
117 struct dict_object * Auth_Session_State; | 116 struct dict_object * Auth_Session_State; |
118 struct dict_object * Auth_Application_Id; | 117 struct dict_object * Auth_Application_Id; |
119 struct dict_object * User_Name; | 118 struct dict_object * User_Name; |
120 struct dict_object * SIP_Auth_Data_Item; | 119 struct dict_object * SIP_Auth_Data_Item; |
121 struct dict_object * SIP_Authorization; | 120 struct dict_object * SIP_Authorization; |
136 struct dict_object * Digest_Username; | 135 struct dict_object * Digest_Username; |
137 struct dict_object * Digest_Method; | 136 struct dict_object * Digest_Method; |
138 struct dict_object * Digest_QOP; | 137 struct dict_object * Digest_QOP; |
139 struct dict_object * Digest_Algorithm; | 138 struct dict_object * Digest_Algorithm; |
140 struct dict_object * Digest_HA1; | 139 struct dict_object * Digest_HA1; |
141 } sip_dict; | 140 }; |
141 | |
142 extern struct diamsip_dict sip_dict; |