[Freeswitch-users] launch an external program in dialplan

Brian West brian at freeswitch.com
Tue Aug 9 20:47:21 UTC 2022


you can also use the 'system' app.

On Tue, Aug 9, 2022 at 11:08 AM Avi Marcus <avi at avimarcus.net> wrote:

> You can make a curl call or a system call directly in the dial plan.
>
> You can even get the results in a channel variable for further processing.
>
> On Tue, Aug 9, 2022, 3:30 PM Gilles SAUVAIRE <gilles at sauvaire.com> wrote:
>
>> Hi there,
>>
>>
>>
>> I need inside a dialplan, to launch an external program, and to take the
>> return of this program to use it in the dialplan.
>>
>>
>>
>> I think a LUA script can do it?
>>
>>
>>
>> If anyone has an example script, I'm interested.
>>
>> Or is another technique better?
>>
>> Launching an external program at each call can be very
>> resource-intensive, maybe make a request on a specific web service port, or
>> something else?
>>
>>
>>
>> the idea is to add the user's name in the from.
>>
>> (but this name changes depending on the external context, it must be
>> calculated, I cannot make a simple database query)
>>
>>
>>
>> someone has already done it I guess I'm not the first to have this need...
>>
>>
>>
>> Thank you all...
>>
>>
>>
>> Gilles
>>
>>
>>
>>
>>
>>
>> _________________________________________________________________________
>>
>> 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
> 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



-- 

Brian West | Co-founder and Developer

Need Commercial support? email sales at freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>

Email: brian at freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>

[image: https://www.facebook.com/signalwireinc?src=email]
<https://www.facebook.com/freeswitch> [image:
https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220809/cfb46430/attachment.html>


More information about the FreeSWITCH-users mailing list