client/common: move constant MGCP_ENDPOINT_MAXLEN

MGCP_ENDPOINT_MAXLEN is currently only defined for the mgcp client,
since this is in general a common parameter it should be moved to
mgcp_common.h so that both sides can use it.

Change-Id: I9e1c52aa5ebd83b2d9e5178ea24cb27d96cb7ddd
This commit is contained in:
Philipp Maier
2018-01-15 13:59:10 +01:00
parent 03cc48474c
commit 6efb43a210
2 changed files with 4 additions and 3 deletions

View File

@@ -72,4 +72,8 @@ static inline int mgcp_msg_terminate_nul(struct msgb *msg)
* (see also RFC3435 2.1.3.2 Names of Connections) */
#define MGCP_CONN_ID_LENGTH 32+1
/* String length of Endpoint Identifiers.
/ (see also RFC3435 section 3.2.1.3) */
#define MGCP_ENDPOINT_MAXLEN (255*2+1+1)
#endif

View File

@@ -55,9 +55,6 @@ enum mgcp_verb {
#define MGCP_MSG_PRESENCE_AUDIO_PORT 0x0010
#define MGCP_MSG_PRESENCE_CONN_MODE 0x0020
/* See also RFC3435 section 3.2.1.3 */
#define MGCP_ENDPOINT_MAXLEN (255*2+1+1)
struct mgcp_msg {
enum mgcp_verb verb;
/* See MGCP_MSG_PRESENCE_* constants */