search for: macro_offset

Displaying 5 results from an estimated 5 matches for "macro_offset".

2004 Jun 22
1
Call forwarding and voicemail
...ifferently when the Dial() was called against Local rather than my internal extensions. Then, have that Dial(Local/...) return with the priority set to either n+1 or n+101 so that I can handle the flow into VM based on that original extension. I'm thinking that CHANNEL, MACRO-PRIORITY, and MACRO_OFFSET might be helpful for a return from the subsequent call to the macro, but I need to get information passed back through the Dial(Local/...) call so that I can know what happened with the dial to the forward target. I would be satisfied if I can get the return from Dial(Local/...) even if I cann...
2006 Jan 06
3
Macro DialPlan
Hi All I am trying to simplify a dialplan for a few thousand users. Would what I have below work? If someone dials exten 710001 would it go through answer and then to the macro to try dialing the SIP phone thats registered on 710001 and then onto voicemail if no answer or not signed on? exten => 71XXXX,1,Answer() exten => 71XXXX,2,Macro(71macro,${EXTEN}) exten => 71XXXX,3,Hangup()
2003 Oct 03
1
Editting variable contents
...oline,Zap/5,Zap/6) ; Kitchen exten => 8901,4,Macro(twoline,Zap/7,Zap/8) ; Familyroom ;exten => 8901,5,Macro(twoline,Zap/13,Zap/14) exten => 8901,5,Macro(twoline,sip/set1,sip/set2) ; Now we dial!!!! exten => 8901,6,Macro(stdexten,8901,${DIALCHANS}) [macro-twoline] exten => s,1,SetVar(MACRO_OFFSET=0) exten => s,2,ChanIsAvail(${ARG1}&${ARG2}) exten => s,3,GotoIf($["${DIALCHANS}" = ""]?s,6:s,4) exten => s,4,SetVar(DIALCHANS=${DIALCHANS}&${AVAILCHAN}) exten => s,5,Goto(s,7) exten => s,6,SetVar(DIALCHANS=${AVAILCHAN}) exten => s,7,Wait(0) -- END OF...
2003 Oct 05
1
ChanIsAvail app setting ${AVAILCHAN} to an unusable value.
...oline,Zap/5,Zap/6) ; Kitchen exten => 8901,4,Macro(twoline,Zap/7,Zap/8) ; Familyroom ;exten => 8901,5,Macro(twoline,Zap/13,Zap/14) exten => 8901,5,Macro(twoline,sip/set1,sip/set2) ; Now we dial!!!! exten => 8901,6,Macro(stdexten,8901,${DIALCHANS}) [macro-twoline] exten => s,1,SetVar(MACRO_OFFSET=0) exten => s,2,ChanIsAvail(${ARG1}&${ARG2}) exten => s,3,GotoIf($["${DIALCHANS}" = ""]?s,6:s,4) exten => s,4,SetVar(DIALCHANS=${DIALCHANS}&${AVAILCHAN}) exten => s,5,Goto(s,7) exten => s,6,SetVar(DIALCHANS=${AVAILCHAN}) exten => s,7,Wait(0) -- END OF...
2004 Jan 16
1
CDR problem with macros
...field of the CDR. Is there anyway to get around that problem except for not using a macro? Example: [default] exten => 1234,1,macro(dial-out) [macro-dial-out] exten => s,1,Dial(SIP/test,30,r) Now, I can probably catch the "unavailable" and the "busy" case using the MACRO_OFFSET variable, but what do I do if the caller hangs up himself? The Dial option 'g' won't help, and I always end up in default,s (although that is not even defined) and here's my ugly 's' that shows in the dst field... :-( Cheers, Philipp