Navigation


Changeset 420:c8a61dabea55 in freeDiameter for extensions/test_sip/test_sip.h


Ignore:
Timestamp:
Jul 19, 2010, 4:46:33 PM (14 years ago)
Author:
Alexandre Westfahl <awestfahl@freediameter.net>
Branch:
default
Phase:
public
Message:

app_sip:Added LIR/LIA for SL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_sip/test_sip.h

    r409 r420  
    3434* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                                                             *
    3535*********************************************************************************************************/
    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>
    3744
    3845/* The module configuration */
    39 struct test_sip_conf {
     46struct ts_conf {
    4047        char * destination_sip;
    4148        char * destination_realm;
     
    4451        char * sip_aor;
    4552};
    46 extern struct test_sip_conf * test_sip_conf;
    47 
     53extern struct ts_conf * ts_conf;
    4854
    4955//Storage for some usefull AVPs
     
    5157        struct dict_object * Auth_Session_State;
    5258        struct dict_object * Auth_Application_Id;
     59        struct dict_object * Destination_Host;
     60        struct dict_object * Destination_Realm;
    5361        struct dict_object * User_Name;
     62        struct dict_object * Session_Id;
    5463        struct dict_object * SIP_Auth_Data_Item;
    5564        struct dict_object * SIP_Authorization;
     
    6170        struct dict_object * SIP_Method;
    6271        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;
    6375        struct dict_object * Digest_URI;               
    6476        struct dict_object * Digest_Nonce;
     
    7688
    7789extern  struct sip_dict  sip_dict;
     90extern struct session_handler * ts_sess_hdl;
    7891
     92int ts_entry();
     93void fd_ext_fini(void);
    7994
    80 
     95int test_sip_LIR_cb();
    8196
    8297int test_sip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act);
    8398int test_sip_MAA_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act);
    8499int test_sip_RTR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act);
     100int test_sip_LIA_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act);
    85101
    86 
Note: See TracChangeset for help on using the changeset viewer.