[Asterisk-Users] dial-out and variable inheritance problems

Tamas jalsot at gmail.com
Fri Dec 2 09:30:49 MST 2005


Hello,

extensions.conf:
[mytest-in]
exten => 1,1,NoOp(${MYVAR1})
exten => 1,n,Wait(20)
exten => 1,n,Hangup()

[mytest-out]
exten => 1,1,NoOp(${MYVAR1})
exten => 1,n,Dial(Zap/g1/061111111,10,H|g)

my test dial.out file:
Channel: Local/1 at mytest-out
MaxRetries: 0
Context: mytest-in
Extension: 1
Priority: 1
Set: __MYVAR1=hello

The result:
    -- Attempting call on Local/1 at mytest-out for 1 at mytest-in:1 (Retry 1)
    -- Executing NoOp("Local/1 at mytest-out-88e0,2", "hello") in new stack
    -- Executing Dial("Local/1 at mytest-out-88e0,2",
"Zap/g1/061111111|10|H|g") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g1/061111111
    -- Zap/1-1 is proceeding passing it to Local/1 at mytest-out-88e0,2
Dec  2 17:28:18 NOTICE[13079]: channel.c:2412 __ast_request_and_dial:
Don't know what to do with control frame 15
    -- Zap/1-1 answered Local/1 at mytest-out-88e0,2
       > Channel Local/1 at mytest-out-88e0,1 was answered.
    -- Executing NoOp("Local/1 at mytest-out-88e0,1", "") in new stack
    -- Executing Wait("Local/1 at mytest-out-88e0,1", "20") in new stack
  == Spawn extension (mytest-out, 1, 2) exited non-zero on
'Local/1 at mytest-out-88e0,2'


As you can see, the MYVAR1 variable did not inherit, which breaks my
dial-out application. This way it worked well for a long time, however
an upgrade to recent HEAD version broke things. Unfortunately I don't
know which version worked fine, I didn't use this feature for a long
time and just now I upgraded...

Anybody else experiencing this problem?

Regards,
	Tamas







More information about the asterisk-users mailing list