view libsip/sdp.h @ 152:7176dc850d7a

sip-in hold/retr error handling: simply send BYE Because we know that the SIP state is CONNECTED at the time of any such error event, we can call initiate_bye() instead of disconnect_sip(), and thereby get rid of struct gsm_mncc_cause which will never be used in this scenario anyway.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2022 16:11:21 -0800
parents 2423f3aac4ce
children
line wrap: on
line source

/*
 * This header file defines structures to be used for SDP
 * parsing and generation.
 */

struct sdp_parse {
	struct in_addr	ip_addr;
	unsigned	audio_port;
	unsigned	codec_mask;
};

struct sdp_gen {
	unsigned	session_id;
	unsigned	version;
	struct in_addr	owner_ip;
	struct in_addr	conn_ip;
	unsigned	conn_port;
	unsigned	codec_mask;
};

#define	SDP_CODEC_MASK_PCMU		1
#define	SDP_CODEC_MASK_PCMA		2
#define	SDP_CODEC_MASK_BOTH		3
#define	SDP_CODEC_MASK_PCMA_PREF	4