From: Jeff Peeler Date: Tue, 21 Jul 2009 22:51:47 +0000 (+0000) Subject: Do not dial digits when none were specified for sig_pri based calls X-Git-Tag: 11.0.0-beta1~4460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16328efb78cf83c57355682bff1e2b09efa612db;p=thirdparty%2Fasterisk.git Do not dial digits when none were specified for sig_pri based calls (closes issue #15524) Reported by: elguero Patches: pri-sig-no-dest-set.patch uploaded by elguero (license 37) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207950 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 788066ae16..8d73327932 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -1789,10 +1789,11 @@ int sig_pri_call(struct sig_pri_chan *p, struct ast_channel *ast, char *rdest, i p->outgoing = 1; c = strchr(dest, '/'); - if (c) + if (c) { c++; - else - c = dest; + } else { + c = ""; + } l = NULL; n = NULL;