[Freeswitch-users] Run script that calls exts and plays recording
Bipin Patel
bipin at xbipin.com
Sat Jun 1 15:11:43 UTC 2019
Hi,
I was reading all the docs etc and being a beginner to lua can you guide
with a simple statement on how to create a new session, I tried using
freeswitch.api() but then I can't get it to run due to no session. The only
way I managed to get it to work was create a originate command using fs_cli
and run it using os.execute
On June 1, 2019 5:09:14 PM Vallimamod Abdullah <vma at vallimamod.org> wrote:
> Hi,
>
> There is no b-leg when the call is answered by freeswitch.
> You need to create new sessions for your subsequent calls in your lua script.
>
>
> Best Regards,
> --
> Vallimamod Abdullah
> SIP Solutions
> vma at sip.solutions
> linkedin.com/in/vallimamod
> .
>
>
>> On 1 Jun 2019, at 13:54, Bipin Patel via FreeSWITCH-users
>> <freeswitch-users at lists.freeswitch.org> wrote:
>>
>>
>> From: Bipin Patel <bipin at xbipin.com <mailto:bipin at xbipin.com>>
>> Subject: Re: [Freeswitch-users] Run script that calls exts and plays recording
>> Date: 1 June 2019 at 12:34:19 CEST
>> To: <freeswitch-users at lists.freeswitch.org>
>>
>>
>> Hi,
>>
>> I have a requirement where one phone calls the number 55 which fs answers
>> and asks user to record his message and hangup when complete which works
>> fine but after he hangs up I want to run a lua script which can take this
>> recorded message and call multiple phones and play it to them but this part
>> doesn't work even when using api_hangup_hook because fs replies not session
>> available.
>>
>> Is there any way to keep the b leg which is fs itself answering active and
>> run the script? It's fs answering and recording the message so not able to
>> use other commands related to bridge like continue on fail or hang up after
>> bridge or transfer etc.
>>
>> Any pointers will be helpful
>>
>>
>>
>> Regards,
>>
>> Bipin
>>
>> On June 1, 2019 1:51:09 PM Bipin Patel via FreeSWITCH-users
>> <freeswitch-users at lists.freeswitch.org
>> <mailto:freeswitch-users at lists.freeswitch.org>> wrote:
>>
>>> _________________________________________________________________________
>>>
>>> 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
>>
>>
>>
>>
>>
>>
>>
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> <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
>> <https://signalwire.community/>
>>
>> Professional FreeSWITCH Services
>> sales at freeswitch.com <mailto:sales at freeswitch.com>
>> https://freeswitch.com <https://freeswitch.com/>
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss <https://freeswitch.com/oss>
>> https://freeswitch.org/confluence <https://freeswitch.org/confluence>
>> https://cluecon.com <https://cluecon.com/>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> <mailto:FreeSWITCH-users at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> https://freeswitch.com <https://freeswitch.com/>
>
>
>
> ----------
> _________________________________________________________________________
>
> 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
More information about the FreeSWITCH-users
mailing list