Displaying 20 results from an estimated 20 matches for "macro_context".
2007 Feb 26
7
How to get values of local channels context
The variable ${CONTEXT} stores the value of the current context. However if we are in a macro that will be the name of the macro. How do I access the name of the local channel's context.
For example:
[macro-test]
exten => s,n,NoOp(Context ${CONTEXT})
CLI shows:
-- Executing NoOp("Local/2592@1100006-2000-e802,2", "Context macro-test") in new stack
I want to get
2004 Jun 15
3
anyone use mailboxexists?
I replied to a post of mine a few days ago asking of anyone uses
mailboxexists(). I haven't received any replies.
Perhaps few use it or perhaps the reply was overlooked. I thought I'd
post the question one last time before giving up on it for now...
Thanks!
-Michael
2005 Jan 17
0
Multiple Line Caller Id With Polycom IP500
...he correct information, just no spacing between the
output on the display of the phone.
Does anybody know if this is possible with the Polycom phones, or even
possible at all?
This is how I'm attempting to do it:
[macro-cidrewrite]
exten => s,1,NoOp
exten => s,2,SetVar(REWRITECALLS=${MACRO_CONTEXT} ${CALLERIDNAME}
${CALLERIDNUM})
exten => s,3,SetCIDName(${REWRITECALLS})
exten => s,4,Dial(${ARG2},15)
exten => s,5,Voicemail(u${ARG1})
exten => s,6,Hangup
exten => s,103,Voicemail(b${ARG1})
exten => s,104,Hangup
Thanks,
Matt
--
Matt Gibson
VOIP Administrator
NJ Tech Solution...
2007 Jan 10
0
Extensions in a macro
...ervation, if I Goto an extension (without explicitly referencing
context) that exists within a marco, call flows to that extension. But if I
Goto an extension that does not, presumably invalid, instead of flowing to
the "i" extension inside the macro, the call seems to flow back to
${MACRO_CONTEXT}. In this manner, a macro is not a container like a
subroutine; but instead, it's like an "include" that simply extends
available extensions, except that it has variable substitution. However,
it's not totally like an "include" because it can have extensions that th...
2007 Apr 24
0
Re: agi timeout......clarification
...> command from the dialplan?
>
> If my AGI fails or doesn't get a response, the call drops, not good.
>
I'm running asterisk 1.2 and calling a fast agi script
exten => s,1,Agi(agi://website.com/script.agi?user=${EXTEN}&number=${CALLERID(number)})
exten => s,2,,Goto(${MACRO_CONTEXT}|${MACRO_EXTEN}|5)
If, for some reason the, website.com cannot be contacted, is off-line,
the call drops. The call does not go to the next exten => s,2
The wiki talks about setting a failure variable and using a GotoIf
statement but this required contacting the agi server successfully,
just n...
2007 Feb 27
2
RES: asterisk-users Digest, Vol 31, Issue 115
...ecuting NoOp("Local/2592@1100006-2000-e802,2", "Context
> >macro-test") in new stack
> > >>
> > >> I want to get 1100006-2000 somehow.
> > >>
> > >> Any suggestions would be appreciated.
> > >
> > >So use ${MACRO_CONTEXT} .
> >
> >Thanks
> >
> >But doesn't this give the calling context which, if itself is another
> >macro, will still not give me what I want? If macro-test is called by
> >macro-first then ${MACRO_CONTEXT} = macro-first. Surely there's a way to
> >...
2015 Jul 06
0
Asterisk 13.4.0 - mixmonitor only records one side's perspective
...eptionist -> manager leg of the call if a transfer
occurs during a call.
Here's how an incoming call is handled - on 1.8 the below code recorded the
entire conversation flawlessly, including the screening conversation of
reception -> manager
[inc]
exten=>_[123]xxx,1,Macro(VCRECORD,${MACRO_CONTEXT}EXT${CALLERID(num)}ACC${CD
R(accountcode)},${ARG2})
exten=>_[123]xxx,n,Set(__TRANSFER_CONTEXT=call-redirect)
exten=>_[123]xxx,n(checkacc),NoOp(MY Account code is ${CDR(accountcode)})
;exten=>_[123]xxx,n(checkacc),NoOp(OTHER Account code is
${CDR(accountcode)})
exten=>_[123]xxx,n(dodial)...
2007 Aug 27
3
voip provider settings problem, please help
hi ppl, i'm using asterisk 1.2 because i'm making use of voiceone, but before i was using asterisk
1.4 and had the same problem, it concerns an italian voip/sip provider called eutelia/skypho, my
problem is the following one:
when i start my pbx my skypho account is working fine, meaning that e.g. incoming calls are shown
in the asterisk CLI and caller and callee can hear each other when
2007 Aug 28
1
calls being forwarded to neighbor?? please help, thx :)
...o(voicemailbox,${ARG1},${ARG2},${ARG3})
[macro-playivr]
exten = s,1,Goto(${ARG1},s,1)
[macro-stdexten]
;CFB Call Forwarding Busy
;CFNR Call Forwarding No Reply
;CFU Call Forwarding Unconditional
exten = s,1,Set(EXTENSION=${CUT(ARG1,/,2)})
exten = s,n,GotoIf(${EXISTS(${DB(CFU/${EXTENSION})})}?${MACRO_CONTEXT},${DB(CFU/${EXTENSION})},1)
;Get CFU key
exten = s,n,GotoIf(${EXISTS(${DB(DND/${EXTENSION})})}?s-BUSY,1) ;Get DND key
exten = s,n,Dial(${ARG1},20,gtTwW) ;Ring the interface
exten = s,n,Goto(s-${DIALSTATUS},1)
exten = s-ANSWER,1,Playtones(congestion)
exten =
s-NOANSWER,1,GotoIf(${EXISTS(${DB(CFNR...
2005 Jul 11
1
ASterisk@home + Broadvoice = Almost working installation...
...ngs like call forwarding and DND
; We don't call dial directly for anything internal anymore.
; ARGS: $TIMER, $OPTIONS, $EXT1, $EXT2, $EXT3, ...
; Use a Macro call such as the following:
; Macro(dial,$DIAL_TIMER,$DIAL_OPTIONS,$EXT1,$EXT2,$EXT3,...)
[macro-dial]
exten => s,1,GotoIf($[ "${MACRO_CONTEXT}" = "macro-rg-group" ]?4:2) ; if this is
from rg-group, don't strip prefix
exten => s,2,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} != ${RGPREFIX}]?4:3)
; check for ring-group prefix
exten => s,3,SetCIDName(${CALLERIDNAME:${LEN(${RGPREFIX})}}) ; strip off prefix
exten =&...
2009 Jul 20
0
No subject
...0
ElapsedTime= 0h0m0s
Context= macro-testing
Extension= s
Priority= 1
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
MACRO_DEPTH=1>
ARG1=30086
MACRO_PRIORITY=1
MACRO_CONTEXT=siptest
============================================================================
====
-- Executing AGI("SIP/vaso-e26c", "whopicked.rb") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/whopicked.rb
AGI Tx >> agi_request: whopicked.rb
AGI Tx &g...
2004 Sep 20
2
CallerID in Queue
How can I bring the Caller ID when the calls enter call queue and answer by X-
lite or kphone?
I've tried many configuration but no luck that it only shows the AgentLogin's
exten..
Thanks!
R Wong
The information transmitted is intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material.
Any review, retransmission,
2019 Jan 09
2
Switched from Asterisk 1.8 to 13 - CDR ringtime now always zero (Joshua C. Colp)
...l:
My local context (simplified):
[local]
exten=>_082xxxxxxx,1,Macro(STDOUT,SIP/centra-out,27${EXTEN:1})
and the STDOUT macro, edited for brevity:
[macro-STDOUT]
;${ARG1} = channel
;${ARG2} = number
exten=>s,1,Macro(WAITCHANNEL)
exten=>s,n,Macro(WAITCDR)
exten=>s,n,Macro(VCRECORD,${MACRO_CONTEXT}X${CALLERID(num)}ACC${CHANNEL(accountcode)},${ARG2})
exten=>s,n(dodial),Macro(VCCALLOUT,${ARG1},${ARG2},${ARG3},${ARG4})
exten=>s,n,NoOp(Setting Userfield after call completion)
exten=>s,n,Set(CDR(userfield)=${MIXMONITOR_FILENAME})
exten=>s,dodial+101,Busy()
exten=>s,n,Hangup()
exten...
2006 Feb 14
1
fax pass-through
...ot copying variable ARG3.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable ARG2.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable ARG1.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable
MACRO_PRIORITY.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable
MACRO_CONTEXT.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable MACRO_EXTEN.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable
STACK-pstn-54-1.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying variable
STACK-from_customers-54-1.
Feb 13 23:50:35 DEBUG[28047] channel.c: Not copying vari...
2007 Sep 20
0
Video doesn't work for outgoing call?
...xt: macro-play
Extension: s
Priority: 3
Call Group: 0
Pickup Group: 0
Application: BackGround
Data: /var/lib/asterisk/VOD/jolin-512k
Blocking in: ast_waitfor_nandfds
Variables:
MACRO_DEPTH=2
ARG1=/var/lib/asterisk/VOD/jolin-512k
MACRO_PRIORITY=5
MACRO_CONTEXT=macro-playvod
MACRO_EXTEN=s
FROM_IVR=yes
MOIVE=jolin-512k
RECORDED=broadcast/msg-24
SIPCALLID=2ecf0d35433f334e429760f65c4ebb91 at 172.16.148.1
CDR Variables:
level 1: clid=555
level 1: src=555
level 1: dst=t
level 1: dcontext=vod
level 1: channel=SIP/403-097cc8e8
level 1: lastapp=BackGround
lev...
2005 Aug 02
12
WHat does it take
How many times do you ask for help here before getting a respone? Every
single thing I do No matter what I get busy extensions. I am willing to pay
someone to help here. Anybody got a clue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050802/d0d1326c/attachment.htm
2015 Apr 08
1
Help debugging a possible SIP channel leak in 11.17.0, possible race condition
Have you tried Asterisk 13? The bridging mechanism has been completely
rewritten on Asterisk 12, so there's no longer channel masquerading and
zombie channels. Might be worth a try.
2015-04-07 20:33 GMT-03:00 Alex Villac??s Lasso <a_villacis at palosanto.com>:
> El 07/04/15 a las 17:38, Alex Villac??s Lasso escribi?:
>
> I am trying to collect enough information about an
2006 Mar 31
4
cannot set outgoing cid
...Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable GROUP.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable
STACK-macro-dialout-trunk-s-6.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable MACRO_PRIORITY.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable MACRO_CONTEXT.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable MACRO_EXTEN.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable ARG1.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable
STACK-macro-outbound-callerid-s-6.
Mar 31 16:53:57 DEBUG[11747] channel.c: Not copying variable...
2006 Mar 30
3
asterisk doesn't wait for whole extension
Hi,
maybe a dumb question, but it seems that some calls are directed to our
central dial in number despite the extensions the callers say they dialled.
E.g. they dial 1234-567, asterisk recognizes 12345, it says this is an unknown
extension, where it is right, and redirects the call to the central dial in
extension 1234-0. This only seems to happen when the numbers are dialled
manually. When
2006 Nov 21
0
Nortel CS1000 Asterisk with SIP
...P to 0
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable STACK-macro-eva-on-sip-s-1.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable MACRO_DEPTH.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable MACRO_PRIORITY.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable MACRO_CONTEXT.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable MACRO_EXTEN.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable STACK-pra-incoming-1715-1.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable SIPCALLID.
Nov 21 14:17:47 DEBUG[991] channel.c: Not copying variable SIPUSERAGEN...