Technical References
56 Error! No text of specified style in document.
56
GET RESPONSE messages are necessary because the script compiler will not allow
a single GET RESPONSE to be placed at the end of the where clause */
WHERE CDN EQUALS
VALUE XXXX:
SEND REQUEST GeoTel_id pr_req, pr_dn_XXXX, clid_ani, dnis_value, <in vars>
GET RESPONSE GeoTel_id post_route_status_str, type, value, <out vars>
.
.
.
VALUE ZZZZ:
SEND REQUEST GeoTel_id pr_req, pr_dn_ZZZZ, clid_ani, dnis_value, <in vars>
GET RESPONSE GeoTel_id post_route_status, type, value, <out vars>
END WHERE
/* If the post route request failed, go log an error, and do something with the call */
IF ( NOT (post_route_status = 0) ) THEN
EXECUTE POST_ROUTE_FAILED
END IF
/* If we get here, the post route succeeded, so complete the three way handshake with
the Aura Contact Center PG as described above */
SEND INFO GeoTel_id post_route_response_ack, pr_ok
/* Act on the information returned by the post route request. Each of the scripts
executed below will have a “WHERE response_value EQUALS” command
that will process the call based on the response_value */
WHERE CDN EQUALS
VALUE XXXX:
WHERE response_type EQUALS
VALUE 0: EXECUTE SCRIPT <script for response type 0 and CDN XXXX>
.
.
.
VALUE NB
xxxx
B: EXECUTE SCRIPT <script for response type NB
xxxx
B and CDN XXXX>
DEFAULT:
LOG "Unknown response type"
DISCONNECT
END WHERE
.
.
.
VALUE ZZZZ:
WHERE response_type EQUALS
VALUE 0: EXECUTE SCRIPT <script for response type 0 and CDN ZZZZ>
.
.
.
VALUE NB
zzzz
B: EXECUTE SCRIPT <script for response type NB
zzzz
B and CDN ZZZZ>
DEFAULT:
LOG "Unknown response type"
DISCONNECT
END WHERE
END WHERE
QUIT