Dialplan - chan-sccp/chan-sccp GitHub Wiki
Dialplan
Q: How do you dial an SCCP from your dialplan
A: Use a dial statement like this
Dial(SCCP/998,120)
Q: How to Dial an SCCP Phone with a different ring
A: Add ringer=inside
to the dial statement
Dial(SCCP/198/ringer=inside,120)
ringer=
values:
outside
inside
feature
silent
urgent
Q: Dial a line and have the phone Auto Answer (Used for Paging for example)
A: add the following to your dial statement to page lines 9291 and 9292 with one way audio
Dial(SCCP/9291/aa=1w&SCCP/9292/aa=1w, 120)
aa=
values:
1w
: 1way audio (MIC on other side is OFF).2w
: 2way audio (MIC on other side is ON).1wb
: 1way and reject cause: busy1wu
: 1way and reject cause: unavailable1wc
: 1way and reject cause: congestion2wb
: 2way and reject cause: busy2wu
: 2way and reject cause: unavailable2wc
: 2way and reject cause: congestion
Q: Get infomation about the SCCP device or line from the dialplan.
A: use the SCCPDevice
, SCCPLine
and SCCPChannel
functions.
example:
Set(my_ip=${SCCPDevice(current,ip)});
to set the variable my_ip
to the ip-address of the current device.
example:
Set(his_cid_name=${SCCPDevice(SEP001B54CA6543,cidname)});
to set the variable his_cid_name
to the cidname
of the device with Mac-Address 00:1B:54:CA:65:43.
See: Dialplan Functions for further details.
Note: Asterisk Dialplan functions are CAPS Sensitive, so make sure you write 'SCCPDevice()' and not 'SCCPDEVICE()'.
Updating called party
Set(CONNECTEDLINE(number,i)=${EXTEN})
Set(CONNECTEDLINE(name,i)=Name for Extension ${EXTEN})
Set(CONNECTEDLINE(pres)=allowed)
How to to use Hints
Q: How to use Hints
A: To use a hinted speeddial you will also need an hint entry in your dialplan, which could look like:
extension.conf
:
[foobar]
exten => 101,hint,SCCP/101
exten => 102,hint,SCCP/102
exten => 103,hint,SCCP/103
exten => 104,hint,SCCP/104
exten => 105,hint,SCCP/105
exten => 200,hint,SCCP/101&SCCP/102 // Secretaties
or
extension.ael
(in AEL2
format):
context foobar {
hint(SCCP/101) _101 => NoOp(hint);
hint(SCCP/102) _102 => NoOp(hint);
hint(SCCP/103) _103 => NoOp(hint);
hint(SCCP/104) _104 => NoOp(hint);
hint(SCCP/105) _105 => NoOp(hint);
hint(SCCP/101&SCCP/102) _200 => NoOp(hint);
};
Once these hints have been configured you can use them in a speedial entry in your sccp.conf
like:
button = speeddial, "Secretaries", 200, 200@foobar
For more details checkout: Set-Up-Hints