[Freeswitch-users] Originating calls via ESL
Tihomir Culjaga
tculjaga at gmail.com
Tue Aug 14 19:38:05 UTC 2018
** D E V ** tculjaga at bladeranger
/usr/local/nexios/classes/com/nex/server/core
# telnet localhost 8021
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Content-Type: auth/request
auth ClueCon
Content-Type: command/reply
Reply-Text: +OK accepted
events plain all
Content-Type: command/reply
Reply-Text: +OK event listener enabled plain
api originate user/1001 &park()
Content-Type: api/response
Content-Length: 25
-ERR USER_NOT_REGISTERED
Content-Length: 65
Content-Type: text/event-plain
as u can see it works without any problem.
just try doing it manually ...
telnet localhost 8021
after that you login, subscribe events and hit your api command.
bear in mind you will most likely need to use bgapi instead of api.
Tihomir.
On 14 August 2018 at 18:18, Davide Colombo via FreeSWITCH-users <
freeswitch-users at lists.freeswitch.org> wrote:
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
>
>
> ---------- Forwarded message ----------
> From: Davide Colombo <dcolombo at voismart.it>
> To: freeswitch-users <freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Tue, 14 Aug 2018 01:25:18 +0200 (CEST)
> Subject: Re: [Freeswitch-users] Originating calls via ESL
> According to originate command docs (https://freeswitch.org/
> confluence/display/FREESWITCH/mod_commands#mod_commands-originate),
> call_url is an endpoint like sofia.
> You could try something like this:
>
> originate sofia/your_internal_profile/1001%your_domain &park()
>
> ----- Messaggio originale -----
> Da: "Francesco Facco de Lagarda" <francesco at delagarda.com>
> A: "freeswitch-users" <freeswitch-users at lists.freeswitch.org>
> Inviato: Venerdì, 10 agosto 2018 9:07:21
> Oggetto: [Freeswitch-users] Originating calls via ESL
>
> I'm trying to send cmds to 8021 port Esl via php
>
> api sofia status
> api show registrations
> And lots of other
> WOrk FINE!
>
> But I tried
> api originate user/1001 &park()
>
> and it says:
> USAGE: <call url> <exten>|&<application_name>(<app_args>) [<dialplan>]
> [<context>] [<cid_name>] [<cid_num>] [<timeout_sec>]
>
> what AM i doing wrong?
> Francesco Facco de Lagarda
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180814/2e716bd7/attachment.html>
More information about the FreeSWITCH-users
mailing list