X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=sip.h;h=8357217e1bb53de94a62efbf65301d72b03f9ec0;hp=2c5d5efb810a87df0c38c39aa2bb391860a96068;hb=a3a443a6d073ea0015dcc4379d9d1fb712b7828b;hpb=07c94b7319c269a951d48c32a3c959f569287089 diff --git a/sip.h b/sip.h index 2c5d5ef..8357217 100644 --- a/sip.h +++ b/sip.h @@ -19,6 +19,7 @@ class Psip : public Port public: Psip(int type, char *portname, struct port_settings *settings, struct interface *interface); ~Psip(); + unsigned int get_local_ip(unsigned int ip); int message_epoint(unsigned int epoint_id, int message, union parameter *param); int message_connect(unsigned int epoint_id, int message, union parameter *param); int message_release(unsigned int epoint_id, int message, union parameter *param); @@ -32,10 +33,13 @@ class Psip : public Port void r_bye(int status, char const *phrase, nua_t *nua, nua_magic_t *magic, nua_handle_t *nh, nua_hmagic_t *hmagic, sip_t const *sip, tagi_t tags[]); void r_cancel(int status, char const *phrase, nua_t *nua, nua_magic_t *magic, nua_handle_t *nh, nua_hmagic_t *hmagic, sip_t const *sip, tagi_t tags[]); void r_invite(int status, char const *phrase, nua_t *nua, nua_magic_t *magic, nua_handle_t *nh, nua_hmagic_t *hmagic, sip_t const *sip, tagi_t tags[]); + void r_options(int status, char const *phrase, nua_t *nua, nua_magic_t *magic, nua_handle_t *nh, nua_hmagic_t *hmagic, sip_t const *sip, tagi_t tags[]); void *p_s_sip_inst; struct lcr_work p_s_delete; nua_handle_t *p_s_handle; nua_magic_t *p_s_magic; + struct lcr_timer p_s_invite_option_timer; /* time to send OPTION to invite transaction */ + int p_s_invite_direction; /* DIRECTION_* of invite */ int p_s_rtp_bridge; /* bridge RTP instead of having a local RTP peer */ unsigned short p_s_rtp_port_local; unsigned short p_s_rtp_port_remote; @@ -68,7 +72,7 @@ class Psip : public Port void rtp_shutdown(void); /* audio */ - struct lcr_timer p_s_loadtimer; /* timer for audio transmission */ + struct lcr_timer p_s_load_timer; /* timer for audio transmission */ virtual void update_load(void); void load_tx(void); unsigned int p_s_next_tv_sec; /* time stamp of next expected tx_load call, (to sync audio data) */