#include <string.h>#include <osp/osp.h>#include "../../dset.h"#include "../../usr_avp.h"#include "../../mem/mem.h"#include "../auth/api.h"#include "orig_transaction.h"#include "destination.h"#include "osptoolkit.h"#include "sipheader.h"#include "usage.h"

Go to the source code of this file.
Functions | |
| int | ospCheckRoute (struct sip_msg *msg, char *ignore1, char *ignore2) |
| int | ospCheckTranslation (struct sip_msg *msg, char *ignore1, char *ignore2) |
| static int | ospLoadRoutes (OSPTTRANHANDLE transaction, int destcount, char *source, char *sourcedev, char *origcalled, time_t authtime) |
| int | ospPrepareAllRoutes (struct sip_msg *msg, char *ignore1, char *ignore2) |
| static int | ospPrepareDestination (struct sip_msg *msg, int isfirst, int type, int format) |
| int | ospPrepareRoute (struct sip_msg *msg, char *ignore1, char *ignore2) |
| int | ospRequestRouting (struct sip_msg *msg, char *ignore1, char *ignore2) |
| static int | ospSetRpid (struct sip_msg *msg, osp_dest *dest) |
Variables | |
| char * | _osp_device_ip |
| char * | _osp_device_port |
| int | _osp_max_dests |
| OSPTPROVHANDLE | _osp_provider |
| int | _osp_redir_uri |
| int_str | _osp_snid_avpname |
| unsigned short | _osp_snid_avptype |
| auth_api_t | osp_auth |
| const int | OSP_BRANCH_ROUTE = 0 |
| const str | OSP_CALLING_NAME = {"_osp_calling_translated_", 24} |
| const int | OSP_FIRST_ROUTE = 1 |
| const int | OSP_MAIN_ROUTE = 1 |
| const int | OSP_NEXT_ROUTE = 0 |
| int ospCheckRoute | ( | struct sip_msg * | msg, | |
| char * | ignore1, | |||
| char * | ignore2 | |||
| ) |
Definition at line 385 of file orig_transaction.c.
References MODULE_RETURNCODE_FALSE, MODULE_RETURNCODE_TRUE, and ospCheckOrigDestination().
| int ospCheckTranslation | ( | struct sip_msg * | msg, | |
| char * | ignore1, | |||
| char * | ignore2 | |||
| ) |
Definition at line 460 of file orig_transaction.c.
References AVP_NAME_STR, LM_DBG, LM_ERR, MODULE_RETURNCODE_FALSE, MODULE_RETURNCODE_TRUE, int_str::n, NULL, and search_first_avp().
| static int ospLoadRoutes | ( | OSPTTRANHANDLE | transaction, | |
| int | destcount, | |||
| char * | source, | |||
| char * | sourcedev, | |||
| char * | origcalled, | |||
| time_t | authtime | |||
| ) | [static] |
Definition at line 72 of file orig_transaction.c.
References _osp_dest::authtime, _osp_dest::called, _osp_dest::callid, _osp_dest::callidsize, _osp_dest::calling, _osp_dest::destdev, _osp_dest::destinationCount, _osp_dest::host, LM_DBG, LM_ERR, LM_INFO, _osp_dest::networkid, NULL, _osp_dest::origcalled, OSP_DEF_DESTS, ospGetTransactionId(), ospInitDestination(), ospRecordEvent(), ospSaveOrigDestination(), _osp_dest::source, _osp_dest::srcdev, _osp_dest::supported, _osp_dest::timelimit, _osp_dest::token, _osp_dest::tokensize, _osp_dest::transid, _osp_dest::type, _osp_dest::validafter, and _osp_dest::validuntil.
Referenced by ospRequestRouting().
| int ospPrepareAllRoutes | ( | struct sip_msg * | msg, | |
| char * | ignore1, | |||
| char * | ignore2 | |||
| ) |
Definition at line 597 of file orig_transaction.c.
References _osp_redir_uri, MODULE_RETURNCODE_TRUE, OSP_FIRST_ROUTE, OSP_MAIN_ROUTE, OSP_NEXT_ROUTE, and ospPrepareDestination().
| static int ospPrepareDestination | ( | struct sip_msg * | msg, | |
| int | isfirst, | |||
| int | type, | |||
| int | format | |||
| ) | [static] |
Definition at line 490 of file orig_transaction.c.
References add_avp(), append_branch(), _osp_dest::authtime, AVP_NAME_STR, _osp_dest::called, _osp_dest::callid, _osp_dest::callidsize, _osp_dest::calling, _osp_dest::destinationCount, _osp_dest::host, _str::len, LM_DBG, LM_ERR, LM_INFO, MODULE_RETURNCODE_FALSE, MODULE_RETURNCODE_TRUE, int_str::n, NULL, OSP_BRANCH_ROUTE, OSP_FIRST_ROUTE, OSP_MAIN_ROUTE, ospAddOspHeader(), ospGetNextOrigDestination(), ospRebuildDestionationUri(), ospRecordOrigTransaction(), ospReportOrigSetupUsage(), ospSetRpid(), pkg_free, Q_UNSPECIFIED, rewrite_uri(), _str::s, _osp_dest::srcdev, _osp_dest::token, _osp_dest::tokensize, and _osp_dest::transid.
Referenced by ospPrepareAllRoutes(), and ospPrepareRoute().
| int ospPrepareRoute | ( | struct sip_msg * | msg, | |
| char * | ignore1, | |||
| char * | ignore2 | |||
| ) |
Definition at line 576 of file orig_transaction.c.
References MODULE_RETURNCODE_TRUE, OSP_BRANCH_ROUTE, OSP_FIRST_ROUTE, and ospPrepareDestination().
| int ospRequestRouting | ( | struct sip_msg * | msg, | |
| char * | ignore1, | |||
| char * | ignore2 | |||
| ) |
Definition at line 245 of file orig_transaction.c.
References _osp_device_ip, _osp_device_port, _osp_max_dests, _osp_provider, _osp_snid_avptype, AVP_VAL_STR, usr_avp::flags, _str::len, LM_ERR, LM_INFO, MODULE_RETURNCODE_ERROR, MODULE_RETURNCODE_FALSE, MODULE_RETURNCODE_TRUE, int_str::n, NULL, OSP_E164BUF_SIZE, OSP_STRBUF_SIZE, ospConvertAddress(), ospGetCallId(), ospGetFromUserpart(), ospGetRpidUserpart(), ospGetSourceAddress(), ospGetToUserpart(), ospGetUriUserpart(), ospLoadRoutes(), _str::s, int_str::s, search_first_avp(), and snprintf.
Definition at line 403 of file orig_transaction.c.
References add_avp(), AVP_VAL_STR, _osp_dest::calling, _str::len, LM_ERR, LM_WARN, NULL, OSP_STRBUF_SIZE, ospGetFromUserpart(), ospGetRpidUserpart(), auth_api::rpid_avp, auth_api::rpid_avp_type, _str::s, int_str::s, snprintf, and _osp_dest::source.
Referenced by ospPrepareDestination().
| char* _osp_device_ip |
| char* _osp_device_port |
| int _osp_max_dests |
| OSPTPROVHANDLE _osp_provider |
| int _osp_redir_uri |
| unsigned short _osp_snid_avptype |
| const int OSP_BRANCH_ROUTE = 0 |
Definition at line 55 of file orig_transaction.c.
Referenced by ospPrepareDestination(), and ospPrepareRoute().
| const str OSP_CALLING_NAME = {"_osp_calling_translated_", 24} |
Definition at line 56 of file orig_transaction.c.
| const int OSP_FIRST_ROUTE = 1 |
Definition at line 52 of file orig_transaction.c.
Referenced by ospPrepareAllRoutes(), ospPrepareDestination(), and ospPrepareRoute().
| const int OSP_MAIN_ROUTE = 1 |
Definition at line 54 of file orig_transaction.c.
Referenced by ospPrepareAllRoutes(), and ospPrepareDestination().
| const int OSP_NEXT_ROUTE = 0 |
1.5.6