[Freeswitch-users] session is nil
Giovanni Maruzzelli
gmaruzz at gmail.com
Sat Aug 24 07:30:28 UTC 2019
Sajad,
just to be explicit:
in FreeSWITCH, when a person say "API" it means "sending a command from the
freeswitch command line" (and you *can* execute lua from freeswitch command
line)
maybe, you are executing a LUA script from dialplan or configuration, so
you are not using the freeswitch API
in that case, you are executing a lua script from dialplan. That lua script
is written to execute the lua API to interact with freeswitch
in that case, for clarity, in future, you want to write: "I am executing a
lua script"
If a lua script is started from dialplan, it always has a session object,
until the call is hangup
the other case: if a lua script is started from the command line (eg, from
the freeswitch API) it never has a session object, you must create it
getting the uuid of the call from the freeswitch API (or because you know
in advance the call uuid because you originated that call giving the uuid
as parameter).
On Fri, Aug 23, 2019 at 9:42 PM Sajad Tahernejad <sajad at tahernejad.com>
wrote:
> Thanks.
> Please explain more,
> I want transfered a session if 10th or more in queue with
> session:transfer("3000", "XML", "default");
> Can you help more ?
> I'm using lua api from
> https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> 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
--
Sincerely,
Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190824/3a551a21/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list