]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 10005 - Segfault with missing arguments, plus fix a missing define for SIP...
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 18 Jun 2007 19:48:17 +0000 (19:48 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 18 Jun 2007 19:48:17 +0000 (19:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69796 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b9adb2aa8481c90e88f64cc3bb3ae634e652ae5f..2da9dd7c1c8d0650f8770de35a01e61207c4ed8d 100644 (file)
@@ -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));