search for: __myvar

Displaying 4 results from an estimated 4 matches for "__myvar".

2013 Mar 21
2
Howto create variable from the name of another one and get content of it
Hello, I have a variable created like ... Set(__myVar=${ARG1}) ... Set(__${myVar}STATUS=) If ARG1 is abcd, variable is abcdSTATUS and should be empty. This is OK. Now I would like to get the value of abcdSTATUS. How to do it? ${${myVar}STATUS}} isn't working, nor ${{myvar}STATUS} Thanks for any hint -- Daniel
2011 Apr 08
6
Variable inheritance with dialplan command Originate
Hi, I would have thought that when spawning a channel using the Originate() dialplan command, variables prefixed with two underscores would be preserved. However this does not work in the following case. Dialplan code: [intern] exten => 200,1,Set(__myvar="foo") exten => 200,n,Originate(Local/123 at test_orig,exten,dummy) [test_orig] exten => 123,1,NoOp(${myvar}) exten => 123,n,Hangup() [dummy] /end dialplan code. Console output: -- Executing [200 at intern:1] Set("SIP/200-00000018", "__myvar="foo&quot...
2011 Apr 09
1
asterisk-users Digest, Vol 81, Issue 27
...hen spawning a channel using the >> Originate() dialplan command, variables prefixed with two underscores >> would be preserved. >> >> However this does not work in the following case. >> >> Dialplan code: >> >> [intern] >> exten => 200,1,Set(__myvar="foo") >> exten => 200,n,Originate(Local/123 at test_orig,exten,dummy) >> >> [test_orig] >> exten => 123,1,NoOp(${myvar}) >> exten => 123,n,Hangup() >> >> [dummy] >> >> /end dialplan code. >> >> Console output: &gt...
2005 Jan 07
7
Channel Variable
Hi all, Does anyone know how to get the channel ID on the other side of the call? For example: When SIP/50 calls SIP/21, and the call is answered by SIP/21 I get: SIP/21-6735 answered SIP/50-b456 ${CHANNEL} will show me SIP/50-b456. Is there a parameter or a workaround to get the SIP/21-6735 part? Thanks. Assaf Benharoosh -------------- next part -------------- An HTML attachment was