<div dir="ltr"><div>** D E V ** tculjaga@bladeranger /usr/local/nexios/classes/com/nex/server/core </div><div> # telnet localhost 8021</div><div>Trying ::1...</div><div>telnet: connect to address ::1: Connection refused</div><div>Trying 127.0.0.1...</div><div>Connected to localhost.</div><div>Escape character is '^]'.</div><div>Content-Type: auth/request</div><div><br></div><div>auth ClueCon</div><div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK accepted</div><div><br></div><div>events plain all</div><div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK event listener enabled plain</div><div><br></div><div>api originate user/1001 &park() </div><div><br></div><div>Content-Type: api/response</div><div>Content-Length: 25</div><div><br></div><div>-ERR USER_NOT_REGISTERED</div><div>Content-Length: 65</div><div>Content-Type: text/event-plain</div><div><br></div><div><br></div><div><br></div><div><br></div><div>as u can see it works without any problem.</div><div><br></div><div><br></div><div>just try doing it manually ...</div><div><br></div><div>telnet localhost 8021</div><div><br></div><div>after that you login, subscribe events and hit your api command.</div><div><br></div><div><br></div><div>bear in mind you will most likely need to use bgapi instead of api.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Tihomir.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 August 2018 at 18:18, Davide Colombo via FreeSWITCH-users <span dir="ltr"><<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></div></div><br><br>---------- Forwarded message ----------<br>From: Davide Colombo <<a href="mailto:dcolombo@voismart.it">dcolombo@voismart.it</a>><br>To: freeswitch-users <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>Cc: <br>Bcc: <br>Date: Tue, 14 Aug 2018 01:25:18 +0200 (CEST)<br>Subject: Re: [Freeswitch-users] Originating calls via ESL<br>According to originate command docs (<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_commands#mod_commands-<wbr>originate</a>), call_url is an endpoint like sofia.<br>
You could try something like this:<br>
<br>
originate sofia/your_internal_profile/<wbr>1001%your_domain &park()<br>
<br>
----- Messaggio originale -----<br>
Da: "Francesco Facco de Lagarda" <<a href="mailto:francesco@delagarda.com">francesco@delagarda.com</a>><br>
A: "freeswitch-users" <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.<wbr>freeswitch.org</a>><br>
Inviato: Venerdì, 10 agosto 2018 9:07:21<br>
Oggetto: [Freeswitch-users] Originating calls via ESL<br>
<br>
I'm trying to send cmds to 8021 port Esl via php<br>
<br>
api sofia status <br>
api show registrations<br>
And lots of other<br>
WOrk FINE!<br>
<br>
But I tried <br>
api originate user/1001 &park()<br>
<br>
and it says:<br>
USAGE: <call url> <exten>|&<application_name>(<<wbr>app_args>) [<dialplan>] [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]<br>
<br>
what AM i doing wrong?<br>
Francesco Facco de Lagarda<br>
<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
<br></blockquote></div><br></div>