ARI originate and originator

Hello people,
I’m reading
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate
and doing some tests with


But I’m having some trouble understanding the originator parameter
I modified example.js (https://pastebin.com/7tcnfVpe) to include the current channel id as originator parameter in the originate function (line 67).
But when the new channel gets originated and bridged to my stasis application, how do I retrieve the originator id (line 45/46)??

Thanks…

That information is not for use by the ARI application. It internally links the caller and callee together, so such things as CDRs and CEL reflect the association (that is they show that the caller called the callee). If you wanted to record this you would need to have state in your application or store it as a channel variable.

Thanks, I was going crazy over this…