QUESTION Hostname variable in dialplan

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
How can I use the current system name in the dialplan?
I dont manage to figure it out from here or here or here.
I want to use the same variable in the dialplan to get "mypbx" that makes up the system prompt: root@mypbx:~ $

Here is what I have tried:
Code:
...
same => n,NoOp(HOSTNAME: ${ENV(HOSTNAME)} PATH: ${ENV(H)} )
same => n,NoOp( SYSTEM: ${ENV(SYSTEMNAME)}/ ${SYSTEMNAME} ASTERISK_PROMPT: ${ENV(ASTERISK_PROMPT)}/${ASTERISK_PROMPT} Full hostname:${ENV(%h)}  Full hostname:${ENV(h)} Short hostname:${H}/${ENV(%H)}/${ENV(H)} Asterisk system name: ${ENV(%s)} ${ENV(s)} ) 
...

Thx
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top