From f49370c82f19dd33c940c3a8d00b23659a1ee10d Mon Sep 17 00:00:00 2001
From: Matthew Fredrickson <creslin@digium.com>
Date: Fri, 9 Sep 2005 16:07:06 +0000
Subject: [PATCH] Fix 'w' to correctly send sending complete on PRI

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_zap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index ad600ca313..ff8d09c5fb 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -1962,7 +1962,6 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
 				else
 					p->dop.dialstr[0] = '\0';
 				*s = '\0';
-				s++;
 			} else {
 				p->dop.dialstr[0] = '\0';
 			}
@@ -2025,7 +2024,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
 				pridialplan = PRI_LOCAL_ISDN;
  			}
  		}
- 		pri_sr_set_called(sr, c + p->stripmsd + dp_strip, pridialplan,  (s && *s) ? 1 : 0);
+ 		pri_sr_set_called(sr, c + p->stripmsd + dp_strip, pridialplan,  s ? 1 : 0);
 
 		ldp_strip = 0;
 		prilocaldialplan = p->pri->localdialplan - 1;
-- 
GitLab