diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-09 08:52:35 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-09 08:52:35 +0000 |
commit | a2741a5731dbe634606ce69e842bc7b7d4ec3f8d (patch) | |
tree | 04634234ba376d0afa49fbebbfb9110349b7b0d1 /channels/chan_h323.c | |
parent | 8b0b41eff41bc86c5046a0d181da4ffa42787548 (diff) |
fix seg fault condition
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3409 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-x | channels/chan_h323.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 45398ffa4..63030d6af 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -862,7 +862,7 @@ static struct ast_channel *oh323_request(char *type, int format, void *data) strtok_r(host, "/", &(h323id)); - if (*h323id) { + if (h323id && !ast_strlen_zero(h323id)) { h323_set_id(h323id); } @@ -877,10 +877,11 @@ static struct ast_channel *oh323_request(char *type, int format, void *data) p->capability = capability; if (p->dtmfmode) { - if (p->dtmfmode & H323_DTMF_RFC2833) + if (p->dtmfmode & H323_DTMF_RFC2833) { p->nonCodecCapability |= AST_RTP_DTMF; - else + } else { p->nonCodecCapability &= ~AST_RTP_DTMF; + } } /* pass on our preferred codec to the H.323 stack */ h323_set_capability(format, dtmfmode); |