search for: macro_result

Displaying 20 results from an estimated 41 matches for "macro_result".

2008 Feb 20
3
Dial+Macro and Queue
A call comes in and goes into the queue, the queue dials a sip channel using a macro. The macro plays a set of options to the callee and if the callee presses 3 it sets MACRO_RESULT=CONTINUE and the macro ends. For some reason the caller goes back into the queue rather than continueing on in the dial plan. Why is this, i could have sworn in 1.2 if i set MACRO_RESULT=CONTINUE that the caller exited the queue() and continued on in the dialplan... [incomming] exten => 1,...
2015 Nov 04
4
Find me macro - calling multiple people to get a hold of one
...en] exten => s,1,Wait(1) exten => s,n,Background(press-1) exten => s,n,WaitExten(10) ; the value is the Wait time before we assume the call is not accepted exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller exten => t,1,Playback(weasels-eaten-phonesys) ; if you're too late with pressing 1 exten => t,n,Set(MACRO_RESULT=CONTINUE) [findme] exten => s,1,Set(CALLERID(all)="Alarm" <911>) same => n,Playback(please-wait-connect-oncall-eng...
2007 Apr 01
5
[MACRO-SCREEN] and MACRO_RESULT
...ll, connect the call to the first number that accepts the call, and allow others to reject the call. Thanks, Andy [macro-screen] exten => s,1,Wait(1) exten => s,n,Background(csp_ackshort-male) exten => s,n,Set(TIMEOUT(response=10)) exten => 1,1,NoOp(Call Accepted) exten => 2,1,Set(MACRO_RESULT=CONTINUE) exten => t,1,Set(MACRO_RESULT=CONTINUE) ;----original macro ;exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller ;exten => i,1,Set(MACRO_RESULT=CONTINUE) ;exten => t,1,Set(MACRO_RESULT=CONTINUE) [default] include => architel incl...
2007 Jul 10
0
Macro Goofiness
...up That calls the following, also in default context: exten => office,1,Dial(SIP/6080,30,M(screen)) exten => office,2,Hangup That calls the screening macro: [macro-screen] exten => s,1,Wait(1) exten => s,2,Background(testmessage) exten => s,3,WaitExten(5) exten => s,4,NoOp(${MACRO_RESULT}) exten => h,1,Set(MACRO_RESULT=CONTINUE) exten => h,2,NoOp(${MACRO_RESULT}) exten => i,1,Set(MACRO_RESULT=CONTINUE) exten => i,2,NoOp(${MACRO_RESULT}) exten => t,1,Set(MACRO_RESULT=CONTINUE) exten => t,2,NoOp(${MACRO_RESULT}) exten => 1,1,NoOp(Caller accepted) exten => 2,1,...
2010 Feb 24
0
Question
...;exten => s,1,Wait(1) ;exten => s,n,Background(/var/lib/asterisk/sounds/press1) ; substitute a different playback file if you need to ;exten => s,n,WaitExten(5) ; the value is the Wait time before we assume the call is not accepted ;exten => 1,1,NoOp(Caller accepted) ; Do not set MACRO_RESULT to anything to connect the caller ;exten => i,1,Set(MACRO_RESULT=CONTINUE) ;exten => t,1,Set(MACRO_RESULT=CONTINUE) exten => s,1,Wait(1) exten => s,n,BackgroundDetect(/var/lib/asterisk/sounds/press1) exten => s,n,WaitExten(10) ; the value is the Wait time before we assum...
2005 Jan 19
5
Call Screen Macro Not Exiting when call rejected
...creen] ; Prompt operator to accept,reject or transfer the incoming call ; before the call is connected to them. exten => s,1,Wait(0.2) exten => s,2,Playback(og-welcome) exten => s,3,Read(ACCEPT||1) exten => s,4,GotoIf($[${ACCEPT} = 1]?6:5) ;1 = connect else return exten => s,5,SetVar(MACRO_RESULT=CONTINUE) exten => s,6,NOOP() Output from Console -- -- Executing Wait("IAX2/1001/14", "0.2") in new stack -- Executing Playback("IAX2/1001/14", "og-accept_reject") in new stack -- Playing 'og-accept_reject' (language 'en')...
2010 Sep 06
2
Macro when calling cellphone (GSM) + silence when connecting
...,n,Playback(/var/lib/asterisk/sounds/prompts/press1) exten => s,n,Read(INPUT,,1,1,1) exten => s,n,NoOp(input : ${INPUT}) exten => s,n,GoToIf($["${INPUT}"=="1"]?exit:hangup) exten => s,n(exit),NoOp(call accepted) exten => s,n,MacroExit() exten => s,n(hangup),Set(MACRO_RESULT=CONTINUE) exten => s,n,NoOp(macro_result in macro : ${MACRO_RESULT}) exten => s,n,MacroExit() The dialplan : exten => s,n,Dial(${TRUNKOUT}/${TEL},,M(press1)) So the calling party and the called party are only connected together when the called party presses "1" to accept the...
2007 Jul 05
2
Call Screening Not Working
...screening: http://www.voip-info.org/wiki/view/Asterisk+tips+findme Here is my actual config: [macro-screen] exten => s,1,Wait(1) exten => s,n,Background(press-1-to-be-connected-to-the-caller) exten => s,n,Set(TIMEOUT(response=5)) exten => 1,1,NoOp(Caller accepted) exten => i,1,Set(MACRO_RESULT=CONTINUE) exten => t,1,Set(MACRO_RESULT=CONTINUE) [default] exten => office,1,Dial(SIP/609,30,M(screen)) exten => office,2,Hangup exten => mobile,1,Dial(SIP/608,30,M(screen)) exten => mobile,2,Hangup exten => 6084,1,NoOp exten => 6084,2,SetMusicOnHold(default) exten => 60...
2006 Oct 18
4
Findme problem
...XX,2,Hangup [macro-screen] exten => s,1,Wait(1) exten => s,2,Set(TIMEOUT(digit)=5) exten => s,3,Set(TIMEOUT(response)=10) exten => s,4,Background(press-1) exten => s,5,NoOp(Waiting) exten => 1,1,NoOp(Caller accepted) exten => i,1,NoOp(Invalid response) exten => i,2,Set(MACRO_RESULT=CONTINUE) exten => t,1,NoOp(Timeout) exten => t,2,Set(MACRO_RESULT=CONTINUE) [find-eric] exten => s,1,Playback(pls-wait-connect-call) exten => s,n,Dial(LOCAL/99996135551212&LOCAL/99996135551313,40,m) (I have replaced the phone numbers with bogus ones). Thanks, Eric ----------...
2006 Nov 03
1
SendDTMF() behaves strangely
Hi, everybody: As part of a paging macro I'm using SendDTMF to send digits to the called party. The section looks like this: exten => s,1,Wait(0.5) exten => s,n,SendDTMF(9531290) exten => s,n,Wait(1.0) exten => s,n,Set(MACRO_RESULT=CONTINUE) To test I direct the call to a live extension just to hear what's happening -- what actually happens is that only the 9 is sent, and it sounds as though someone is leaning on the button for about a second. Even if I rewrite it like this: exten => s,1,Wait(0.5) exten => s,n,Se...
2007 Apr 02
1
understanding what h extension does
...o on the next one. I use the M facility of dial, with something like this [messages] exten => 90,n(calcnextchan),Set(DIALCHAN=...) exten => 90,n,Dial(${DIALCHAN},30,M(domessage)) exten => 90,n,Goto(calcnextchan) [macro-domessage] exten => s,1,Playback(message) exten => s,n,Set(MACRO_RESULT=CONTINUE) [There is actually more logic to check for busy dial channels and retry them later] This seems to work fine until one of the callees hangs up before the message is played. at which point my call is terminated. I was wondering if I should user the h extension here to pickup the hungu...
2011 Feb 02
1
Problems using Background within a macro on V 1.4
...rd ;-) I am using Version 1.4.33.1 build from the Debian "lenny" distros I am trying to implement a simple screening [macro-screen] exten => s,1,Background(press1) exten => s,n,WaitExten(5) exten => 1,1,NoOp(accepted) ; Dont set a reply so dial connects exten => i,1,Set(MACRO_RESULT=CONTINUE) exten => t,1,Set(MACRO_RESULT=CONTINUE) [test] exten => _1234,1,Dial(SIP/2001,10,M(screen)) exten => _1234,n,playback(sorry,noanswer) This config plays to the caller "sorry" if I don't answer SIP/2001 - good and if I answer SIP/2001 but don't press ANY key...
2010 Apr 20
2
Read Timeout
...this? Can I simply preset the ACCEPT variable to 2, or will the read cmd override the ACCEPT variable with nothing if it times out? [macro-screen] exten => s,1,Wait(0.2) exten => s,n,Read(ACCEPT|priv-instruct-custom|1) exten => s,n,GotoIf($[${ACCEPT} = 1 ] ?yes:no) exten => s,n(no),Set(MACRO_RESULT=CONTINUE) exten => s,n(yes),Wait(0.1) Many thanks Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100420/f2f5c1c0/attachment.htm
2006 Oct 29
1
Multiple dial macros at the same time
...t. So we play a message that says "press 1 to accept the call" and ask employees to train their spouse/relative/child/pets not to press 1. The following extract from my dialplan shows how I have this feature set up. This is with Asterisk 1.2.13. [macro-screen] exten => s,1,Set(MACRO_RESULT=CONTINUE) exten => s,2,Read(ACCEPT|press-1-to-accept|1|skip|3|1) exten => s,3,GotoIf($[${ACCEPT}=1]?5:4) exten => s,4,MacroExit exten => s,5,Set(MACRO_RESULT=) exten => s,6,Playback(please-say-hello) [menu] exten => _FOLS1NXXNXXXXXX,1,Dial(SIP/${EXTEN:4}@pstn,20,oM(...
2007 Jan 24
0
Agent Pre Acknowledgement Message
...blem ? [macro-screen] exten=>s,1,Wait(.25) exten=>s,2,Read(ACCEPT|screen-callee-options|1) exten=>s,3,Gotoif($[${ACCEPT} = 1] ?50) exten=>s,4,Gotoif($[${ACCEPT} = 2] ?30) exten=>s,5,Gotoif($[${ACCEPT} = 3] ?40) exten=>s,6,Gotoif($[${ACCEPT} = 4] ?30:30) exten=>s,30,Set(MACRO_RESULT=CONTINUE) exten=>s,40,Read(TEXTEN|custom/screen-exten|) exten=>s,41,Gotoif($[${LEN(${TEXTEN})} = 3]?42:45) exten=>s,42,Set(MACRO_RESULT=GOTO:from-internal^${TEXTEN}^1) exten=>s,45,Gotoif($[${TEXTEN} = 0] ?46:4) exten=>s,46,Set(MACRO_RESULT=CONTINUE) exten=>s,50,Playback(afte...
2006 May 17
4
Variable Inheritance - Set in Child, Read by Parent
Here's what I'm doing: 1. I set __FOO=0 in the current context. 2. I use Dial() and the M(testvar) macro call. 3. The macro-testvar can see ${FOO} just fine. 4. the macro-testvar modifies FOO. I tried: Set(__FOO=1) Set(_FOO=1) Set(FOO=1) 5. When the Dial()ed call hangs up, and the original context continues, FOO is still 0.
2005 Jul 12
0
Returning values from macro inside Dial command
...e macro called from Dial(). As far as I can tell, though, if you just do a SetVar inside the macro, it's set in a different context and isn't available to the code that calls the macro. Am I missing something? What's the right way to return data from the macro call? (Other than the MACRO_RESULT feature.) I'm using the Dial(x&y&z|M(foobar)) feature to dial several extensions at once, and I need some information back that will tell me which of the extensions answered the call. (In this case, it's easy to answer the call on an extension but to do something that will set MAC...
2007 May 21
0
AGI: Festival & Ringing on Screening not working properly
...= $AGI->exec("Dial","SIP/$call|20|rM(screen)"); where "$call" is a sip extension.. and the following macro in extensions.conf =============================== [macro-screen] exten => s,1,Wait(1) exten => s,n,Read(ACCEPT|initialGreeting|1) exten => s,n,Set(MACRO_RESULT=CONTINUE) exten => s,n,GotoIf($[${ACCEPT} = 1 ] ?60:50) exten => s,50,NoOp(1 not pressed) exten => s,n,Hangup() exten => s,60,Set(MACRO_RESULT=) exten => s,n,NoOp(Done) Above code works fine other than ringing issue but if I add this line after "Wait" then you hear no...
2007 Nov 23
2
How to bridge two connected calls
Hi everybody. I am in the following scenario: 1 Customer "A" calls an asterisk box over a Zap channel on a toll free number during night time 2 The incoming call enters an AGI script on the dialplan 3 The AGI script plays back a welcome message, then starts the music-on-hold stream 4 The AGI script originates a calls to a stand-by operator's cell phone (operator
2009 Dec 03
1
Dial application with M option
...en^${SCREEN_FILE})) exten => 890,n,Voicemail(10 at default) [macro-screen] exten => s,1,Wait(0.2) exten => s,n,Playback(screen-from) exten => s,n,Playback(${ARG1}) exten => s,n,Read(ACCEPT|screen-accept|1) exten => s,n,GotoIf($[${ACCEPT} = 1 ] ?yes:no) exten => s,n(yes),SetVar(MACRO_RESULT=CONTINUE) exten => s,n(no),System(/bin/rm ${ARG1}) THE PROBLEM IS when the called party picks up the phone The call get connected between the caller and callee. But I want it must ask the callee if (s)he wana talk if press yes then connect else not. Please shed some light on it -- Kind Regards...