summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-29 06:16:49 +0000
committerMark Spencer <markster@digium.com>2005-03-29 06:16:49 +0000
commiteb91006b7cf187097aef8e943a3b7a7dcfddaff9 (patch)
tree13830663d3259fc6f7f2564c09a3bde1ae38646b /channels/chan_mgcp.c
parentf966e5e186f14110a29d38d03992488d88348108 (diff)
Allow functions to be written to (bug #2278, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-xchannels/chan_mgcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 04f7d675e..cd20eafd3 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -3711,7 +3711,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
e->capability = capability;
e->parent = gw;
e->dtmfmode = dtmfmode;
- if (!ep_reload && e->sub->rtp)
+ if (!ep_reload && e->sub && e->sub->rtp)
e->dtmfmode |= MGCP_DTMF_INBAND;
e->adsi = adsi;
e->type = TYPE_LINE;