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@mytest-out MaxRetries: 0 Context: mytest-in Extension: 1 Priority: 1 Set: __MYVAR1=hello The result: -- Attempting call on Local/1@mytest-out for 1@mytest-in:1 (Retry 1) -- Executing NoOp("Local/1@mytest-out-88e0,2", "hello") in new stack -- Executing Dial("Local/1@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@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@mytest-out-88e0,2 > Channel Local/1@mytest-out-88e0,1 was answered. -- Executing NoOp("Local/1@mytest-out-88e0,1", "") in new stack -- Executing Wait("Local/1@mytest-out-88e0,1", "20") in new stack == Spawn extension (mytest-out, 1, 2) exited non-zero on 'Local/1@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
Philipp von Klitzing
2005-Dec-06 18:57 UTC
[Asterisk-Users] dial-out and variable inheritance problems
Hi!> my test dial.out file: > Channel: Local/1@mytest-out > MaxRetries: 0 > Context: mytest-in > Extension: 1 > Priority: 1 > Set: __MYVAR1=hello > > 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?Yes, same here. This broke an application focussed on .call files after upgrade from 1.0.9 to 1.2.0. :-( It appears that in 1.2.0 variables can only be set for the Channel: part but not for the Extension: part. I think this is worth a bug report... See similar posting: http://thread.gmane.org/gmane.comp.telephony.pbx.asterisk.user/128521 Cheers, Philipp
Philipp von Klitzing
2005-Dec-06 19:05 UTC
[Asterisk-Users] dial-out and variable inheritance problems
Hi again, found the matching bug report including fix SVN/CVS, just for the record: http://bugs.digium.com/view.php?id=5917 Philipp> my test dial.out file: > Channel: Local/1@mytest-out > MaxRetries: 0 > Context: mytest-in > Extension: 1 > Priority: 1 > Set: __MYVAR1=hello> 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