similar to: How to access environment variable?

Displaying 20 results from an estimated 1000 matches similar to: "How to access environment variable?"

2006 Nov 24
2
Correct syntax to access a shell variable?
I would like to access my shell environment variable MYIP from within sip.conf to put in externip. I've tried some variations of syntax after reading "The Future of Telephony" but it's not working yet. Should it be externip=${ENV{$MYIP}} or some other syntax?? Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Linux
2001 Oct 21
5
Trying to startup Wine
I have downloaded the source (wine-20011004), compiled and installed with ~/wine-20011004/tools/install.sh and am attempting to start running it. My first try, as suggested in the docs, is /windows/sol.exe from a terminal in KDE and the error message I get is: Gtk-WARNING **: cannot open display: I compiled and installed as root - that may have been a mistake. However, I have a /root/.wine
2006 Mar 23
6
How to create [new_context] in extensions.conf?
It _appears_ that the only way to create valid [context] is by a context = line in sip.conf. Is there another way to create a [new_context] in extensions.conf so I can dial from it? Right now most of my extens are in [default] and I'd like to avoid that. Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Slackware Linux
2013 Dec 06
1
Paging in waves.
I've been working on writing a subroutine to page groups of phones at once and I'm having some difficulty. My goal is to have a user call an extension, I record the page they wish to play, I then page out that recorded file to the phones in groups. [sub-masspage] exten => s,1,NoOP same => n,Answer same => n,Set(filename=$PAGE) same => n,Wait(1) same =>
2007 Jan 02
2
How to show a debugging remark in a sip or extensions context?
I would like to show a remark that would show call progress and appear on the CLI screen. The remark should be in the code of a sip [channel] or extentions [context] If I can't send my own remark, what little used 'show' command could I insert in the code? Can this be done? -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Linux
2003 Dec 23
3
Why does simple smb.conf demand password?
I am trying to setup a simple Samba server using the instructions in the O'Reilly book "Using Samba" first edition on a Slackware 9.1 system which uses Samba 2.2.8a. The windows machine uses windows 98SE. The instructions under Server Configuration starting page 93 and Disk Share Configuration starting page 96 had me setup a very simple smb.conf which should then appear in Network
2006 Feb 13
4
Newbie wants to run Forte Agent
I'm new to the list and to Wine. I loaded wine wine-0.9.7-i486-S10.2 into Slackware 10.1 in order to run the Forte Agent newsreader. It was setup and running under Win4lin which I have discontinued. What would be the syntax to load Forte Agent and specify the old "start-in" directory used under Win4lin? wine ./agent something_for_start-in_directory ?? Does Wine have the
2007 Aug 23
3
Asterisk Prompt
Hi List; I read the following sentence: "The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable" In the following link: http://www.voip-info.org/wiki/index.php page=Asterisk+CLI+prompt The question is: what is the ASTERISK_PROMPT UNIX environment variable and where I can access it to change it? Also where I can find information about it? Regards Bilal Ghayad
2006 Nov 22
1
Sipura phone does not ring
Problem: SPA3000 phone does not ring for incoming PSTN call although I can dial out. I set up my Sipura with the Voxilla Wizard which is pretty good but leaves out some important details. The Voxilla Wizard for Supura SPA3000 gave me a setting for PSTN Tab -> Dial Plans -> Dial Plan 8 (<S0:66610>) Should I put extension [66610] in sip.conf with a context in extensions.conf that
2007 Jan 27
1
How to fix error when paging
I am trying to page my Grandstream GXP-2000 phones and keep getting the error message: Jan 27 12:55:04 WARNING[30401]: app_page.c:183 page_exec: Incomplete destination '' supplied. How can I fix this error? The two contexts below do either one-way paging or two-way paging to all Grandstream phones in a list. [One_Way_Page_GROUP] ; one to many page exten =>
2007 Mar 02
1
How to log VERBOSE statement to a file?
I would like to log a verbose statement in my 900/976 extens to a special file called 'attacks'. These are not standard messages like debug, notice, warning, error, vebose or dtmf that could be logged to /var/log/asterisk/messages. Does the 'verbose' in VERBOSE commands have anything to do with the 'verbose' in error messages? I tried >> redirection of a
2006 Mar 16
2
Can wine run .com files?
Does Wine have the ability to run DOS .com files? Specifically I wish to run 4dos.com which is a command.com replacement. Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Slackware Linux
2006 May 03
1
How to access a 'guest ok' share from Windows without password?
I have a Slackware Linux box called Tillie with three shares. All at /, user at /home/user and public at /public which is "guest ok" for access without a password. The problem is that Tillie shows up in Windows Network Neighborhood as a single icon. To open that icon and see the three shares Windows demands a password, thus making it impossible to access. Is there any way to get
2020 May 31
4
CLI color prompt
> On 2020-05-31 15:59, Antony Stone wrote: > On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: > > "%Cn[;n] - Change terminal foreground (and optional background) color to > specified A full list of colors may be found in include/asterisk/term.h" > > So, try: > > export ASTERISK_PROMPT="%C31[%H]: " > > (I got 31 from reading the
2006 Nov 14
1
How to use Sipura SPA3k POTS line to dial Asterisk SIP phones?
My SIP phones can dial out through Sipura SPA3k to POTS for local and 911 calls _but_ incoming POTS calls are being swallowup somehow. Am I on the right track with the code snippit below? sip.conf: --------- In sip.conf the following code is _supposed_ to ring the SIP phones when a POTS line call comes in through Sipuara to Asterisk. [spa3k-pstn-in] ; Pots-line-in from Sipura ; If
2020 May 31
5
CLI color prompt
Hello, how can I change the color of the asterisk prompt to red ? I read in the wiki that I can use %Cn[;n] https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration But what does this mean ? There is no example how to actually use it. where do I put it? What syntax is that anyway? How do I specify red ? I currently have this in my environment: export ASTERISK_PROMPT="[%H]:
2006 Feb 04
1
Trying to mount with minimalist smb.conf
I am trying to mount a share on a remote machine using a miminal smb.conf as suggested in the Samba HOWTO. Nmbd and smbd are running on the target machine. The calling machine (server?) has the name of the target (linda2) in /etc/smbshares. When I try to mount I get the error message: Got a positive name query response from 127.0.0.1 ( 192.168.0.4 ) Connecting to 192.168.0.4 at port 445
2020 May 31
2
CLI color prompt
> On 2020-05-31 15:59, Antony Stone wrote: > On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: > > So, try: > > export ASTERISK_PROMPT="%C31[%H]: " does this work for you? Did you test it on your side? It color prompt works for anybody, could you please post a working example? Or is this a fictional functionality that actually does not work ?
2020 May 31
3
CLI color prompt
> On 2020-05-31 18:39, Ira wrote: > > I typed this at the terminal prompt: export ASTERISK_PROMPT="%C31[%H]: " > > Typing at the same place: echo $TERM returns xterm > > And now I have colored prompts at the Asterisk command line, so I can > assure you it can work. Kind of cool, 14 years using Asterisk and > because of your question, I now have colored
2007 Jan 18
1
Simplifying similiar sip trunks
I have over 12 sip trunks that are very similiar, like extension 412 below. Is there any way to have a single variable in [general] that contains the 7 lines after 'username=412'? This would reduce clutter in sip.conf. I don't want to put these common lines in [general]. What I have now repeated 12x: [412] username=412 context=default type=friend qualify=yes insecure=very