mod.h File Reference


Detailed Description

IMS Service Control - SER module interface.

Author:
Dragos Vingarzan vingarzan -at- fokus dot fraunhofer dot de

Definition in file mod.h.

#include "../../sr_module.h"

Go to the source code of this file.

Defines

#define M_NAME   "ISC"
#define ISC_RETURN_BREAK   0
 SER routing script return and break execution.
#define ISC_RETURN_TRUE   1
 SER routing script return true.
#define ISC_RETURN_FALSE   -1
 SER routing script return false.
#define ISC_RETURN_ERROR   -2
 SER routing script return error.
#define ISC_MSG_FORWARDED   0
 Message was forwarded to AS.
#define ISC_MSG_NOT_FORWARDED   1
 Message was not forwarded to AS.
#define ISC_NOT_A_REQUEST   2
 Message is not a request.
#define IMS_USER_NOT_REGISTERED   0
 User Not Registered.
#define IMS_USER_REGISTERED   1
 User registered.
#define IMS_USER_UNREGISTERED   -1
 User unregistered (not registered but with services for unregistered state).
#define STR_SHM_DUP(dest, src, txt)
#define STR_PKG_DUP(dest, src, txt)
#define STR_APPEND(dst, src)

Enumerations

enum  dialog_direction { DLG_MOBILE_ORIGINATING = 0, DLG_MOBILE_TERMINATING = 1, DLG_MOBILE_UNKNOWN = 2 }
 Direction of the dialog. More...


Define Documentation

#define M_NAME   "ISC"

Definition at line 177 of file mod.h.

#define ISC_RETURN_BREAK   0

SER routing script return and break execution.

Definition at line 180 of file mod.h.

Referenced by ISC_from_AS(), and ISC_match_filter().

#define ISC_RETURN_TRUE   1

SER routing script return true.

Definition at line 182 of file mod.h.

Referenced by isc_forward(), ISC_from_AS(), ISC_is_session_continued(), and isc_third_party_reg().

#define ISC_RETURN_FALSE   -1

SER routing script return false.

Definition at line 184 of file mod.h.

Referenced by ISC_from_AS(), ISC_is_session_continued(), ISC_match_filter(), ISC_match_filter_reg(), and isc_third_party_reg().

#define ISC_RETURN_ERROR   -2

SER routing script return error.

Definition at line 186 of file mod.h.

Referenced by isc_forward(), and ISC_is_session_continued().

#define ISC_MSG_FORWARDED   0

Message was forwarded to AS.

Definition at line 189 of file mod.h.

#define ISC_MSG_NOT_FORWARDED   1

Message was not forwarded to AS.

Definition at line 191 of file mod.h.

Referenced by ISC_match_filter().

#define ISC_NOT_A_REQUEST   2

Message is not a request.

Definition at line 193 of file mod.h.

#define IMS_USER_NOT_REGISTERED   0

User Not Registered.

Definition at line 197 of file mod.h.

Referenced by isc_get_terminating_user(), and r_is_not_registered_id().

#define IMS_USER_REGISTERED   1

User registered.

Definition at line 199 of file mod.h.

Referenced by isc_get_terminating_user(), r_is_registered_id(), S_lookup(), and update_contacts().

#define IMS_USER_UNREGISTERED   -1

User unregistered (not registered but with services for unregistered state).

Definition at line 201 of file mod.h.

Referenced by r_is_unregistered_id().

#define STR_SHM_DUP ( dest,
src,
txt   ) 

Value:

{\
    if ((src).len==0) {\
        (dest).s=0;\
        (dest).len=0;\
    }else {\
        (dest).s = shm_malloc((src).len);\
        if (!(dest).s){\
            LOG(L_ERR,"ERR:"M_NAME":"txt": Error allocating %d bytes\n",(src).len);\
            (dest).len = 0;\
            goto out_of_memory;\
        }else{\
            (dest).len = (src).len;\
            memcpy((dest).s,(src).s,(src).len);\
        }\
    }\
}

Definition at line 203 of file mod.h.

Referenced by new_p_dialog(), new_r_contact(), new_r_ipsec(), new_r_notification(), new_r_security(), new_r_subscriber(), new_r_subscription(), new_s_dialog(), new_scscf_list(), P_save_dialog(), P_update_dialog(), S_is_authorized(), S_save_dialog(), S_update_dialog(), save_dialog_routes(), update_contacts(), update_r_contact(), update_r_public(), and update_r_public_previous_lock().

#define STR_PKG_DUP ( dest,
src,
txt   ) 

Value:

{\
    if ((src).len==0) {\
        (dest).s=0;\
        (dest).len=0;\
    }else {\
        (dest).s = pkg_malloc((src).len);\
        if (!(dest).s){\
            LOG(L_ERR,"ERRL:"M_NAME":"txt": Error allocating %d bytes\n",(src).len);\
            (dest).len = 0;\
            goto out_of_memory;\
        }else{\
            (dest).len = (src).len;\
            memcpy((dest).s,(src).s,(src).len);\
        }\
    }\
}

Definition at line 221 of file mod.h.

Referenced by I_scscf_select(), I_THIG_add_Path(), I_THIG_add_RR(), P_add_path(), P_add_require(), P_record_route(), P_remove_header_tag(), r_create_notifications(), S_is_record_routed(), and S_record_route().

#define STR_APPEND ( dst,
src   ) 

Value:

{memcpy((dst).s+(dst).len,(src).s,(src).len);\
        (dst).len = (dst).len + (src).len;}

Definition at line 240 of file mod.h.

Referenced by build_record_service_route(), cscf_add_p_charging_vector(), cscf_remove_first_route(), cscf_remove_own_route(), cscf_str_via_matching(), fix_parameters(), I_scscf_select(), I_THIG_encrypt_header(), P_assert_called_identity(), P_assert_identity(), P_enforce_dialog_routes(), P_enforce_service_routes(), P_enforce_via_list(), P_record_route(), P_remove_ck_ik(), P_security_401(), P_security_relay(), r_get_reginfo_full(), r_get_reginfo_partial(), r_send_subscribe(), r_send_third_party_reg(), release_call_confirmed(), release_call_previous(), release_call_s(), release_subscription(), S_add_allow(), S_add_p_asserted_identity(), S_add_p_charging_function_addresses(), S_add_service_route(), S_is_record_routed(), S_record_route(), S_SUBSCRIBE_reply(), and send_notification().


Enumeration Type Documentation

enum dialog_direction

Direction of the dialog.

Enumerator:
DLG_MOBILE_ORIGINATING 
DLG_MOBILE_TERMINATING  Originating.
DLG_MOBILE_UNKNOWN  Terminating.

Definition at line 245 of file mod.h.

00245                       {
00246     DLG_MOBILE_ORIGINATING=0,   
00247     DLG_MOBILE_TERMINATING=1,   
00248     DLG_MOBILE_UNKNOWN=2        
00249 };


Generated on Thu Oct 23 04:14:40 2008 for Open IMS Core CSCFs by  doxygen 1.5.2