diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 14:51:48 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-28 19:40:54 +0100 |
commit | 6990687f4ca6afa26208c17a7e3652071db62771 (patch) | |
tree | 5ab289aba6a4955738f54b30a76567343fa69253 /openbsc/src/mgcp/mgcp_vty.c | |
parent | 44016fee14a494f3fa13b9f094dc205985db2e5e (diff) |
mgcp: Only allow transcoding on the virtual trunk
Diffstat (limited to 'openbsc/src/mgcp/mgcp_vty.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index f71c17be4..c299a98cc 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -672,7 +672,8 @@ static int allocate_trunk(struct mgcp_trunk_config *trunk) endp->net_end.local_alloc = PORT_ALLOC_STATIC; } - if (cfg->transcoder_ip && cfg->transcoder_ports.mode == PORT_ALLOC_STATIC) { + if (trunk->trunk_type == MGCP_TRUNK_VIRTUAL && + cfg->transcoder_ip && cfg->transcoder_ports.mode == PORT_ALLOC_STATIC) { int rtp_port; /* network side */ |