aboutsummaryrefslogtreecommitdiffstats
path: root/channels/sig_pri.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-21 22:51:47 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-21 22:51:47 +0000
commit55c3992cc9dee56ca2855b3a1fcb37bb3bcf6530 (patch)
treea7c89339a6d4271a9e5e2d3e1ccbcf065e7e6f88 /channels/sig_pri.c
parenta9f8de0420e3e7ff5fa2e12b1211c272c192bde9 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@207950 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r--channels/sig_pri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c
index 788066ae1..8d7332793 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;