32 #define dialog_ref(dialog, tag) ao2_t_bump(dialog, tag) 33 #define dialog_unref(dialog, tag) ({ ao2_t_cleanup(dialog, tag); (NULL); }) 37 const char *
file,
int line,
const char *func);
39 #define sip_alloc(callid, addr, useglobal_nat, intended_method, req, logger_callid) \ 40 __sip_alloc(callid, addr, useglobal_nat, intended_method, req, logger_callid, __FILE__, __LINE__, __PRETTY_FUNCTION__)
const char * ast_string_field
Socket address structure.
int __sip_semi_ack(struct sip_pvt *p, uint32_t seqno, int resp, int sipmethod)
Acks receipt of packet, keep it around (used for provisional responses)
void __sip_pretend_ack(struct sip_pvt *p)
Pretend to ack all packets called with p locked.
sipmethod
SIP Request methods known by Asterisk.
const ast_string_field callid
Structure used for each SIP dialog, ie. a call, a registration, a subscribe. Created and initialized ...
struct sip_pvt * __sip_alloc(ast_string_field callid, struct ast_sockaddr *sin, int useglobal_nat, const int intended_method, struct sip_request *req, ast_callid logger_callid, const char *file, int line, const char *func)
Allocate sip_pvt structure, set defaults and link in the container. Returns a reference to the object...
void sip_cancel_destroy(struct sip_pvt *pvt)
Cancel destruction of SIP dialog.
void sip_scheddestroy_final(struct sip_pvt *p, int ms)
Schedule final destruction of SIP dialog.
sip_request: The data grabbed from the UDP socket
void dialog_unlink_all(struct sip_pvt *dialog)
Unlink a dialog from the dialogs container, as well as any other places that it may be currently stor...
int __sip_ack(struct sip_pvt *p, uint32_t seqno, int resp, int sipmethod)
Acknowledges receipt of a packet and stops retransmission called with p locked.
void sip_scheddestroy(struct sip_pvt *p, int ms)
Schedule destruction of SIP dialog.