RT::Ac...SNotify(3pm)

πŸ“¦ version 1.04, in ubuntu noble

✨ NAME ✨

RT::Action::SMSNotify β€” an action that sends SMS notifications πŸ’…πŸ“± (this is the RT::Action::SMSNotify page from the User Contributed Perl Documentation, bestie, come get your girl)


πŸ’– DESCRIPTION πŸ’–

Okay so first things first: this page is just the vibe check on the action itself. For the whole story β€” like how to actually use this extension, and how to customise error reporting β€” you wanna go read RT::Extension::SMSNotify. That's where the details live. 🫢

Now, this action can be invoked a few different ways:

  • directly, all by itself πŸ‘‘
  • from rt-crontool
  • or via a Scrip

However you call it, she's ready. Periodt.


🌸 ARGUMENTS 🌸

Like literally every other RT action, RT::Action::SMSNotify takes a single argument. Just one. That's it.

And that one argument is a comma-delimited string of codes β€” each code tells the module where to go get the phone numbers it's gonna SMS. ✨

Heads up bestie: wherever a group shows up in a category, all the users from that group get recursively added. Like, the whole squad. 🫢

πŸŽ€ The Recognised Codes πŸŽ€

TicketRequestors

The ticket requestor(s). πŸ’– May be groups.

TicketCc

All entries in the ticket Cc field.

TicketAdminCc

All entries in the ticket AdminCc field.

TicketOwner

The ticket Owner field. πŸ‘‘

QueueCc

All queue watchers in the Cc category on the queue.

QueueAdminCc

All queue watchers in the AdminCc category on the queue.

g:name

The RT group with name 'name'. πŸ¦‹

Ngl, if that group doesn't exist, she's ignored with a warning. Also β€” and this is the part nobody loves β€” there's no mechanism for escaping commas in names. So don't try it. 😭

p:number

A phone number, specified in +0000000 form β€” no spaces, no commas, none of that. Just the digits, clean and iconic. πŸ’…

filtermodule:

Okay so this one's fun. You can override the phone number filter function on a per-call basis by passing filtermodule: in the arguments. 🧚

The argument has to be the name of a module that defines a GetPhoneForUser function.

And here's the cute part: this can appear anywhere in the argument string. So for example, if you wanted to force the use of the OnShift filter for this action, you might write:

TicketAdminCc,TicketRequestors,TicketOwner,TicketCc,filtermodule:RT::Extension::SMSNotify::OnShift

Slay. 🌈


And that's the whole page, bestie! This little icon was brought to you by perl v5.36.0, dated 2023-09-25 β€” mwah, thanks for reading, ily, go text somebody. πŸ’œπŸ“±βœ¨

πŸ“¦ where this page comes from