<div dir="ltr"><div dir="ltr">You could do the old school method and create and move a .call file from your dialplan.<br><br>exten => writefile,1,NoOP()<br> same => n,Set(CALLFILE=/var/spool/asterisk/tmp/${FileName}-${ARG1}.call)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=Channel: SIP/bob)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=WaitTime: 20)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=Context: alice)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=Extension: s)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=Priority: 1)<br> same => n,Set(FILE(${CALLFILE},,,al,u)=SetVar: John=AWESOME<br> same => n,Set(FILE(${CALLFILE},,,al,u)=Archive: Yes); we want to keep the call file for debugging<br> same => n,system(mv ${CALLFILE} /var/spool/asterisk/outgoing/); Move the file into the spool<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 22, 2020 at 4:47 AM Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday 22 September 2020 at 13:27:27, Joshua C. Colp wrote:<br>
<br>
> On Tue, Sep 22, 2020 at 7:37 AM Antony Stone wrote:<br>
> > Hi.<br>
> > <br>
> > (Asterisk 16.2.1)<br>
> > <br>
> > I'm using AMI Originate to initiate calls, and I'm passing some<br>
> > additional data in to the dialplan context using the Variable:<br>
> > parameter. Works fine.<br>
> > <br>
> > <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerAction_Orig" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerAction_Orig</a><br>
> > inate<br>
> > <br>
> > Now I need to do the same thing but from another context in my dialplan,<br>
> > so I was expecting to use the Originate() dialplan command, but how do I<br>
> > pass the additional data? I don't see any Variable: equivalent parameter.<br>
> > <br>
> > <br>
> > <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_Origin" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_Origin</a><br>
> > ate<br>
> <br>
> The Originate dialplan application itself has no inherent built in ability<br>
> to set variables.<br>
<br>
Oh :( Not as direct an equivalent as I'd expected, then.<br>
<br>
Any suggestions for how to get round this - my first idea is to get something <br>
into the Asterisk internal DB in the context which does the Originate(), and <br>
then read the data out in the called context.<br>
<br>
Maybe I need to set some inherited variables and then use Dial() instead of <br>
Originate...<br>
<br>
Ideas welcome :)<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
It is also possible that putting the birds in a laboratory setting <br>
inadvertently renders them relatively incompetent.<br>
<br>
- Daniel C Dennett<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div></div>