#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../str.h"
#include "../../parser/msg_parser.h"


Go to the source code of this file.
Defines | |
| #define | BAD_EVENT_CODE 489 |
| #define | LCONTACT_BUF_SIZE 1024 |
Functions | |
| int | a_to_i (char *s, int len) |
| static str * | get_local_contact (struct sip_msg *msg) |
| int | send_error_reply (struct sip_msg *msg, int reply_code, str reply_str) |
| void | to64frombits (unsigned char *out, const unsigned char *in, int inlen) |
| static int | uandd_to_uri (str user, str domain, str *out) |
Definition in file utils_func.h.
| #define BAD_EVENT_CODE 489 |
Definition at line 48 of file utils_func.h.
Referenced by handle_publish(), handle_subscribe(), and send_error_reply().
| #define LCONTACT_BUF_SIZE 1024 |
| int a_to_i | ( | char * | s, | |
| int | len | |||
| ) |
Definition at line 93 of file utils_func.c.
Definition at line 80 of file utils_func.h.
References receive_info::dst_ip, receive_info::dst_port, ip_addr2a(), LCONTACT_BUF_SIZE, _str::len, len, LM_ERR, NULL, pkg_free, pkg_malloc, port, receive_info::proto, PROTO_NONE, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, sip_msg::rcv, and _str::s.
Referenced by extract_sdialog_info().
Definition at line 103 of file utils_func.c.
References add_lump_rpl(), BAD_EVENT_CODE, CRLF, CRLF_LEN, evlist::ev_count, evlist::events, EvList, _str::len, LM_ERR, LUMP_RPL_HDR, pres_ev::name, pres_ev::next, _str::s, sl_binds::send_reply, and slb.
Referenced by handle_publish(), and handle_subscribe().
| void to64frombits | ( | unsigned char * | out, | |
| const unsigned char * | in, | |||
| int | inlen | |||
| ) |
Definition at line 64 of file utils_func.c.
References base64digits.
Referenced by add_waiting_watchers().
Definition at line 50 of file utils_func.h.
References _str::len, LM_ERR, NULL, pkg_malloc, and _str::s.
Referenced by add_waiting_watchers(), add_watcher_list(), build_dlg_t(), extract_sdialog_info(), get_rule_node(), get_stored_info(), handle_subscribe(), http_get_rules_doc(), msg_presentity_clean(), pres_htable_restore(), query_xcap_update(), resource_subscriptions(), rls_handle_subscribe(), rls_notify_dlg(), and update_presentity().
1.5.6