Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Variable variables


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ish at pack-net.co.uk
Guest





PostPosted: Tue Jun 16, 2015 8:13 am    Post subject: [asterisk-users] Variable variables Reply with quote

Hi

Can asterisk handle asterisk variable variables?


For example:


If I were to set


FOO300=BAR111


and I had something in a dialplan like:


_3XX,1,NoOp(${FOO${EXTEN}})


And the user had entered 300, it would output BAR111


We are using asterisk 1.8


Thanks in advance


Ish

--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)161 660 2350
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Tue Jun 16, 2015 10:08 am    Post subject: [asterisk-users] Variable variables Reply with quote

On Tue, 16 Jun 2015, Ishfaq Malik wrote:

Quote:
Can asterisk handle asterisk variable variables?

For example:

If I were to set

FOO300=BAR111

and I had something in a dialplan like:

_3XX,1,NoOp(${FOO${EXTEN}})

And the user had entered 300, it would output BAR111

Yes.

1) Rather than relying on the 'side effect' of the noop() application, you
should use the application specifically designed for the purpose of
outputting to the console, verbose().

2) You could have had your answer in 2 minutes instead of 2 hours if you
had just tried it yourself.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services