similar to: Macro only accepts 1 argument

Displaying 20 results from an estimated 9000 matches similar to: "Macro only accepts 1 argument"

2009 Sep 17
1
I'm not getting the ability to leave a voicemail-message
I'm having a little problem with voicemail. Actually I'm not getting the ability to leave a voicemail-message. This is part of the dialplan : > exten => s,n(voicemail),PlayBack(/var/lib/asterisk/sounds/voicemail/${ARG1}) > exten => s,n,NoOp(${ARG1}@boxes) > exten => s,n,Voicemail(${ARG1}@boxes) > exten => s,n,Hangup() > exten => s,n,MacroExit This is the
2009 May 07
1
Macro arguments on app_queue
hi list, i have a question about the args of queue: when we use Queue() app, there are some arguments than can use. help from CLI: Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rule]]]]]]]]) well.. i'm trying to identify who has taken the call on a queue, and, when agent conected, launch a macro with some args based on who takes the call i do: exten =>
2015 Mar 16
1
Use dialplan variables from MySQL database and replace with value
Hello i have the following field (text string) in a MySQL database : "${KNUMMER} ${phone_number_to} ${phone_number_from} ${CHANNEL:4}" I read this string form the database and want to have the dialplan variables to be replaced with the correct content. How can I do this ? Currently this is not working. The variable ${PARAMS} contains the exact string of the database field : my
2006 Jun 06
0
Need help with two-stage ringing macro
I've been using the following macro to ring SIP and IAX devices for a few seconds, and then add on a cell phone if there is no answer on the SIP or IAX device. Periodic problems began a few versions ago and now the problem happens every time with 1.2.9 and 1.2.9.1. The problem is that when a call from the PRI falls through to voicemail, the call is dropped before the voicemail greeting
2014 Jun 06
1
Using macros in extensions.lua?
Hi, I have defined a dialplan in lua and now would like to use "dial" with the macro M to implement some logic, when the callee-channel gets created. Working old style would be (extensions.conf) [default] exten => _X,1,dial(SIP/1,,M(mymacro^parameter)) [macro-mymacro] exten => s,1,verbose(${ARG1}) How to implement the same functionality using pbx_lua? Details: Asterisk 11.7
2016 Feb 08
0
[PATCH 6/6] VMware balloon: Update vmw_balloon.c to use the VMW_PORT macro
On Tue, Jan 19, 2016 at 01:46:05PM -0800, Sinclair Yeh wrote: > Updated VMWARE_BALLOON_CMD to use the common VMW_PORT macro. > Doing this rather than replacing all instances of VMWARE_BALLOON_CMD > to minimize code change. > > Signed-off-by: Sinclair Yeh <syeh at vmware.com> > Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com> > Reviewed-by: Alok N Kataria
2016 Mar 31
2
[PATCH 6/6] VMware balloon: Update vmw_balloon.c to use the VMW_PORT macro
Hi, Does any one know when this series will be applied? Sinclair On Mon, Feb 08, 2016 at 11:41:57AM -0800, Greg KH wrote: > On Tue, Jan 19, 2016 at 01:46:05PM -0800, Sinclair Yeh wrote: > > Updated VMWARE_BALLOON_CMD to use the common VMW_PORT macro. > > Doing this rather than replacing all instances of VMWARE_BALLOON_CMD > > to minimize code change. > > > >
2016 Mar 31
2
[PATCH 6/6] VMware balloon: Update vmw_balloon.c to use the VMW_PORT macro
Hi, Does any one know when this series will be applied? Sinclair On Mon, Feb 08, 2016 at 11:41:57AM -0800, Greg KH wrote: > On Tue, Jan 19, 2016 at 01:46:05PM -0800, Sinclair Yeh wrote: > > Updated VMWARE_BALLOON_CMD to use the common VMW_PORT macro. > > Doing this rather than replacing all instances of VMWARE_BALLOON_CMD > > to minimize code change. > > > >
2016 Jan 19
2
[PATCH 6/6] VMware balloon: Update vmw_balloon.c to use the VMW_PORT macro
Updated VMWARE_BALLOON_CMD to use the common VMW_PORT macro. Doing this rather than replacing all instances of VMWARE_BALLOON_CMD to minimize code change. Signed-off-by: Sinclair Yeh <syeh at vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com> Reviewed-by: Alok N Kataria <akataria at vmware.com> Acked-by: Xavier Deguillard <xdeguillard at vmware.com> Cc:
2016 Jan 19
2
[PATCH 6/6] VMware balloon: Update vmw_balloon.c to use the VMW_PORT macro
Updated VMWARE_BALLOON_CMD to use the common VMW_PORT macro. Doing this rather than replacing all instances of VMWARE_BALLOON_CMD to minimize code change. Signed-off-by: Sinclair Yeh <syeh at vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com> Reviewed-by: Alok N Kataria <akataria at vmware.com> Acked-by: Xavier Deguillard <xdeguillard at vmware.com> Cc:
2005 Oct 05
0
Unwieldy outbound macro
I have the following pair of macros defined to handle outbound calls from *. Rather than specifying full dialstrings in the main body of extensions.conf, outbound dial commands are made using a macro call as follows: Macro (outbound,number_to_dial,callerid_to_present,gateway1,gateway2,gateway3,gate way4) The final gateway defined is nearly always a fallback to PSTN if none of the IAX or SIP
2009 May 22
1
VOICEMAIL : I've tried a lot but mailing through Asterisk is just not working...
Don't be afraid about the info that I'm going to post in this mail, but I want you to give as much info as possible. Also I want to show you what I've tried. What do I want When a voicemail-message is left via the Voicemail()-application, I want the .wav-file send to my mail-address as an attachment. My mail-setup I'm not using sendmail as MTA. I have msmtp as MTA and mutt as
2003 Dec 30
2
playback in [macro-stdexten] problem
I added the playback line to my [macro-stdexten] context but when I dail an extension I don't get the "please hold while I try that extension" message. It just dials the extexsion. Do I have a syntax problem somewhere ? exten => 8005,1,Macro(stdexten,8005,Zap/2) exten => 8006,1,Macro(stdexten,8006,Sip/8006) [macro-stdexten] ; ; Standard extension macro: ; ${ARG1} -
2011 Mar 17
0
Passing an argument to a macro within an Originatecommand
The last Originate() option is ignored if using 'app'. It is only there for 'exten'. http://www.voip-info.org/wiki/view/Asterisk+cmd+Originate tells all :) -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bruce Hopkins Sent: 15 March 2011 21:36 To: asterisk-users at lists.digium.com
2011 Mar 15
1
Passing an argument to a macro within an Originate command
Hi, With Asterisk 1.8.3, I can't figure out how to pass an argument to a macro which is used within an originate command. Here is my sample dialplan to illustrate: exten => 123,1,Answer() exten => 123,n,Originate(SIP/20,app,Macro,foo,bar) exten => 123,n,NoOp(This is the NoOp after the originate command) exten => 123,n,Wait(30) exten => 123,n,Hangup() [macro-foo] exten =>
2003 Jun 24
1
Distinctive Ring Macro Example
I use the following macro for my extensions. It only works with Zap channels and assumes that any Caller*ID number that is 4 digits is an internal call and all other calls are external calls. Use like this: exten => 1234,1,Macro(std-exten,Zap/4,20) [macro-std-exten] ; ; Caller*ID is 4 digits (internal call) ; exten => s/_XXXX,1,Dial(${ARG1}r2,${ARG2}) exten =>
2005 Mar 24
1
Can I use my callscreen macro w/ sip?
(Sorry if this has hit the list before. I sent it yesterday, but never saw it come through) I actually got rid of my phone service.. no more pots line in my house. But, I miss my call screen macro. Any way to do this with a SIP channel? (Obviously the parking isn't the problem, but rather recording their name). I set it up so they should only have to record their name once provided they
2014 Jul 26
0
Hangup check during long running macro called by M option on Dial
I have built a dialplan which dial to someone with option M. Dial (SIP/1000,,M(MYMACRO)) Both parties are SIP phones. MYMACRO expects person on SIP/1000 dial 5 (using read) then exits - and doing so it bridges my phone (SIP/2000) with SIP/1000. If SIP/1000 hangs up before dial 5 - ok the call ends. if SIP/2000 hangs up before SIP/1000 dial 5 - the macro is unaware and keeps waiting SIP/1000
2007 Mar 27
0
Macro Dial - External DID
I am using the sample (slightly modified) macro for dialing phones. My extensions are in the 2000 range. Each extension has it's own external DID. Is there any way to have the macro look up the DID to be used for the extension and set the DID as the callerid? Maybe from a flat file somewhere? Or is there a better way to do this??? I know I can use callerid in sip.conf, but I only want the
2010 Mar 11
2
Codec preference
How can I set the prefered codec between 2 calling parties ?? My Grandstream supports G729, alaw and gsm... in this order. The Zoiper softphone has alaw and gsm as codecs... in that order. Although there should be a matching codec found, my Grandstream can not call the Zoiper softphone. CLI shows : [Mar 11 17:47:21] WARNING[22367]: channel.c:3340 ast_channel_make_compatible: No path to