[Asterisk-Dev] something wrong with variables, local channels,
forwards and debug level
Sergio Chersovani
mlists at c-net.it
Thu Dec 8 04:04:54 MST 2005
Something strange with var inheritance, in 1.2, 1.2.1, HEAD
The same dialplan
with "set debug 0" does not work
with "set debug 10" does work :-)
79701 is call forwarded to 9901
Call extension 100 at sip, after the Answer command, ARG1 and ARG2 are not
availables
[macro-vcm]
; ARG1=mailbox ARG2=timeout
exten => s,1,NoOp(Before Answer: Voicemail=${ARG1}, timeout=${ARG2})
exten => s,2,Wait(${ARG2})
exten => s,3,Answer()
exten => s,4,NoOp(After Answer: Voicemail=${ARG1}, timeout=${ARG2})
exten => s,5,Wait(1)
exten => s,6,Playback(vm/${ARG1}/greet)
exten => s,7,NoOp(After Playback: Voicemail=${ARG1}, timeout=${ARG2})
exten => s,8,Hangup()
[internal]
exten => 1,1,Dial(SIP/79701,120)
exten => 1,2,Hangup
exten => 2,1,Wait(10)
exten => 2,2,Dial(SIP/79702,120)
exten => 2,3,Hangup
[sip]
exten => 100,1,Dial(Local/1 at internal&Local/2 at internal,120)
exten => 100,2,Hangup()
exten => _99XX,1,macro(vcm,${EXTEN},10)
exten => _99XX,2,Hangup()
More information about the asterisk-dev
mailing list