diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-14 16:11:08 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-14 22:28:13 +0200 |
commit | 96cc57af80d91054b4d23e6de83015bf93fefb18 (patch) | |
tree | c996c11442d329c25cc4d3ee5112cafb5689bf41 /include | |
parent | 42e44a9e5e88e32ad2dc218983f317bbec07cce4 (diff) |
mgcp: Generate the ConnId per trunk base
MGCP RFC 3435 does not specify that the Connection Id must be
generated with any kind of random. It must uniquely identify
the connection of an endpoint. So we can make it per trunk group
or could even have it per endpoint.
The code does not support multiple connections on the same endpoint
right now but the spec allows it.
Diffstat (limited to 'include')
-rw-r--r-- | include/mgcp/mgcp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mgcp/mgcp.h b/include/mgcp/mgcp.h index 4ad27c0..d5574ed 100644 --- a/include/mgcp/mgcp.h +++ b/include/mgcp/mgcp.h @@ -109,6 +109,7 @@ struct mgcp_trunk_config { int trunk_nr; int trunk_type; + uint32_t last_call_id; char *audio_name; int audio_payload; @@ -163,8 +164,6 @@ struct mgcp_config { mgcp_realloc realloc_cb; void *data; - uint32_t last_call_id; - /* trunk handling */ struct mgcp_trunk_config trunk; struct llist_head trunks; |