ATech Machine LIBRA-02 M Technické informace Strana 402

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 734
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 401
variable, which is set by the HOTDESK_STATUS() function. This tells us how many rows
were affected in the SQL UPDATE, which we assume to be 1. If the value of ${ODB
CROWS} is less than 1, we assume an error and handle it appropriately:
exten => logout,1,NoOp()
same => n,Set(HOTDESK_STATUS(${E})=0)
same => n,GotoIf($[${ODBCROWS} < 1]?error,1)
same => n,Playback(silence/1&agent-loggedoff)
same => n,Hangup()
exten => login_fail,1,NoOp()
same => n,Playback(silence/1&login-fail)
same => n,Hangup()
exten => error,1,NoOp()
same => n,Playback(silence/1&connection-failed)
same => n,Hangup()
exten => invalid_user,1,NoOp()
same => n,Verbose(1,Hot Desk extension ${E} does not exist)
same => n,Playback(silence/2&invalid)
same => n,Hangup()
We also include the hotdesk_outbound context, which will handle our outgoing calls
after we have logged the agent into the system:
include => hotdesk_outbound
The hotdesk_outbound context utilizes many of the same principles discussed previ-
ously, so we won’t approach it quite so thoroughly; essentially, this context will catch
all numbers dialed from the desk phones. We first set our LOCATION variable using the
CHANNEL variable, then determine which extension (agent) is logged into the system and
assign that value to the WHO variable. If this variable is NULL, we reject the outgoing call.
If it is not NULL, then we get the agent information using the HOTDESK_INFO() function
and assign it to several CHANNEL variables, including the context to handle the call with,
where we perform a Goto() to the context we have been assigned (which controls our
outbound access).
We will make use of the HOTDESK_PHONE_STATUS() dialplan function, which you can
define in func_odbc.conf like so:
[PHONE_STATUS]
prefix=HOTDESK
dsn=asterisk
readsql=SELECT extension FROM ast_hotdesk WHERE status = '1'
readsql+= AND location = '${ARG1}'
If we try to dial a number that is not handled by our context (or one of the transitive
contexts—i.e., international contains long distance, which also contains local), the
built-in extension i is executed, which plays back a message stating that the action
cannot be performed and hangs up the call:
366 | Chapter 16:Relational Database Integration
Zobrazit stránku 401
1 2 ... 397 398 399 400 401 402 403 404 405 406 407 ... 733 734

Komentáře k této Příručce

Žádné komentáře

HP 2201ca manuals

Owner’s manuals and user’s guides for Tablets HP 2201ca.
We providing 1 pdf manuals HP 2201ca for download free by document types: Service Manual






More products and manuals for Tablets HP

Models Document Type
G2 Service Manual   HP G2 Maintenance and Service Guide, 39 pages
8 1401 Tablet Service Manual   HP 8 1401 Tablet Maintenance and Service Guide, 38 pages
4200us Service Manual    HP 4200us Maintenance and Service Guide, 38 pages
2101us User Manual   HP 2101us User's Manual, 22 pages
G2 Service Manual   HP G2 Maintenance and Service Guide, 37 pages
Stream 7 Tablet - 5709 Quick Start Manual   HP Stream 7 Tablet - 5709 Quick start guide, 2 pages
L4A01UT Datasheet   HP Slate 10 Pro 10 EE G1, 4 pages
H9X15EA Datasheet   HP Pro Tablet 10 EE G1 32GB Grey, 4 pages
L3S95AA Datasheet   HP Pro Tablet 408 G1 64GB Graphite, 4 pages
L2J96AA Datasheet   HP Slate 10 Pro 10 EE G1 32GB Grey [ja] [zh] , 4 pages
K4M17UT Datasheet   HP Slate 8 Pro 8, 4 pages
L4A49UT Datasheet   HP ElitePad 1000 G2 Rugged, 4 pages
H9X68EA Datasheet   HP Pro Tablet 608 G1 64GB 4G Grey, 4 pages
H9X28EA#ABH Datasheet   HP ElitePad 1000 G2 Rugged 128GB 4G Black, 4 pages
BL3S97AA01 Datasheet   HP Pro Tablet 408 G1 32GB Graphite, 4 pages
L4A34UT Datasheet   HP Pro Tablet 408 G1, 4 pages
K7X61AA#ABH Datasheet   HP Pro Slate 8 16GB Grey, 4 pages
L5Q11EA#ABB Datasheet   HP ElitePad Mobile Retail Solution 64GB Silver, 4 pages
VSPX-HDMI-CSRX Datasheet   HP ElitePad 1000 G2 Healthcare, 4 pages
L3Z81UT Datasheet   HP Pro Tablet 10 EE G1, 4 pages