[Asterisk-Dev] Re: [Asterisk-cvs] asterisk/apps app_dial.c,1.72,1.73

Michael Manousos manousos at inaccessnetworks.com
Mon Jun 21 02:27:41 MST 2004


Check the attached patch.

Michael.


Tais M. Hansen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Monday 21 June 2004 09:26, markster at lists.digium.com wrote:
> 
>>Update of /usr/cvsroot/asterisk/apps
>>In directory mongoose.digium.com:/tmp/cvs-serv10545/apps
>>
>>Modified Files:
>>	app_dial.c
>>Log Message:
>>Add promiscuous redirect option
>>
>>
>>Index: app_dial.c
>>===================================================================
>>RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
>>retrieving revision 1.72
>>retrieving revision 1.73
>>diff -u -d -r1.72 -r1.73
>>--- app_dial.c	20 Jun 2004 06:24:25 -0000	1.72
>>+++ app_dial.c	21 Jun 2004 06:11:56 -0000	1.73
> 
> 
> 
> Late night copy'n'paste? :)
> 
> app_dial.c: In function `dial_exec':
> app_dial.c:726: `o' undeclared (first use in this function)
> app_dial.c:726: (Each undeclared identifier is reported only once
> app_dial.c:726: for each function it appears in.)
> app_dial.c:738: `in' undeclared (first use in this function)
> make[1]: *** [app_dial.o] Error 1
> 
> - -- 
> Regards,
> Tais M. Hansen
> ComX Networks
> Tel: +45-70257474
> Fax: +45-70257374
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
> 
> iD8DBQFA1qNI32si/nlrQ5gRAmD0AJ9IzTZX4XyU4Obf8gYhTduVwusDSACfRNyY
> eJlsIi7+3WqE7oAy9mWTohs=
> =hr2c
> -----END PGP SIGNATURE-----
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
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);


More information about the asterisk-dev mailing list