RE: [Asterisk-Users] Dial Command M(x) Option
-Original Message- From: Shaun Tierney [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 22:37 To: Asterisk Users Subject: [Asterisk-Users] Dial Command M(x) Option http://lists.digium.com/pipermail/asterisk-users/2004-October/ 065540.html I never did find a solution to the above problem! So if you / anyone does I would be very interested. I saw this post about the M(x) option for the Dial command, but I could not find a reply questions posed here. I am wanting to pass the Zap channel that the original call came from to my macro embedded in the Dial command. I've tried to add arguments to the macro by using the syntax M(x,arg1), and I always get the following errors. Dec 2 15:57:53 WARNING[96234416]: app_dial.c:629 dial_exec: Could not find macro to which we should jump. Dec 2 15:57:53 WARNING[96234416]: app_dial.c:636 dial_exec: Macro flag set without trailing ') Is there a patch that would allow me to do this? Or is there a way to get the Zap channel name that requested the Dial on the outbound trunk from within the macro? Regards, Shaun Tierney This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination, distribution or copying of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Dial Command M(x) Option
http://bugs.digium.com/bug_view_page.php?bug_id=0002905 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination, distribution or copying of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. FYI these types of disclaimers ARE STUPID... And crack me up when I see them... bkw ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Dial Command M(x) Option
What version of Asterisk should I be applying this patch to? The patch command doesn't seem to be working. I think because the dates on the files in Asterisk 1.0.2 don't match the dates in the diff file. Any ideas? The patch seems to work partially. When I run patch -p4 app_dial_rev5.diff from the asterisk-1.0.2 directory, this is what I get. missing header for unified diff at line 8 of patch can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: pbx.c |=== |RCS file: /usr/cvsroot/asterisk/pbx.c,v |retrieving revision 1.173 |diff -u -r1.173 pbx.c |--- pbx.c 19 Nov 2004 05:18:10 - 1.173 |+++ pbx.c 22 Nov 2004 22:19:48 - -- File to patch: pbx.c patching file pbx.c Hunk #1 FAILED at 4935. Hunk #2 succeeded at 4986 with fuzz 2 (offset -428 lines). 1 out of 2 hunks FAILED -- saving rejects to file pbx.c.rej missing header for unified diff at line 174 of patch can't find file to patch at input line 174 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: include/asterisk/pbx.h |=== |RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v |retrieving revision 1.33 |diff -u -r1.33 pbx.h |--- include/asterisk/pbx.h 13 Nov 2004 22:44:33 - 1.33 |+++ include/asterisk/pbx.h 22 Nov 2004 22:19:48 - -- File to patch: include/asterisk/pbx.h patching file include/asterisk/pbx.h Hunk #1 FAILED at 578. 1 out of 1 hunk FAILED -- saving rejects to file include/asterisk/pbx.h.rej missing header for unified diff at line 191 of patch can't find file to patch at input line 191 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: apps/app_dial.c |=== |RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v |retrieving revision 1.107 |diff -u -r1.107 app_dial.c |--- apps/app_dial.c21 Nov 2004 20:38:32 - 1.107 |+++ apps/app_dial.c22 Nov 2004 22:19:49 - -- File to patch: apps/app_dial.c patching file apps/app_dial.c Hunk #1 succeeded at 67 (offset -1 lines). Hunk #2 succeeded at 458 (offset -32 lines). Hunk #3 FAILED at 466. Hunk #4 succeeded at 660 (offset -8 lines). Hunk #5 succeeded at 951 (offset -57 lines). Hunk #6 succeeded at 1009 (offset -8 lines). Hunk #7 succeeded at 974 (offset -57 lines). 1 out of 7 hunks FAILED -- saving rejects to file apps/app_dial.c.rej Am I just applying the patch incorrectly or something? Thanks for the help, Shaun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian West Sent: Friday, December 03, 2004 10:09 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Dial Command M(x) Option http://bugs.digium.com/bug_view_page.php?bug_id=0002905 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination, distribution or copying of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. FYI these types of disclaimers ARE STUPID... And crack me up when I see them... bkw ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Dial Command M(x) Option
Its in CVS-HEAD no need to patch it.. The bug notes have some examples on how to use it bkw -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Shaun Tierney Sent: Friday, December 03, 2004 11:50 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Dial Command M(x) Option What version of Asterisk should I be applying this patch to? The patch command doesn't seem to be working. I think because the dates on the files in Asterisk 1.0.2 don't match the dates in the diff file. Any ideas? The patch seems to work partially. When I run patch -p4 app_dial_rev5.diff from the asterisk-1.0.2 directory, this is what I get. missing header for unified diff at line 8 of patch can't find file to patch at input line 8 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: pbx.c |=== |RCS file: /usr/cvsroot/asterisk/pbx.c,v |retrieving revision 1.173 |diff -u -r1.173 pbx.c |--- pbx.c 19 Nov 2004 05:18:10 - 1.173 |+++ pbx.c 22 Nov 2004 22:19:48 - -- File to patch: pbx.c patching file pbx.c Hunk #1 FAILED at 4935. Hunk #2 succeeded at 4986 with fuzz 2 (offset -428 lines). 1 out of 2 hunks FAILED -- saving rejects to file pbx.c.rej missing header for unified diff at line 174 of patch can't find file to patch at input line 174 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: include/asterisk/pbx.h |=== |RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v |retrieving revision 1.33 |diff -u -r1.33 pbx.h |--- include/asterisk/pbx.h 13 Nov 2004 22:44:33 - 1.33 |+++ include/asterisk/pbx.h 22 Nov 2004 22:19:48 - -- File to patch: include/asterisk/pbx.h patching file include/asterisk/pbx.h Hunk #1 FAILED at 578. 1 out of 1 hunk FAILED -- saving rejects to file include/asterisk/pbx.h.rej missing header for unified diff at line 191 of patch can't find file to patch at input line 191 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -- |Index: apps/app_dial.c |=== |RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v |retrieving revision 1.107 |diff -u -r1.107 app_dial.c |--- apps/app_dial.c21 Nov 2004 20:38:32 - 1.107 |+++ apps/app_dial.c22 Nov 2004 22:19:49 - -- File to patch: apps/app_dial.c patching file apps/app_dial.c Hunk #1 succeeded at 67 (offset -1 lines). Hunk #2 succeeded at 458 (offset -32 lines). Hunk #3 FAILED at 466. Hunk #4 succeeded at 660 (offset -8 lines). Hunk #5 succeeded at 951 (offset -57 lines). Hunk #6 succeeded at 1009 (offset -8 lines). Hunk #7 succeeded at 974 (offset -57 lines). 1 out of 7 hunks FAILED -- saving rejects to file apps/app_dial.c.rej Am I just applying the patch incorrectly or something? Thanks for the help, Shaun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian West Sent: Friday, December 03, 2004 10:09 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Dial Command M(x) Option http://bugs.digium.com/bug_view_page.php?bug_id=0002905 This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination, distribution or copying of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. FYI these types of disclaimers ARE STUPID... And crack me up when I see them... bkw ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Dial Command M(x) Option
http://lists.digium.com/pipermail/asterisk-users/2004-October/065540.html I saw this post about the M(x) option for the Dial command, but I could not find a reply questions posed here. I am wanting to pass the Zap channel that the original call came from to my macro embedded in the Dial command. I've tried to add arguments to the macro by using the syntax M(x,arg1), and I always get the following errors. Dec 2 15:57:53 WARNING[96234416]: app_dial.c:629 dial_exec: Could not find macro to which we should jump. Dec 2 15:57:53 WARNING[96234416]: app_dial.c:636 dial_exec: Macro flag set without trailing ') Is there a patch that would allow me to do this? Or is there a way to get the Zap channel name that requested the Dial on the outbound trunk from within the macro? Regards, Shaun Tierney ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users