From: Michiel van Baak Date: Sat, 12 Sep 2009 13:08:16 +0000 (+0000) Subject: use the actual given ip address for 'rtp set debug ip ' instead of the word... X-Git-Tag: 11.0.0-beta1~4180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c04a79abf68d7b837a4ede1bc7a901ad6edf9e2;p=thirdparty%2Fasterisk.git use the actual given ip address for 'rtp set debug ip ' instead of the word 'ip' (closes issue #15711) Reported by: davidw Patches: 2009082800-rtpdebug.diff.txt uploaded by mvanbaak (license 7) Tested by: davidw git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218107 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index d281fa5153..3abb6c686a 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2400,7 +2400,7 @@ static char *rtp_do_debug_ip(struct ast_cli_args *a) struct hostent *hp; struct ast_hostent ahp; int port = 0; - char *p, *arg = ast_strdupa(a->argv[3]); + char *p, *arg = ast_strdupa(a->argv[4]); p = strstr(arg, ":"); if (p) {