How send channel to priority "n" in dialplan

I’m looking at originating a call using the ARI, and plan to send the channel into the dialplan at context “external”, extension “123”, priority “n”, label “testlabel”.

The problem is that the /channels parameter expects priority to be a long (i.e. numeric) value. If my dialplan uses “n” for priorities and I wish to jump to “n(testlabel)”, what do I pass for priority?

I can’t pass the string “n” since it’s non-numeric, and I can’t pass a blank since the method will default to priority 1. How do I handle this?

You specify label using the label parameter[1].

[1] Channels - Asterisk Documentation

Just re-read the docs, now I realize that if I specify a label then priority field is ignored (so “n” doesn’t matter)

In any case, n is not stored; it is just an instruction on how to calculate the actual priority at the time that the dialplan is being loaded from the conf file.

This doesn’t affect the solution, but I think you don’t understand what n means.