Author: VoIP Info
PERL-SIP-AGI
// sip out going agi by imran #!/usr/bin/perl use Asterisk::AGI; my $ModuelPath = "/var/www/cgi-bin/modules"; my $ivrPath = "/var/www/html/ivrSounds"; use lib "/var/www/cgi-bin/modules"; use Db; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $callerid="0"; $callerid= $input{callerid}; $|=1; $AGI->answer(); ($calleridnum,…
Read More »MANAGERAPI-JAVA-AGI
// file name HelloEvents.java full flashed demo of Asterisk-JAVA package APIs// by imran ( Pakistan ) you can use this to handle every thing in java that asterisk supports.// it is a complex script but gives u a…
Read More »PERL-ZAPOUTGOING-AGI
#!/usr/bin/perl // zap call outging by imran ( Pakistan ) use Asterisk::AGI; use lib "/var/www/cgi-bin/modules"; use Db; $AGI = new Asterisk::AGI; $|=1; my %input = $AGI->ReadParse(); ($calleridnum, $phoneno, $quiet) = @ARGV; $phoneno =~ s/^9//gsi; my @Result=Db->ExecuteQuery("select co_no,outgoing_prefix from…
Read More »JAVA-AGI
There’re a AGI Java example to use it. This example could be compiled under GNU/Linux or Windows. // RechargeAgi.java Card Recharging by imran ( Pakistan ) import java.io.*;import java.sql.*;import java.util.*;import net.sf.asterisk.fastagi.AGIChannel;import net.sf.asterisk.fastagi.AGIException;import net.sf.asterisk.fastagi.AGIRequest;import net.sf.asterisk.fastagi.AbstractAGIScript; /*MySql TableCardspkid | uid…
Read More »Using Slimserver for Music on Hold
MOH Slimserver Use the slimserver to stream to your Music on Hold: Download and install the slimserver from http://www.slimdevices.com/su_downloads.html Create a dummy mp3 directory with an empty mp3 file: mkdir /var/lib/asterisk/mohmp3-dummy touch /var/lib/asterisk/mohmp3-dummy/dummy.mp3 musiconhold.conf: slimp3 => custom:/var/lib/asterisk/mohmp3-dummy,/usr/bin/mpg123 -q…
Read More »binnacleita
Authorized Distributors for ‘Quintum Technologies’ in Colombia, Mexico and Latin America. Somos distribuidores autorizados para Latinoamérica de la marca Quintum Techologies Damos Soporte técnico y comercial en habla hispana para toda América Nos especializamos en soluciones de VoIP…
Read More »Asterisk legacy integration
Asterisk may be interfaced with other PBX systems to: Add functionality to the existing system Provide expansion Provide a VOIP gateway for an existing system Here you’ll find tips on getting your old PBX to work with Asterisk….
Read More »SIP mwi
Message Waiting notifications in SIP are done with the SIP method notify method. This is supported by: Aastra phones 480i, 9133i, 9112i, 480i CT Cordless Asterisk: The Open Source PBX Atcom phones AT-320 AudioCodes MediaPack FXS Gateways -draft-ietf-sipping-mwi-04.txt…
Read More »Asterisk Manager API Action ListCommands
Action: ListCommandsParameters: ActionID As of Asterisk ver. 1.0.9 Response: SuccessActionID: SIP/x7062618529-99a0AbsoluteTimeout: Set Absolute TimeoutChangeMonitor: Change monitoring filename of a channelCommand: Execute CommandEvents: Contol Event FlowExtensionState: Check Extension StatusGetvar: Gets a Channel VariableHangup: Hangup ChannelIAXpeers: List IAX PeersListCommands: List…
Read More »Asterisk Manager API Action Hangup
Asterisk Manager API Action: Hangup Action: HangupParameters: Channel SEND: ACTION: HangupChannel: SIP/x7065558529-99a0 RECEIVE: Event: UnlinkChannel1: SIP/127.180.254.109-44df88e8Channel2: SIP/x7065558529-99a0Uniqueid1: 1124989110.20473Uniqueid2: 1124989110.20474 Event: HangupChannel: SIP/x7065558529-99a0Uniqueid: 1124989110.20474Cause: 16 Event: HangupChannel: SIP/127.180.254.109-44df88e8Uniqueid: 1124989110.20473Cause: 16 Response: SuccessMessage: Channel Hungup Asterisk manager API
Read More »Asterisk Manager API Action GetVar
Asterisk Manager API Action: GetVar Action: Getvar Parameters: Channel, Variable, ActionID ActionID is an optional parameter for message matching. Example : SEND: ACTION: GetVar Channel: SIP/5060-44d225d0 Variable: extension RECEIVE: Response: Success extension: 17065551419 RECEIVE ON ERROR: Response: Error…
Read More »Asterisk Manager API Action ExtensionState
Action: ExtensionStateParameters: Exten, Context, ActionID SEND: ACTION: ExtensionStateContext: defaultExten: idonnoActionID: 1 RECEIVE: Response: SuccessActionID: 1Message: Extension StatusExten: idonnoContext: defaultHint:Status: -1 Status codes:-1 = Extension not found0 = Idle1 = In Use2 = Busy4 = Unavailable8 = Ringing16 =…
Read More »Asterisk Manager API Action Monitor
Asterisk Manager API Action: Monitor Action: Monitor Parameters: Channel, File, Format, Mix Example Via Asterisk 1.0.9 SEND: ACTION: Monitor Channel: SIP/x7062618529-643d File: channelsavefile Mix: 1 RECEIVE: Response: Success Message: Started monitoring channel RECIEVE ON FAIL: Response: Error Message:…
Read More »Asterisk Manager API Action ChangeMonitor
Asterisk Manager Action: ChangeMonitor Action: ChangeMonitor Parameters: Channel, File Changes the file name of a recording occuring on a channel Example via Asterisk 1.0.9: SEND: ACTION: ChangeMonitor Channel: SIP/x7065558529-1c20 File: 20050103-140105_cc51 RECEIVE ON FAIL: Response: Error Message: No…
Read More »Asterisk Manager API Action AbsoluteTimeout
Asterisk Manager API Action: AbsoluteTimeout This command will request Asterisk to hangup a given channel after the specified number of seconds, thereby effectively ending the active call. If the channel is linked with another channel (an active connected…
Read More »