aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-18 19:48:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-18 19:48:17 +0000
commit9759bb5e5ec5cf03f774e2366b272bdb2a82ac73 (patch)
tree1dd4018adb4111f346cf1fc9a33b78b9fc534df3 /channels
parent9cf566b31d315298034317ac520243bea89e8d58 (diff)
Issue 10005 - Segfault with missing arguments, plus fix a missing define for SIP INFO channels
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69796 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b9adb2aa8..2da9dd7c1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1579,6 +1579,7 @@ static const struct ast_channel_tech sip_tech_info = {
.send_digit_end = sip_senddigit_end,
.bridge = ast_rtp_bridge,
.send_text = sip_sendtext,
+ .func_channel_read = acf_channel_read,
};
/**--- some list management macros. **/
@@ -14275,6 +14276,12 @@ static int acf_channel_read(struct ast_channel *chan, char *funcname, char *prep
if (strcasecmp(args.param, "rtpqos"))
return 0;
+ /* Default arguments of audio,all */
+ if (ast_strlen_zero(args.type))
+ args.type = "audio";
+ if (ast_strlen_zero(args.field))
+ args.field = "all";
+
memset(buf, 0, buflen);
memset(&qos, 0, sizeof(qos));