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/[EMAIL PROTECTED] for
[EMAIL PROTECTED]:1 (Retry 1)
    -- Executing
SetCallerPres("Local/[EMAIL PROTECTED],2", "allowed")
in new stack

here the in the template-context [test-generic-dial] the vars SMID1,
SMID2, SMID3 are set:

    -- Executing NoOp("Local/[EMAIL PROTECTED],2",
"SMIDA=TEST05101413332568405") in new stack

    -- Executing Dial("Local/[EMAIL PROTECTED],2",
"Zap/r3/04109555907553|30|g") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called r3/04109555907553
    -- Zap/64-1 answered Local/[EMAIL PROTECTED],2
       > Channel Local/[EMAIL PROTECTED],1 was answered.

here the in the template-context [test-generic-play] the vars SMID1,
SMID2, SMID3 are unexpectedly empty??!!

    -- Executing NoOp("Local/[EMAIL PROTECTED],1",
"SMIDB=") in new stack

    -- Executing
SetCDRUserField("Local/[EMAIL PROTECTED],1", "ID=;") in
new stack
    -- Executing Wait("Local/[EMAIL PROTECTED],1", "1")
in new stack
  == Spawn extension (test-ic3s-dial, 04109555907553, 3) exited non-zero
on 'Local/[EMAIL PROTECTED],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/[EMAIL PROTECTED]
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.


begin:vcard
fn:Bruno Voigt
n:Voigt;Bruno
org:IC3S AG
adr:;;Baeckerbarg 6;Wilstedt;;D-22889;Germandy
email;internet:[EMAIL PROTECTED]
tel;work:+494109555105
tel;fax:+49410955555
tel;cell:+4970068600686
x-mozilla-html:FALSE
url:http://www.ic3s.de
version:2.1
end:vcard

_______________________________________________
Asterisk-Dev mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to