You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules/uac/api.h

30 lines
693 B

#ifndef UAC_API_H_
#define UAC_API_H_
#include "../../sr_module.h"
typedef int (*uac_replace_from_t)(sip_msg_t *, str *, str *);
typedef int (*uac_replace_to_t)(sip_msg_t *, str *, str *);
typedef int (*uac_req_send_t)(void);
typedef struct uac_binds {
uac_replace_from_t replace_from;
uac_replace_to_t replace_to;
uac_req_send_t req_send;
} uac_api_t;
typedef int (*bind_uac_f)(uac_api_t*);
int bind_uac(uac_api_t*);
inline static int load_uac_api(uac_api_t *uacb){
bind_uac_f bind_uac_exports;
if(!(bind_uac_exports=(bind_uac_f)find_export("bind_uac",1,0))){
LM_ERR("Failed to import bind_uac\n");
return -1;
}
return bind_uac_exports(uacb);
}
#endif /* UAC_API_H_ */