Hello,
We’re looking to replace some app_queue functionality so we’re building an ARI application. One thing that I am struggling to grasp is the creation of custom PJSIP headers.
In our dialplan today we use the b^() parameter for the queue
(queue-xxxx,b(ADD_HEADER^s^1),,,28800,,,,,)
[ADD_HEADER]
exten => s,1,Set(PJSIP_HEADER(add,X-UNIQUEID)=${CHANNEL(LINKEDID)})
same => n,Set(PJSIP_HEADER(add,X-CALL-ID)=${CHANNEL(pjsip,call-id)})
same => n,Return()
Now we’re looking to replace this, or add something similar for our ARI Originate. Either we find a way to add the headers and the values, or we somehow pass the channel to a dialplan extension “ADD_HEADER”. But what I have understand is that ARI is not an interface to the dialplan which means we have to rely on building this ourselves.
Much appreciated for any guidance on this. How can we add a similar functionality, or send these headers to the calling extension with the ARI /originate POST?