[asterisk-commits] jpeeler: trunk r207950 - /trunk/channels/sig_pri.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 21 17:51:51 CDT 2009


Author: jpeeler
Date: Tue Jul 21 17:51:47 2009
New Revision: 207950

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=207950
Log:
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)

Modified:
    trunk/channels/sig_pri.c

Modified: trunk/channels/sig_pri.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/sig_pri.c?view=diff&rev=207950&r1=207949&r2=207950
==============================================================================
--- trunk/channels/sig_pri.c (original)
+++ trunk/channels/sig_pri.c Tue Jul 21 17:51:47 2009
@@ -1789,10 +1789,11 @@
 	p->outgoing = 1;
 
 	c = strchr(dest, '/');
-	if (c)
+	if (c) {
 		c++;
-	else
-		c = dest;
+	} else {
+		c = "";
+	}
 
 	l = NULL;
 	n = NULL;




More information about the asterisk-commits mailing list