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

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

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

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

Asterisk DialStatus Channel Varriable

Asterisk channel variable DIALSTATUS Contains a text string signifying result of the last dial attempt: ANSWER: Call is answered. A successful dial. The caller reached the callee. BUSY: Busy signal. The dial command reached its number but the number is busy. NOANSWER: No answer. The dial command reached its number, the number rang for too … Read more

Asterisk cmd MYSQL

This is an ADD-ON of asterisk, is not installed by default and must be downloaded and installed with the asterisk-addons package.  However, in Asterisk 1.8 the addons have been integrated back into Asterisk. MYSQL(): Basic MYSQL Database Functionality (note that the help information returned from ‘show application MYSQL’ is a little misleading – what’s shown … Read more

Asterisk queue callback

SQL Table Structure If using the dialplan below, put the following table into a database called ‘acd‘. CREATE TABLE `bit_callers` ( `uniqueid` varchar(15) NOT NULL default ”, `callback` int(3) NOT NULL default ‘0’, `callbacknum` varchar(15) NOT NULL default ”, PRIMARY KEY (`uniqueid`), KEY `callback` (`callback`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Dialplan Additions [support-queue] exten => s,1,Answer … Read more