Difference between revisions of "Telephone scripts"

From Hackerspace ACKspace
Jump to: navigation, search
(added autopatch and shoutcast stream links)
(automated list of telehone scripts/snippets by displaying Category:Telephone snippet)
 
Line 1: Line 1:
 
These are scripts used by the [[Telephone system]].
 
These are scripts used by the [[Telephone system]].
  
=== Number lookup ===
+
{{#ask: [[Category:Telephone snippet]]
This script uses mod_cidlookup combined with a custom php page.
+
| ?Description
It tests the number against a mySQL database, several reversed number lookup websites, the national telecommunications authority database and a coarse array of areas of the world, which are called in order of grannularity.
+
| ?Modification_date
The script is called both on outgoing and incoming calls
+
| sort=Modification_date
 
+
| order=descending
View the scripts at [[Telephone system:Number lookup]] active in ACKspace.
+
| format=embedded
 
+
| embedformat=h6
=== Simple intercom ===
+
}}
This is a dialplan sample of using the secondary phone line put on auto answer, and bridge them in a conference call.
 
 
 
View the dialplan at [[Telephone system:Simple intercom]]
 
 
 
=== Space state ===
 
This script sets the spacestate variable according to what the webservice API returns.
 
It then can be used in the dialplan to, for example, play a sound file or do call forwarding.
 
Currently it is used to build a sound phrase for playing it as a greeting within our IVR
 
 
 
View the dialplan at [[Telephone system:Space state]]
 
 
 
=== Closing announcement ===
 
This collection of scripts was used to broadcast (closing) announcements using cron jobs
 
 
 
View the scripts at [[Telephone system:Closing announcement]]
 
 
 
=== Betamax credit notification ===
 
This collection of scripts is used to say the amount of credit left on one of the Betamax services (tested with VoipBuster and InterVoip).
 
It is an altered version of a php script.
 
 
 
View the scripts at [[Telephone system:Betamax credit]]
 
 
 
=== Autopatch ===
 
 
 
To connect the <abbr title="private automated branch exchange">PABX</abbr> to an external communications channel, one needs a tiny bit of hardware and some scripting to get it working.
 
A proof of concept is made that used the <abbr title="private mobile radio">PMRs</abbr> in the space and a couple of components on a perf-board.
 
 
 
View the schematic and script at [[Telephone_system:autopatch]]
 
 
 
=== Shoutcast streams ===
 
The most efficient way to have shoutcast streams as <abbr title="music on hold">MOH</abbr> is to set up a muted conference. This way, the fist connection will be made when the first listener joins, and no extra streams will be opened.
 
 
 
View the configuration files at [[Telephone_system:shoutcast_streams]]
 
  
 
[[Category:Telephony]]
 
[[Category:Telephony]]

Latest revision as of 11:26, 15 September 2017

These are scripts used by the Telephone system.

Telephone system:Number lookup

This script uses mod_cidlookup combined with a custom php page. It tests the number against a SQLite database, several reversed number lookup websites, the national telecommunications authority database and a coarse array of areas of the world, which are called in order of granularity. The script can be called both on outgoing and incoming calls

Telephone system:Space state

This script sets the spacestate variable according to what the webservice API returns. It then can be used in the dialplan to, for example, play a sound file or do call forwarding. Currently it is used to build a sound phrase for playing it as a greeting within our IVR

Telephone system:FreeSWITCH tricks

This page provides a couple of tricks to ease working and debugging with FreeSWITCH

Phone:+31979922

The telephone number (+31979922) is part of the SpacePhone ENUM project, and works in two ways:

  • Be accessible to other people having only a numeric keypad, without any costs.
  • Call other in-country spaces with a short-hand number, in our case: 922 for ACKspace
Telephone system:shoutcast streams

The most efficient way to have shoutcast streams as MOH is to set up a muted conference. This way, the fist connection will be made when the first listener joins, and no extra streams will be opened.

Telephone system:tijdmelding

Dit script is een bescheiden ode aan de bekende tijdmelding, die inmiddels al 25 jaar dezelfde stem draagt, al 87 jaar bestaat (met 83 jaar gesproken tijdmelding).

Telephone system:fail2ban

If you have a FreeSWITCH instance running on the public net, changes are people will try to exploit it. Fail2ban tries to mitigate this. This is a re-attempt since the alternative perl autoblock script would freeze/hang.

Telephone system:Simple intercom

This is a dialplan sample of using the secondary phone line put on auto answer, and bridge them in a conference call.

Telephone system:Closing announcement

This collection of scripts was used to broadcast (closing) announcements using cron jobs

Telephone system:autopatch

To connect the PABX to an external communications channel, one needs a tiny bit of hardware and some scripting to get it working. A proof of concept is made that used the PMRs in the space and a couple of components on a perf-board.

Telephone system:Betamax credit

This collection of scripts will allow the user to hear the credit available on the Betamax services (VoipBuster, Intervoip, etc.), when dialing 1244 (the number for prepaid services as defined by Ministry of Economic affairs).

Telephone system:Cisco phone deployment

Some notes and configuration snippets for deploying the Cisco 79xx series phones