
Asterisk Blog - Page 10
Asterisk config privacy.conf
“general” section containt configurable value: maxretries = 2 ;How many chances the caller has to enter their number minlength = 8 ;Minimum number of digits that represent a valid phone number (default 10 – US/NA numbers)
Read More »Asterisk phone cisco 7970 SIP
The 7940/7960 pages were used as a starter for this page. Some significant modifications have been made to this page, but it really needs some more editing and trimming. It is far too long and too vague. If…
Read More »Asterisk and Virtual Private Servers
Virtual private servers (VPS) or Virtual dedicated servers are a form of virtualization that splits a single physical server into multiple virtual servers. The practice of partitioning a single server so that it appeared as multiple servers have…
Read More »Asterisk func len
Synopsis: Returns the length of the argument given Description: LEN(<string>) Notes *CLI> core show function LEN Return value Returns integer length of the string. Example exten => s,1,Set(foo=${LEN(${mystring})}) See also Asterisk variables Asterisk functions Asterisk – documentation of…
Read More »Asterisk func math
Synopsis: Performs Mathematical Functions Description: MATH(<number1><op><number 2>[,<type_of_result>]) Perform calculation on number 1 to number 2. Valid ops are: +,-,/,*,%,<,>,>=,<=,==and behave as their C equivalents. <type_of_result> – wanted type of result: f, float – float(default) i, int – integer,…
Read More »Asterisk func rand
Synopsis: Choose a random number in a range Description: RAND([min][,max]) Choose a random number between min and max. Min defaults to 0, if not specified, while max defaults to RAND_MAX (2147483647 on many systems). Notes *CLI> core show…
Read More »Asterisk func regex
Synopsis Regular Expression: Returns 1 if data matches regular expression. Description REGEX(“<regular expression>” <data>) Is the regular expression tied to the beginning of the string? Notes *CLI> show function REGEX Return value Returns 1 if data matches regular…
Read More »Asterisk func sipchaninfo
Synopsis: Gets the specified SIP parameter from the current channel Deprecation SIPCHANINFO() is deprecated in 1.6. Use CHANNEL. Description: SIPCHANINFO(item) Valid items are: peerip: The IP address of the peer. recvip: The source IP address of the peer….
Read More »Asterisk func sippeer
Synopsis: Gets SIP peer information Doesn’t work with RealTime. Description: SIPPEER(<peername>[:item]) SIPPEER(<peername>[,item]) – for Asterisk 1.6 Valid items are: ip (default): The IP address. port: The port number. (1.6) mailbox: The configured mailbox. context: The configured context. expire:…
Read More »Asterisk func sip_header
Synopsis Gets the specified SIP header Description SIP_HEADER(<name>) Notes: SIP_HEADER() gives you only access to headers of the initial INVITE request (and not, for example, any progress messages (which may contain call rating information) or the final BYE…
Read More »Asterisk func stat
Synopsis: Does a check on the specified file (NEW in Asterisk 1.4) Description: STAT(<flag>,<filename>) flag may be one of the following: d: Checks if the file is a directory e: Checks if the file exists f: Checks if…
Read More »Asterisk func timeout
Synopsis: Gets or sets timeouts on the channel. Description: TIMEOUT(timeouttype) Gets or sets various channel timeouts. The timeouts that can be manipulated are: absolute: The absolute maximum amount of time permitted for a call. A setting of 0…
Read More »Asterisk func isnull
Synopsis: NULL Test: Returns 1 if NULL or 0 otherwise Description: ISNULL(<data>) Notes *CLI> show function ISNULL Return value Returns 1 if NULL or 0 otherwise. Example exten => s,1,Set(foo=${ISNULL(${var1})}) See also Asterisk variables Asterisk functions…
Read More »Asterisk func iftime
Synopsis Temporal Conditional: Returns the data following ‘?’ if true else the data following ‘:’ Description IFTIME(<timespec>?[<true>][:<false>]) Times before Asterisk 1.6.2 are only accurate down to the 2-minute interval. So 12:01 is treated the same as 12:00. Starting…
Read More »Asterisk func if
Synopsis Conditional: Returns the data following ‘?’ if true else the data following ‘:’ Description IF(<expr>?[<true>][:<false>]) Notes *CLI> show function IF Resides in func_logic.so module Return value Returns the resulting string. Example exten => s,1,Set(foo=${IF($[ ${x} = 7]?tval:fval)})…
Read More »