Tuesday, September 11, 2012

Asterisk Telephone Telephone Groups

A large constituent of my piece of job centers exactly about managing Asterisk based Virtual PBXes. Now, I know real picayune of Asterisk, then every bit I larn I volition part what I larn inward the dwelling household of helping out other people who struggle.

Intercepting Calls on Asterisk (or CallGroups) every bit the clever people telephone band it.

Say that your customer has a switchboard, as well as half-dozen extensions inward the office. Someone calls the office, knows the extension they desire to accomplish as well as past times the magics of Asterisk IVRs they grapple to connect themselves straight to Joe. Now, Joe is at the H2O cooler chatting alongside a colleague as well as is hence unable to listen his telephone ring. Martha at the switchboard nevertheless does listen it ringing, as well as feels the urge to response it. How would yous gear upwards the Asterisk server to let this?

Well, it is actually quite simple:

What yous take away to create is assign a callgroup as well as a pickupgroup every bit shown below. But first, what is a:
callgroup:
H5N1 callgroup is exactly a mode of grouping extensions that part some mutual function, ie. all the extension inward the "Sales" department

pickupgroup:
The pickupgroup directive, when assigned to an extension, shows which callgroups' calls tin survive intercepted or picked upwards past times the relevant extension

Practical:

Open upwards sip.conf (usually it tin survive constitute inward /etc/asterisk/sip.conf)

Here yous volition abide by many sections, called "Contexts"

Find the context matching your Switchboard extension ie. [100]. It mightiness await something similar this:
-------
[100]
type=peer
host=dynamic
context=international
disallow=all
allow=g729
qualify=yes
secret=superawesomepassword
nat=yes
canreinvite=no
canredirect=no
----------

To the bottom of this add together the pickupgroup directive:
pickupgroup=1

This tells Asterisk that extension 100 tin intercept whatever telephone band ringing on whatever telephone inward callgroup 1

Now, no extensions conduct keep yet been assigned to callgroup 1 then to remedy that, abide by  the context matching the extension that yous desire to house inward the callgroup as well as exactly add together the callgroup directive, similar so:
[101]
type=peer
.
.
.
callgroup=1

The switchboard (ext 100) volition straightaway survive able to alternative upwards a telephone band ringing on extension 101 exactly past times pressing *2# on their handset (sometimes exactly *2)



And at that topographic point yous go, Asterisk callgroups inward a nutshell. Of cast at that topographic point is much to a greater extent than yous tin create alongside callgroups, as well as nosotros volition accept a await at that inward the future.