Answer, Playback, and Hangup Applications

Answer, Playback, and Hangup Applications Answers a ringing channel. Answer([delay]) exten => s,1,Answer() exten => s,1,Answer(2) exten => 123,1,Answer() Instructs Asterisk to answer the channel if it is ringing. If the channel is not ringing, this application has no effect. It is generally recommended that the channel be answered before other applications are called, unless … Read more

get the last 7 characters of a PHP string

php-mysql

get the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring, -7); string substr ( string $string , int $start [, int $length ] ) If start is negative, the returned string will start at the start’th character from the end of string Example: <?php echo … Read more

Today in History, June 10

today in history 10 june

Today in History, June 10 Events on 10 june 671 – Emperor Tenji of Japan introduces a water clock (clepsydra) called Rokoku. The instrument, which measures time and indicates hours, is placed in the capital of Ōtsu. 1190 – Third Crusade: Frederick I Barbarossa drowns in the river Saleph while leading an army to Jerusalem. … Read more

Today in history, 7 june

Today in history 7 june

Today in history, 7 june   Events on 7 june 421 – Emperor Theodosius II marries Aelia Eudocia. The wedding was celebrated at Constantinople (Byzantine Empire). 879 – Pope John VIII recognizes the Duchy of Croatia under Duke Branimir as an independent state. 1002 – Henry II, a cousin of Emperor Otto III, is elected … Read more

Asterisk dialplan function GotoIf : Asterisk command gotoif

asterisk dialplan command gotoif

The GotoIf( ) Application GotoIf( ) uses a special syntax, often called the conditional syntax: GotoIf(expression?destination1:destination2) If the expression evaluates to true, the caller is sent to the first destination. If the expression evaluates to false, the caller is sent to the second destination. So, what is true and what is false? An empty string … Read more

SIP Trunk configuration – IP Based authentication and Password based authentication

There are two types of authentications 1. IP based authentication 2.Username and Password based authentication For IP Based Authentication You need to do the following changes in the sip.conf [siptrunk] type=friend fromuser=X.X.X.X ( your asterisk server ip ) which will send traffic to the service provider host=X.X.X.X ( service provider ip ) canreinvite=no qualify=no dtmfmode=RFC2833 … Read more

Asterisk Dial () command

Asterisk dial command

What is command and how it works? One of Asterisk’s most valuable features is its ability to connect different callers to each other. This is especially useful when callers are using different methods of communication. For example, caller A might be communicating over the traditional analog telephone network, while user B might be sitting in … Read more

Asterisk Subroutine Call : Pre-Dial Handlers

asterisk subroutine

Pre-dial handlers allow you to execute a dialplan subroutine on a channel before a call is placed but after the application performing a dial action is invoked. This means that the handlers are executed after the creation of the caller/callee channels, but before any actions have been taken to actually dial the callee channels. You … Read more

configuring digium TE235 and TE435 card in asterisk vicidial goautodial freepbx elastix

Digium’s (TE235) dual span digital interface cards support 48 (T1 / J1) or 60 (E1) connections to PSTN trunks over two spans (digital circuits). Built exclusively for use with Asterisk and Asterisk-based communications systems, the dual span cards provide the best value in digital connectivity. Digium TE235 and TE435 works with Any version of Asterisk … Read more