rendered paste bodyAsterisk Ready.
*CLI>
*CLI> -- Starting simple switch on 'Zap/1-1'
Jul 4 07:33:29 NOTICE[3525]: chan_zap.c:6061 ss_thread: Got event 18 (Ring Begin)...
Jul 4 07:33:30 NOTICE[3525]: chan_zap.c:6061 ss_thread: Got event 2 (Ring/Answered)...
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "1") in new stack
-- Executing Dial("Zap/1-1", "Zap/2/0145807013") in new stack
-- Called 2/0145807013
-- Zap/2-1 answered Zap/1-1
-- Attempting native bridge of Zap/1-1 and Zap/2-1
======================
[root@localhost asterisk]# cat extensions.conf
[general]
static=yes
writeprotect=no
;autofallthrough=yes
;clearglobalvars=no
;priorityjumping=no
[globals]
TRUNK=Zap/2
NUMBER=0145807013
[incoming]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Dial(${TRUNK}/${NUMBER})
;exten => s,1,NoOp(Before Dialing out through ${TRUNK} - Caller ID is ${CALLERID})
;exten => s,n,Dial(${TRUNK}/wwww${NUMBER})
;exten => s,n,NoOp(After Dialing out through ${TRUNK})