search for: macroexit

Displaying 20 results from an estimated 65 matches for "macroexit".

2015 Nov 28
2
endwhile jumping out of macro
...ping out of macro 'call-from-outside' -- Executing [s at macro-recurse_check_redirect_not_mailbox:7] While("DAHDI/i1/1234567-4a7f", "1") in new stack I checked the while-endwhile balance and it seems ok. I also checked if I GoTo() outside the loop. I don't. Macroexit is executed inside the while-endwhile loop in certain cases exiting some inner loop. Could MacroExiting inside a while loop cause this lost of balance? Regards Ethy
2012 Aug 22
1
recording calls
...0000162", "0?Set(THISEXTEN=71900000000)") in new stack -- Executing [s at macro-one-touch-record:2] ExecIf("SIP/1010-00000162", "1?Set(THISEXTEN=1010)") in new stack -- Executing [s at macro-one-touch-record:3] ExecIf("SIP/1010-00000162", "0?MacroExit()") in new stack -- Executing [s at macro-one-touch-record:4] GotoIf("SIP/1010-00000162", "0?stoprec") in new stack -- Executing [s at macro-one-touch-record:5] GotoIf("SIP/1010-00000162", "0?stopped") in new stack -- Executing [s at macro-on...
2020 Feb 05
1
Hangup hook to put back a call into a queue
...like this: [macro-dialout-one-predial-hook] exten => s,1,Noop(Entering user defined context macro-dialout-one-predial-hook in extensions_custom.conf) exten => s,n,GotoIf($["${DEXTEN}"=“2001”]?special) exten => s,n,GotoIf($["${DEXTEN}"=“2002”]?special) exten => s,n,MacroExit exten => s,n(special),NoOp(--------------- Push Special Hangup Handler ------------------) exten => s,n,Set(CHANNEL(hangup_handler_push)=back-to-1000-hangup,s,1) exten => s,n,MacroExit [back-to-1000-hangup] exten => s,1,Noop(====== Entering user defined context back-to-1000-hangup ==...
2010 Apr 30
2
Continuing after a TIMEOUT(absolute)
...ging up. The dialplan and log output is below. Any info is appreciated. This is on version 1.6.0.5. [macro-answer-and-join] exten => s,1,NoOp() exten => s,n,Answer() exten => s,n,Wait(4) exten => s,n,SendDTMF(1) exten => s,n,Wait(1) exten => s,n,SendDTMF(1) exten => s,n,MacroExit [macro-hangup] exten => s,1,NoOp() exten => s,n,Playback(goodbye) exten => s,n,Hangup() ; exten => T,1,NoOp() exten => T,n,Playback(goodbye) exten => T,n,Hangup() [macro-phonenum] exten => s,1,NoOp() exten => s,n,Macro(answer-and-join) exten => s,n,Set(TIMEOUT(absolute)...
2009 Oct 08
2
How to keep difference between 2 SIP-accounts/trunks from same server ??
...net] type=peer host=server username=user2 secret=passwd2 fromuser=user2 accountcode=ITCin The Asterisk CLI shows : [Oct 8 15:06:03] -- Executing [s at macro-getiaxaccount:5] MYSQL("SIP/ITCENTER-3starsnet-0764cdb0", ... [Oct 8 15:06:03] -- Executing [s at macro-getiaxaccount:6] MacroExit("SIP/ITCENTER-3starsnet-0764cdb0", ... [Oct 8 15:06:03] -- Executing [s at 092:9] NoOp("SIP/ITCENTER-3starsnet-0764cdb0", "... [Oct 8 15:06:03] -- Executing [s at 09:10] Dial("SIP/ITCENTER-3starsnet-0764cdb0", "... Notice the SIP/ITCENTER-3starsnet...
2010 Sep 06
2
Macro when calling cellphone (GSM) + silence when connecting
...s1] exten => s,1,NoOp() exten => s,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 calle...
2006 May 31
5
Explicit Dialplan Exit
...o priorities left in each extension. Now however, everything is in one extension and I can't be sure that execution will not continue at the end of a section (open,closed etc). Is there some sort of explicit dialplan command that stops execution and immediately ends the dialplan? Something like MacroExit() in a macro.... Can't see it in the docs. Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060531/c8ba2031/attachment.htm
2009 May 11
1
PauseMonitor() Hanging Up Call
...n-pauseMonitor => *7,self/callee,Macro,pause-record in-resumeMonitor => *9,self/callee,Macro,resume-record I also have the following contexts setup in extensions.conf: [macro-pause-record] exten => s,1,Playback(sounds/recPaused) exten => s,n,PauseMonitor() exten => s,n,MacroExit [macro-resume-record] exten => s,1,Playback(sounds/recResumed) exten => s,n,UnPauseMonitor() exten => s,n,MacroExit Now, if I setup the call and hit *7 on the callee phone, the call is hungup every time! No error message, just simply hangs up, as follows: Executing [s...
2006 Mar 24
11
Transferring a call with IAX
Here's an interesting question: If I transfer a call from Asterisk system to another with IAX, is there any way I can get control back on the original system? Or.. do I lose control, and the dialplan has to continue on the new system? Scenario is we transfer calls to an Asterisk system that handles ACD queues. If the ACD queue times out, we want to send the caller to voicemail on another
2010 Jun 07
0
Announcement before absolute timeout / how to terminate a meetme conf?
...time value so far so good. I developed the following Dialplan to fulfill the task (simplified, hopefully right - deleted all announcements, cdr, etc. :)): [macro-c2cmacro-p1] exten => s,n,Dial(SIP/sipconnect/${to1},120,M(c2cmacro-connect^${ARG1}^to1)) exten => s,n(lbl_macro-c2cmacro-p1_1),MacroExit() exten => s,n(lbl_macro-c2cmacro-p1_2),Hangup() exten => h,1,MeetMeAdmin(8000,K) exten => h,n,Goto(s,lbl_macro-c2cmacro-p1_1) [macro-c2cmacro-p2] exten => s,n,Dial(SIP/sipconnect/${to2},120,M(c2cmacro-connect^${ARG1}^to2)) exten => s,n(lbl_macro-c2cmacro-p2_1),MacroExit() exten =&...
2010 Dec 30
4
call is not going to Voicemail with "1,n"
I've tried to simplified the dial plan and use "n" instead of numbers but I've noticed it is not executing my voicemail if I substitute number with "n" In the example below when the call is not answered, it does not go to voicemail; call just hangup. exten => 1,1,Playback(transfer) exten => 1,n,Dial(${sales_support}&IAX2/iaxy-322,20,jrw) exten =>
2018 May 08
2
Passing parameter to Queue-called macro
...e application does not appear to allow passing of parameters to the called queue pickup macro. E. g. non-working code is: [queuetest] timeout = 60 retry = 2 member=>SIP/testnum [macro-verdianswer] exten=>s,1,NoOp(Entering Verdi answer macro) exten=>s,n,NoOp(Value: ${ARG1}) exten=>s,n,MacroExit [incomingcontext] exten=>tstqueue,1,NoOp(Incoming call for VerDi) same=>n,Set(curlResult=${SHELL(/usr/src/verdi/bash/verdiIncGetUUID.sh)}) same=>n,Set(curlResultLength=${LEN(${curlResult})}) same=>n,NoOp(Curl result for incoming call UUID from VerDi: ${curlResult}) same=>n,Set(CDR(...
2018 May 11
2
Passing parameter to Queue-called macro
...g my back-office relevant GUID in there, then referencing that variable without the pre-prended _ in the macro: E. g. [verdianswer] exten=>s,n,NoOp(Lodging CDR accountcode: ${curIncAccCode} as an incoming call from ${numbersource} with VerDi and answered by ${MEMBERINTERFACE}...) exten=>s,n,MacroExit [telkomin] . . . same=>n,Set(curlResult=${SHELL(/usr/src/verdi/bash/verdiIncGetUUID.sh)}) same=>n,Set(_curIncAccCode=${curlResult}) same=>n,Queue(stefantest,trhc,,,60,,verdianswer) The above works just fine for doing what I want to do, e. g. pass a parameter from an Asterisk dialplan con...
2016 Jun 30
2
how to join 2 channels using AGI/AMI
...ESPONSE}" = "2"]?REJECT,1) ;Reject > the Call > same => n,Goto(s,TOP) > > exten => ACCEPT,1,NoOP() ;Just > connect the caller and callee > same => n,Playback(pls-wait-connect-call) > same => n,MacroExit() ;Return > > exten => REJECT,1,NoOP() > same => n,Playback(beep&cancelled&goodbye) > same => n,Set(MACRO_RESULT=BUSY) ;Reject the call > same => n,Hangup() > same => n,MacroExit()...
2007 Dec 06
1
Dial() Macro option error in 1.4.15
...R[19496]: app_dial.c:1553 dial_exec_full: Could not find application Macro -- Hungup 'Zap/3-1' The requested Macro does exist in extensions.conf as: [macro-set-userfield] ; Set CDR userfield to value defined in Dial() command exten => s,1,Set(CDR(userfield)=${ARG1}) exten => s,n,MacroExit() This always worked for me with 1.4.14 and I'm not sure how to begin to get this fixed. Any help is appreciated. Thanks. -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E -------------- next part -------------- A n...
2008 Mar 10
2
What replaces Macro() now? And how do you do the equivalent?
...e, i.e. to make the examples be more flexible or cover more territory... I thought it might be handy to show people how to use more contexts for virtual hosting, for example. Problem is I was using the existing stdexten macro from 1.2. See: http://bugs.digium.com/view.php?id=11969 If Macro()/MacroExit() is deprecated, how does one go about achieving the same functionality with Gosub()/Return()? Not having named parameters is a bit of a hassle. I was thinking about setting up variables, and using a template, but that's clumsy also. So... if we're giving up Macro(), what functionality...
2016 Jun 30
4
how to join 2 channels using AGI/AMI
Dear all i'm using an "old" Asterisk 1.6.2.9-2+squeeze12, and want to know if is possible to configure a scenario like this: 1) receive a call and put it on-hold in a queue (OK) 2) monitor the queue and trigger an outbound call to a remote number using AMI, setting the channel of the on-hold on a specific var named channel2Link (OK) 3) when the remote number answer, trigger an
2014 Mar 28
1
AMD with analog lines - DIALSTATUS empty
...o)), which tell Asterisk to execute myMacro when the call is answered by calling party. [myMacro] exten => s,1,NoOP(Executed when call is answered) same => n,AMD() same => n,NoOp(Dial status=${DIALSTATUS}) same => n,NoOp(AMD status=${AMDSTATUS} cause=${AMDCAUSE}) same => n,MacroExit() Problem is that [myMacro] is executed as soon as the call is going out from the gw (cisco or linksys) and before called party answered. DIALSTATUS is empty (should be ANSWER), AMDSTATUS=NOTSURE and AMDCAUSE=TOOLONG-5000 which seems OK as DIALSTATUS isn't reliable. The same dialplan using...
2007 Dec 10
3
One server, multiple companies
Hello all, Just starting to setup asterisk v 1.4.11 and need to run three distinct phone systems for three different companies. So far, I have inbound lines going to the appropriate dial plan within the extensions.conf file. I'm using exten => _X.,1,NoOp(FROM NUMBER: ${SIP_HEADER(TO):5:10}) to determine which number is being dialed by the caller and then using a gotoif to get to
2009 Oct 09
0
calls ansowered for 1 second or less
...9-194302|1255102982.3126") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck|20091009-194302|1255102982.3126: Outbound recording not enabled -- AGI Script recordingcheck completed, returning 0 -- Executing [s at macro-record-enable:5] MacroExit("SIP/100-b609f9c0", "") in new stack -- Executing [966505103150 at from-internal:4] Macro("SIP/100-b609f9c0", "dialout-trunk|12|505103150||") in new stack -- Executing [s at macro-dialout-trunk:1] Set("SIP/100-b609f9c0", "DIAL_TRUNK=1...