-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 21 June 2004 14:22, Chris Stenton wrote:
> Looks like half a patch has been applied to app_dial in cvs head could
> someone with commit rights fix it.

Here's a patch from Michael Manousos on the Asterisk developer list, which 
fixes the problem.

- -- 
Regards,
Tais M. Hansen
ComX Networks
Tel: +45-70257474
Fax: +45-70257374

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFA1tdg32si/nlrQ5gRAgtZAJ44hTH7MU5d5nm3WxLf3oU5eIBlMgCeObbB
tuMz2l1pnlqtsAwgL9xER04=
=1pZQ
-----END PGP SIGNATURE-----
Index: apps/app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.73
diff -u -r1.73 app_dial.c
--- apps/app_dial.c	21 Jun 2004 06:11:56 -0000	1.73
+++ apps/app_dial.c	21 Jun 2004 09:26:04 -0000
@@ -713,7 +713,7 @@
 			char tmpchan[256]="";
 			char *stuff;
 			char *tech;
-			strncpy(tmpchan, o->chan->call_forward, sizeof(tmpchan) - 1);
+			strncpy(tmpchan, tmp->chan->call_forward, sizeof(tmpchan) - 1);
 			if ((stuff = strchr(tmpchan, '/'))) {
 				*stuff = '\0';
 				stuff++;
@@ -725,10 +725,10 @@
 			}
 			/* Before processing channel, go ahead and check for forwarding */
 			if (option_verbose > 2)
-				ast_verbose(VERBOSE_PREFIX_3 "Forwarding %s to '%s/%s' (thanks to %s)\n", in->name, tech, stuff, tmp->chan->name);
+				ast_verbose(VERBOSE_PREFIX_3 "Forwarding %s to '%s/%s' (thanks to %s)\n", chan->name, tech, stuff, tmp->chan->name);
 			/* Setup parameters */
-			ast_hangup(o->chan);
-			tmp->chan = ast_request(tech, in->nativeformats, stuff);
+			ast_hangup(tmp->chan);
+			tmp->chan = ast_request(tech, chan->nativeformats, stuff);
 			if (!tmp->chan) {
 				ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s'\n", tech, stuff);
 				free(tmp);

Reply via email to