Do not dial digits when none were specified for sig_pri based calls
authorJeff Peeler <jpeeler@digium.com>
Tue, 21 Jul 2009 22:51:47 +0000 (22:51 +0000)
committerJeff Peeler <jpeeler@digium.com>
Tue, 21 Jul 2009 22:51:47 +0000 (22:51 +0000)
(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

channels/sig_pri.c

index 788066a..8d73327 100644 (file)
@@ -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;