Laman

Rabu, 18 Maret 2015

Auto Dial Out

This is crazy ...
you can Prank call your friends with pre-recorded yours Boss's voice in the midnight.
it's cool right ?

How you can make it ? with Asterisk it's very-very easy.
First, You have to know about Auto Dial Out in Asterisk system
Second, Your asterisk need trunk connection to your local PSTN or celullar networks
Third, I think you need pre-recorded Boss's voices.

Auto Dial Out

On Asterisk we have to create .call file with your favorite text editor. e.g : nano or vi
 .call file containts (taken from http://www.voip-info.org) :
  • Specify where and how to call
    • Channel: <channel>: Channel to use for the call.
    • CallerID: "name" <number> Caller ID, Please note: It may not work if you do not respect the format: CallerID: "Some Name" <1234>
    • MaxRetries: <number> Number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.
    • RetryTime: <number> Seconds between retries, Don't hammer an unavailable phone. Default is 300 (5 min).
    • WaitTime: <number> Seconds to wait for an answer. Default is 45.
    • Account: Set the account code to use.
  • If the call answers, connect it here:
    • Context: <context-name> Context in extensions.conf
    • Extension: <ext> Extension definition in extensions.conf
    • Priority: <priority> Priority of extension to start with
    • Set: Set a variable for use in the extension logic (example: file1=/tmp/to ); in Asterisk 1.0.x use 'SetVar' instead of 'Set'
    • Application: Asterisk Application to run (use instead of specifiying context, extension and priority)
    • Data: The options to be passed to application

.Call file example

Channel: SIP/ISDN/081513304002
Application: Playback
Data: yourbossvoice


081513304002 is my GSM number, please change it
yourbossvoice is sound recording with format mp3 or wav or gsm, save it into folder /var/lib/asterisk/sounds/en as default your asterisk's sound folder.

How it works ?

  • Create file 081513304002.call with nano in the folder /root
    • nano /root/081513304002.call
  • Copy paste  from .Call file example into 081513304002.call than save.
  • with your linux cronjobs, you can arrange file 081513304002.call will be copied into folder /var/spool/asterisk/outgoing/ in the midnight.
Just it ... have Fun... :)

1 komentar:

  1. Hello can I have your mail so we can talk about this better,pls mail me itabiyiolayinka1@gmail.com anyone with good experience

    BalasHapus