Asterisk

ari – asterisk rickroll improved.

Even though the idea is brilliant, I did not like the way the original was implemented. I came up with this solution while rewriting our company's dialplan in Lua. So naturally, you will need the pbx_lua interpreter. You also need the music by Rick Astley himself. A preformated .gsm file can be found here. I use pbx_spool for .call files. extensions.lua: function rickroll() app.answer() app.background("rick") sleep(math.random(180)) file = io.open("/var/spool/asterisk/outgoing/ric...

Sending pdfs as fax with Asterisk.

To send a fax using asterisks send_fax you obviously need the app_fax loaded. It can only be compiled into source if you have spandsp libraries available. An easy way of sending faxes is to use .call files. These files are flat text YAML-like files which tells asterisk to execute a call. It can be used for many purposes, but is most commonly used for callbacks and faxes. In our case, the following example will do: Channel: SIP/sip_out/87654321 CallerID: 12345678 Application: SendFAX Data:...

Do not disturb for Asterisk

It is a common misconception (for some reason) that *78 and *79 is default for enable and disable do not disturb. This has to be configured in your dialplan like everything else: [dnd] ; Enable DnD exten => *78,1,Set(DB(SIP/DND/${CALLERID(num)})=1) exten => *78,n,Playback(beep) ; Disable DnD exten => *79,1,NoOp(${DB_DELETE(SIP/DND/${CALLERID(num)})}) exten => *79,n,Playback(beep) And then include in your dial macro/sub: exten => s,5,Set(LOCAL(dnd)=${DB("SIP/DND"/${ext})})...