Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] launch an external program in dialplan


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
gregor at infomedia.si
Guest





PostPosted: Tue Aug 09, 2022 8:01 am    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

I think Httapi would be useful in your scenario. Especially if you need to use the response from an external URL and use it in dialplan.


On Tue, 9 Aug 2022 at 14:31, Gilles SAUVAIRE <gilles@sauvaire.com (gilles@sauvaire.com)> wrote:

Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--
Gregor Nanger 
CTO
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
www.infomedia.si
Back to top
gilles at sauvaire.com
Guest





PostPosted: Tue Aug 09, 2022 8:24 am    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

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
Back to top
avi at avimarcus.net
Guest





PostPosted: Tue Aug 09, 2022 11:06 am    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

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@sauvaire.com (gilles@sauvaire.com)> wrote:

Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
brian at freeswitch.com
Guest





PostPosted: Tue Aug 09, 2022 4:13 pm    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

you can also use the 'system' app.

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

Quote:
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@sauvaire.com (gilles@sauvaire.com)> wrote:

Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
gilles at sauvaire.com
Guest





PostPosted: Wed Aug 10, 2022 1:01 am    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

Thanks.

You ave a exemple ?
With get the results in a channel variable for further processing. ?

Thanks


De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> De la part de Avi Marcus
Envoyé : mardi 9 août 2022 17:34
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Objet : Re: [Freeswitch-users] launch an external program in dialplan


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@sauvaire.com (gilles@sauvaire.com)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
krice at freeswitch.org
Guest





PostPosted: Wed Aug 10, 2022 2:13 am    Post subject: [Freeswitch-users] launch an external program in dialplan Reply with quote

You could always just write your own dialplan module… theres several examples in the code base of the using that C api

From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Gilles SAUVAIRE
Sent: Wednesday, August 10, 2022 12:49 AM
To: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] launch an external program in dialplan
Importance: High



Thanks.

You ave a exemple ?
With get the results in a channel variable for further processing. ?

Thanks


De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> De la part de Avi Marcus
Envoyé : mardi 9 août 2022 17:34
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Objet : Re: [Freeswitch-users] launch an external program in dialplan


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@sauvaire.com (gilles@sauvaire.com)> wrote:
Quote:

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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services