projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix seg fault condition
[asterisk/asterisk.git]
/
channels
/
chan_h323.c
diff --git
a/channels/chan_h323.c
b/channels/chan_h323.c
index
45398ff
..
63030d6
100755
(executable)
--- 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));
strtok_r(host, "/", &(h323id));
- if (*h323id) {
+ if (h323id && !ast_strlen_zero(h323id)) {
h323_set_id(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) {
p->capability = capability;
if (p->dtmfmode) {
- if (p->dtmfmode & H323_DTMF_RFC2833)
+ if (p->dtmfmode & H323_DTMF_RFC2833) {
p->nonCodecCapability |= AST_RTP_DTMF;
p->nonCodecCapability |= AST_RTP_DTMF;
- else
+ } else {
p->nonCodecCapability &= ~AST_RTP_DTMF;
p->nonCodecCapability &= ~AST_RTP_DTMF;
+ }
}
/* pass on our preferred codec to the H.323 stack */
h323_set_capability(format, dtmfmode);
}
/* pass on our preferred codec to the H.323 stack */
h323_set_capability(format, dtmfmode);