Hello, Please let me know if this is feasible / possible. I need to make outgoing calls based on a scheduler using FS (SIP). I am planning to write a windows service that runs at particular time interval (say 10 minutes), checks who needs to be called, fires commands to originate these calls. I have a single FS command line running (where FS console is running). I am planning to fire FS commands such as: ----------------------
managed apidemo a1 123 API CALL [managed(apidemo a1 123)] output: ApiDemo executed with args 'a1 123' and event type API.
managedrun apidemo a1 123 API CALL [managedrun(apidemo a1 123)] output: +OK 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ApiDemo on a background thread #(3), with args 'a1 123'. 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ExecuteBackground in apidemo completed.
So I will pass some arguments to the mod_managed script and it will fire an API to originate call. My main question is: How can I communicate windows service to fire FreeSwitch commands? Thank you for any help or guidance.
IMHO, the best way to do this is using the ESL. The wiki has some examples on how this can be done. Regards HASSAN On 2010-08-31, Malay Thakershi <mthakershi@gmail.com> wrote:
Hello,
Please let me know if this is feasible / possible. I need to make outgoing calls based on a scheduler using FS (SIP).
I am planning to write a windows service that runs at particular time interval (say 10 minutes), checks who needs to be called, fires commands to originate these calls.
I have a single FS command line running (where FS console is running). I am planning to fire FS commands such as: ----------------------
managed apidemo a1 123 API CALL [managed(apidemo a1 123)] output: ApiDemo executed with args 'a1 123' and event type API.
managedrun apidemo a1 123 API CALL [managedrun(apidemo a1 123)] output: +OK 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ApiDemo on a background thread #(3), with args 'a1 123'. 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ExecuteBackground in apidemo completed.
So I will pass some arguments to the mod_managed script and it will fire an API to originate call.
My main question is: How can I communicate windows service to fire FreeSwitch commands?
Thank you for any help or guidance.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from my mobile device
I am using Windows server. Can this be installed on Windows server 2008? On Tue, Aug 31, 2010 at 12:26 PM, Nyamul Hassan <mnhassan@usa.net> wrote:
IMHO, the best way to do this is using the ESL. The wiki has some examples on how this can be done.
Regards HASSAN
On 2010-08-31, Malay Thakershi <mthakershi@gmail.com> wrote:
Hello,
Please let me know if this is feasible / possible. I need to make outgoing calls based on a scheduler using FS (SIP).
I am planning to write a windows service that runs at particular time interval (say 10 minutes), checks who needs to be called, fires commands to originate these calls.
I have a single FS command line running (where FS console is running). I am planning to fire FS commands such as: ----------------------
managed apidemo a1 123 API CALL [managed(apidemo a1 123)] output: ApiDemo executed with args 'a1 123' and event type API.
>managedrun apidemo a1 123 API CALL [managedrun(apidemo a1 123)] output: +OK 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ApiDemo on a background thread #(3), with args 'a1 123'. 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ExecuteBackground in apidemo completed. ----------------------
So I will pass some arguments to the mod_managed script and it will fire an API to originate call.
My main question is: How can I communicate windows service to fire FreeSwitch commands?
Thank you for any help or guidance.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from my mobile device
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
There is a .net implementation for the FreeSWITCH esl in the contrib git repository. You can use that in a .Net windows service if you want. Yitzchok On Tue, Aug 31, 2010 at 1:39 PM, Malay Thakershi <mthakershi@gmail.com>wrote:
I am using Windows server. Can this be installed on Windows server 2008?
On Tue, Aug 31, 2010 at 12:26 PM, Nyamul Hassan <mnhassan@usa.net> wrote:
IMHO, the best way to do this is using the ESL. The wiki has some examples on how this can be done.
Regards HASSAN
On 2010-08-31, Malay Thakershi <mthakershi@gmail.com> wrote:
Hello,
Please let me know if this is feasible / possible. I need to make outgoing calls based on a scheduler using FS (SIP).
I am planning to write a windows service that runs at particular time interval (say 10 minutes), checks who needs to be called, fires commands to originate these calls.
I have a single FS command line running (where FS console is running). I am planning to fire FS commands such as: ----------------------
managed apidemo a1 123 API CALL [managed(apidemo a1 123)] output: ApiDemo executed with args 'a1 123' and event type API.
managedrun apidemo a1 123 API CALL [managedrun(apidemo a1 123)] output: +OK 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ApiDemo on a background thread #(3), with args 'a1 123'. 2008-10-08 17:44:25 [DEBUG] switch_cpp.cpp:1059 console_log() ExecuteBackground in apidemo completed.
So I will pass some arguments to the mod_managed script and it will fire an API to originate call.
My main question is: How can I communicate windows service to fire FreeSwitch commands?
Thank you for any help or guidance.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sent from my mobile device
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
you can also use the esl wrapper in /libs/esl/managed which may prove easier to support -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-managed-API-interface-ques... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hi, yes, you can install on Windows Server 2008. The best way is using ESL (managed ESL). You have to make sure you have permissions on the windows firewall to connect to a socket with FS. Diego Toro http://lacarretade.blogspot.com/ --- On Tue, 8/31/10, Jeff Lenk <jeff@jefflenk.com> wrote: From: Jeff Lenk <jeff@jefflenk.com> Subject: Re: [Freeswitch-users] mod_managed API interface question To: freeswitch-users@lists.freeswitch.org Date: Tuesday, August 31, 2010, 2:37 PM you can also use the esl wrapper in /libs/esl/managed which may prove easier to support -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-managed-API-interface-ques... Sent from the freeswitch-users mailing list archive at Nabble.com. _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you for information. I have two questions: 1. Can I use this managed ESL to interact with 1.0.4 version? Or there is version mismatch? 2. I see ManagedESLTest C# code in the samples. What is difference between bgapi function and execute? Say I place a call using Originate, is there a way for me to know it hasn't been answered after say 3 minutes so I can hangup? I think there is some event bridging (to FS and from FS) but I am not sure how it happens. Please help. Thank you all. On Wed, Sep 1, 2010 at 8:14 AM, Diego Toro <dftoro@yahoo.com> wrote:
Hi,
yes, you can install on Windows Server 2008. The best way is using ESL (managed ESL). You have to make sure you have permissions on the windows firewall to connect to a socket with FS.
Diego Toro http://lacarretade.blogspot.com/
--- On *Tue, 8/31/10, Jeff Lenk <jeff@jefflenk.com>* wrote:
From: Jeff Lenk <jeff@jefflenk.com> Subject: Re: [Freeswitch-users] mod_managed API interface question To: freeswitch-users@lists.freeswitch.org Date: Tuesday, August 31, 2010, 2:37 PM
you can also use the esl wrapper in /libs/esl/managed which may prove easier to support -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-managed-API-interface-ques... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Diego Toro
-
Jeff Lenk
-
Malay Thakershi
-
Nyamul Hassan
-
Yitzchok