@sammachin/node-red-dragonpbx 1.2.2

Node-RED nodes for building DragonPBX call scripts (announce, connect, response, pause, record, pickup)

npm install @sammachin/node-red-dragonpbx

@sammachin/node-red-dragonpbx

Node-RED nodes for building DragonPBX call scripts. Each node appends a verb object to msg.callScript; wire the nodes in sequence and return the resulting array from your CallHook to control the call.

Installation

Run the following command in your Node-RED user directory (typically ~/.node-red):

npm install @sammachin/node-red-dragonpbx

Verbs

All verb nodes appear under the dragonpbx palette category and use typed inputs, so every field can be a literal or a msg/flow/global/jsonata/env reference. Unset fields are omitted from the emitted verb.

Node Verb Options
announce announce url, answer, statusLabel
connect connect reconnect, callerId, callerName, ringtone, dest[] (type, address, timeout, headers; trunk_id/trunk_name for trunks; username/password/codecs/proxy for sip), statusLabel
response response code, reason, headers, statusLabel
pause pause duration, statusLabel
record record siprecServer, legs, codec, requireSiprec, from, proxy, auth, headers, metadata, statusLabel
pickup pickup target, state, statusLabel

statusLabel

Every verb accepts an optional statusLabel. It defaults to the boolean false, which suppresses status events for that verb. Set it to a string instead to re-enable events and have that label echoed back on them.

Other nodes

  • auth — computes the SIP digest challenge/response for RegHook authentication (reads msg.payload, sets msg.payload to the auth result). Not a call-script verb.
  • callScript (basenode) — appends an arbitrary JSON object (with mustache templating) to msg.callScript, for verbs or fields not yet covered by a dedicated node.

Example

  1. Inject or receive the incoming CallHook request.
  2. Chain the verb nodes you want, e.g. record → connect.
  3. Return msg.callScript in your HTTP response to DragonPBX.

See the DragonPBX docs/verbs.md for the full verb/option reference.

License

MIT

Node Info

Version: 1.2.2
Updated 2 weeks, 4 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

313 in the last week

Nodes

  • basenode
  • dragonpbx_auth
  • dragonpbx_announce
  • dragonpbx_pause
  • dragonpbx_response
  • dragonpbx_connect
  • dragonpbx_record
  • dragonpbx_pickup

Keywords

  • node-red
  • dragonpbx
  • sip
  • telephony
  • voip
  • callscript

Maintainers