
Asterisk Blog - Page 11
Asterisk func group_count
Synopsis Counts the number of channels in the specified group Description GROUP_COUNT([groupname][@category]) Calculates the group count for the specified group, or uses the channel’s current group if not specifed (and non-empty). Notes *CLI> show function GROUP_COUNT Return…
Read More »Asterisk func group
Synopsis Gets, sets or clears the channel group. Each channel can only be member of exactly one group per category; categories can be employed for more fine grained group management, and thus can help to assign more than…
Read More »Asterisk func filter
Synopsis: Filter the string to include only the allowed characters Description: FILTER(<allowed-chars>,<string>) – Asterisk 1.6 and later FILTER(<allowed-chars>|<string>) – Asterisk 1.4 Notes *CLI> show function FILTER Return value Returns the resulting string. Examples exten => s,1,Set(foo=${FILTER(0-9,${cdrnum})})…
Read More »Asterisk func exists
Synopsis: Existence Test: Returns 1 if exists, 0 otherwise Description: EXISTS(<data>) This checks the existance of a string. Consider the following: Var1=test Var2= EXISTS(${Var1}) = 1 EXISTS(${Var2}) = 0 If you’re dynamically creating variables and need to check…
Read More »Asterisk func db_exists
DB_EXISTS() AstDB function to check if a key exists Synopsis: Check to see if a key exists in the Asterisk database Description: DB_EXISTS(<family>/<key>) This function checks whether a key exists in the Asterisk database. Checking for existence of…
Read More »Asterisk func curl
Retrieves the contents of a URL Description CURL(url[|post-data]) url – URL to retrieve post-data – Optional data to send as a POST (GET is default action) Return value Returns the resulting string/page. Configuration Make sure curl is on…
Read More »Asterisk func array
Allows setting multiple variables at once; introduced in Asterisk v1.4. Also available as a backport for v1.2 and Business Edition at svncommunity. Description ARRAY(var1[,var2[…][,varN]]) The comma-separated list passed as a value to which the function is set will…
Read More »Asterisk func cdr
Synopsis: CDR(<name>) Description: CDR(<name>[|options]) name may be one of the following: accountcode: The channel’s account code. amaflags: DOCUMENTATION, BILL, IGNORE etc answer: Time the call was answered. billsec: Duration of the call once it was answered. channel: Channel…
Read More »Asterisk config oss.conf
The oss.conf Asterisk configuration file allows configuration of OSS channels within Asterisk. OSS channels allow calls to be placed to/from OSS devices, using OSS audio input/output devices as telephony devices. This allows a headphone and microphone plugged into…
Read More »Asterisk AEL2
Asterisk Extension Language v.2 AEL v.2 is intended to provide an actual programming language that can be used to write an Asterisk dialplan. It further extends AEL, and provides more flexible syntax, better error messages, and some missing…
Read More »Asterisk SIP user vs peer
Asterisk SIP ‘users’ and ‘peers’ are have been the source of much confusion for Asterisk users. With newer versions of Asterisk the concept of SIP ‘users’ will be phased out. Quotes from Kevin Fleming of Digium on Asterisk…
Read More »Asterisk RealTime PostgreSQL
So, rather than have this stuff all over the place, I thought it would be easier if I just made a page that would handle all things RealTime and PostgreSQL. While PostgreSQL can still be used Asterisk cdr…
Read More »Asterisk Paid Support
This is a list of companies that offer Asterisk Paid Support. Important notice to posters entering new companies to this page: If you want to add your company, please read the Posting Guidelines for Promoting Products and Services…
Read More »Asterisk How to connect to Metaswitch
The Grand Unified Theory of Connecting Asterisk to a Metaswitch Got Asterisk? Want to connect to a Metaswitch switch at your ISP? Here’s how we did it. Features: Asterisk behind a firewall Asterisk server at fixed IP 6…
Read More »Asterisk config template
Asterisk configuration templates Configuration templates are a means to avoid repetitive sections in Asterisk configuration files, such as extensions.conf, sip.conf or iax.conf. For use template configurations, the syntax for defining a section is as follows: [section](options) label =…
Read More »