00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00057 #ifndef S_CSCF_REGISTRAR_H_
00058 #define S_CSCF_REGISTRAR_H_
00059
00060 #include "../../sr_module.h"
00061
00063 #define IMS_USER_NOT_REGISTERED 0
00064
00065 #define IMS_USER_REGISTERED 1
00066
00067 #define IMS_USER_UNREGISTERED -1
00068
00069 #define IMS_USER_DEREGISTERED -2
00070
00071 void registrar_timer(unsigned int ticks, void* param);
00072
00073 int S_assign_server(struct sip_msg *msg,char *str1,char *str2 );
00074
00075 int S_assign_server_unreg(struct sip_msg *msg,char *str1,char *str2 );
00076
00077 int S_update_contacts(struct sip_msg *msg,char *str1,char *str2);
00078
00079 int SAR(struct sip_msg *msg, str realm,str public_identity, str private_identity,
00080 int assignment_type,int data_available);
00081
00082 int save_location(struct sip_msg *msg,int assignment_type,str *xml,str *ccf1,str *ccf2,str *ecf1,str *ecf2);
00083
00084
00085 int S_lookup(struct sip_msg *msg,char *str1,char *str2);
00086
00087
00088 int r_is_registered_id(str public_identity);
00089 int r_is_not_registered_id(str public_identity);
00090 int r_is_unregistered_id(str public_identity);
00091
00092 int S_is_not_registered(struct sip_msg *msg,char *str1,char *str2);
00093
00094 int S_term_registered(struct sip_msg *msg,char *str1,char *str2);
00095 int S_term_not_registered(struct sip_msg *msg,char *str1,char *str2);
00096 int S_term_unregistered(struct sip_msg *msg,char *str1,char *str2);
00097
00098
00099 int S_orig_registered(struct sip_msg *msg,char *str1,char *str2);
00100 int S_orig_not_registered(struct sip_msg *msg,char *str1,char *str2);
00101 int S_orig_unregistered(struct sip_msg *msg,char *str1,char *str2);
00102
00103
00104
00105 int S_mobile_originating(struct sip_msg *msg,char *str1,char *str2);
00106
00107 int S_originating_barred(struct sip_msg *msg,char *str1,char *str2);
00108
00109 int S_terminating_barred(struct sip_msg *msg,char *str1,char *str2);
00110
00111 int S_add_p_asserted_identity(struct sip_msg *msg,char *str1,char *str2);
00112
00113 #endif //S_CSCF_REGISTRAR_H_