[Asterisk-Dev] bug or expected behaviour : vars in template
contexts (1.2.0/HEAD)
Bruno Voigt
Bruno.Voigt at ic3s.de
Thu Nov 24 13:00:18 MST 2005
Hi all,
I have a problem with asterisk 1.2.0 and current CVS HEAD.
I initiate outbound calls via callfile and define in it
some vars SMID1, SMID2, SMID3 which I need in the contexts defining the
application logic.
I use context templates as I have several flavours of the application logic.
The problem is that the vars from the call file are empty in the
template context
but are defined as expected in the derived context
affected: asterisk 1.2.0 and todays CVS HEAD.
vars were available in template context in CVS HEAD version two weeks
before release of v1.2.0
Attached is the console log and my stripped down callfile and contexts
used to
reproduce the problem.
Any hints are appreciated eg. if this is expected behaviour or a bug...?
TIA, Bruno - bruno @ ic3s.de
-- Attempting call on Local/04109555907553 at test-ic3s-dial for
s at test-ic3s:1 (Retry 1)
-- Executing
SetCallerPres("Local/04109555907553 at test-ic3s-dial-a954,2", "allowed")
in new stack
here the in the template-context [test-generic-dial] the vars SMID1,
SMID2, SMID3 are set:
-- Executing NoOp("Local/04109555907553 at test-ic3s-dial-a954,2",
"SMIDA=TEST05101413332568405") in new stack
-- Executing Dial("Local/04109555907553 at test-ic3s-dial-a954,2",
"Zap/r3/04109555907553|30|g") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called r3/04109555907553
-- Zap/64-1 answered Local/04109555907553 at test-ic3s-dial-a954,2
> Channel Local/04109555907553 at test-ic3s-dial-a954,1 was answered.
here the in the template-context [test-generic-play] the vars SMID1,
SMID2, SMID3 are unexpectedly empty??!!
-- Executing NoOp("Local/04109555907553 at test-ic3s-dial-a954,1",
"SMIDB=") in new stack
-- Executing
SetCDRUserField("Local/04109555907553 at test-ic3s-dial-a954,1", "ID=;") in
new stack
-- Executing Wait("Local/04109555907553 at test-ic3s-dial-a954,1", "1")
in new stack
== Spawn extension (test-ic3s-dial, 04109555907553, 3) exited non-zero
on 'Local/04109555907553 at test-ic3s-dial-a954,2'
-- Executing Goto("Zap/64-1", "Play") in new stack
-- Goto (test-ic3s,s,112)
here the in the template-context [test-ic3s-play] the vars SMID1, SMID2,
SMID3 are defined again as expected:
-- Executing Playback("Zap/64-1", "/wav/TEST05101413332568405") in
new stack
-- Playing '/wav/TEST05101413332568405' (language 'en')
-- Executing NoOp("Zap/64-1", "SMIDC=TEST05101413332568405") in new
stack
call file named TEST05101413332568405 :
channel: Local/04109555907553 at test-ic3s-dial
context: test-ic3s
extension: s
priority: 1
callerid: 01722270201
maxretries: 0
waittime: 35
account: TEST
set: __SMID1=TEST05101413332568
set: __SMID2=405
set: __SMID3=
[test-generic-dial](!)
exten => _[0-9A-Z].,1,SetCallerPres(allowed)
exten => _[0-9A-Z].,n,NoOp(SMIDA=${SMID1}${SMID2}${SMID3})
exten => _[0-9A-Z].,n(Dial),Dial(${TRUNK}/${EXTEN},30,g)
[test-generic-play](!)
; here the vars are unexpectedly empty !!!:
exten => s,1,NoOp(SMIDB=${SMID1}${SMID2}${SMID3})
exten => s,n,SetCDRUserField(ID=${SMID1}${SMID2}${SMID3}\;)
exten => s,n,Wait(1)
exten => s,n,Goto(Play)
;---------------------------------------------------------------------------------------
[test-ic3s-dial](test-generic-dial)
[test-ic3s](test-generic-play)
exten => s,n(Play),Playback(/wav/${SMID1}${SMID2}${SMID3})
exten => s,n,NoOp(SMIDC=${SMID1}${SMID2}${SMID3})
exten => s,n,Hangup
;---------------------------------------------------------------------------------------
--
Always remember that you are unique. Just like everyone else.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bruno.Voigt.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20051124/5e5fc5bb/Bruno.Voigt.vcf
More information about the asterisk-dev
mailing list