Created by: oej,Last modification on Sun 27 of Sep, 2009 [19:02 UTC] by mich.davis
Comments
222
333More variables than that
by sverre, Tuesday 03 of March, 2009 [05:44:43 UTC]
There are many more variables available to users, from the command line typing show channel <channelname> you can see a complete list of variables available.
I am not sure if it works in all situations, but I was able to get the actual dialed number information from the SIP header using the following command:
exten => s,1,NoOp(${SIP_HEADER(TO)})
222
333Substrings
by jlewis, Monday 09 of January, 2006 [20:24:57 UTC]
Under Asterisk 1.0.x, substrings of the first N chars could be represented as ${variable::N}.
Under Asterisk 1.2.x, such substrings must be represented as ${variable:0:N}.
probably your asterisk binary is not within $PATH variable. Try 'whereis asterisk'. System will show you full path to binary. It's probably something like /usr/bin/asterisk, or maybe /usr/sbin/asterisk. Anyway- you should use 'sudo $fullpath_to_asterisk_binary -r', or write needed directory to $PATH environment variable, and use 'sudo asterisk -r'.
Hi, I am trying to install Asterisk 1.4 on Centos 4.8, basically following the steps in the O'Reilly book. If I go to /etc/rc.d/init.d/asterisk status, it returns "asterisk (pid12730) is running...", but I cannot execute "asterisk -r" anywhere. All that ever returns is a "bash: asterisk: command not found" Am I doing something wrong?
This is a strange request, I think - trying to scale down my hardware at home, I've removed my VoIP server (TrixBox). I'm now thinking this may have been a mistake, as I seem to be having difficulty in connecting my FXO to my VoIP hardware. This may even be impossible, I'm not sure.
...
Comments
333More variables than that
333Alternate for DNID function
exten => s,1,NoOp(${SIP_HEADER(TO)})
333Substrings
Under Asterisk 1.2.x, such substrings must be represented as ${variable:0:N}.