Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Fwd: hook to event or startup script which will hook to events?


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





PostPosted: Sun Feb 14, 2016 2:36 am    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

On 14.02.2016 02:38, Abdul Hakeem wrote:
Quote:
Hello Mimiko,
Did you find any resolution to the issue ?
Cheers,
AH


No, no answers to my questions.

I use start-up script in lua.conf and bind to event in order to avoid
segfault.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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
Back to top
idokan at gmail.com
Guest





PostPosted: Sun Feb 14, 2016 9:18 am    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

I'ved created a Perl daemon for capturing specific events.
You can filter to do so.
Ido On Feb 14, 2016 9:37 AM, "Mimiko" <vbvbrj@gmail.com (vbvbrj@gmail.com)> wrote:
Quote:
On 14.02.2016 02:38, Abdul Hakeem wrote:
Quote:
Hello Mimiko,
Did you find any resolution to the issue ?
Cheers,
AH


No, no answers to my questions.

I use start-up script in lua.conf and bind to event in order to avoid
segfault.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@freeswitch.org)
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org
Back to top
krice at freeswitch.org
Guest





PostPosted: Sun Feb 14, 2016 10:46 am    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

Is there a ticket open on this segfault you are avoiding and how to
reproduce it?

-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mimiko
Sent: Sunday, February 14, 2016 1:35 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Fwd: hook to event or startup script which
will hook to events?

On 14.02.2016 02:38, Abdul Hakeem wrote:
Quote:
Hello Mimiko,
Did you find any resolution to the issue ?
Cheers,
AH


No, no answers to my questions.

I use start-up script in lua.conf and bind to event in order to avoid
segfault.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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
Back to top
vbvbrj at gmail.com
Guest





PostPosted: Sun Feb 14, 2016 12:38 pm    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

On 14.02.2016 17:44, Ken Rice wrote:
Quote:
Is there a ticket open on this segfault you are avoiding and how to
reproduce it?

No, I didn't open any ticket, because my FS version is 1.3.13b
cad607d72e compiled at 2013.01.18, so the bug may be fixed or may be
not. I can't update right now the version.

My main question is what is best to capture event?
1) Using <hook event="RECORD_STOP" script="script.lua"/> in lua.conf.
2) or using <param name="startup-script" value="script.lua"/> in
lua.conf and hook to event like for e in (function() return con:pop(1)
end) do....

Comparing performance and stability.

Using 1st method has the advantage that I can change script without
restarting FS. But at my version running it for several hours FS stops
with segfault.

If using 1st method to capture events is better, then I'll update FS and
see if segfault persists or not.
If 2nd method is better - then there is no need for me to update FS
right now.

To reproduce see my first message on this.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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
Back to top
vbvbrj at gmail.com
Guest





PostPosted: Sun Feb 14, 2016 12:40 pm    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

On 14.02.2016 16:16, ik wrote:
Quote:
I'ved created a Perl daemon for capturing specific events.

You can filter to do so.


Do you capture all events in your perl script?

Do you need to restart perl script to capture new events after modifying
the script? If think you do and while perl script is restarting events
may be missed.

I prefer to use lua, because it is integrated in FS code and is much faster.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.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
Back to top
idokan at gmail.com
Guest





PostPosted: Mon Feb 15, 2016 2:43 am    Post subject: [Freeswitch-users] Fwd: hook to event or startup script whic Reply with quote

On my case, I listen only for specific events, so I use the filter api call, but without it, you will get all events. On Feb 14, 2016 7:41 PM, "Mimiko" <vbvbrj@gmail.com (vbvbrj@gmail.com)> wrote:
Quote:
On 14.02.2016 16:16, ik wrote:
Quote:
I'ved created a Perl daemon for capturing specific events.

You can filter to do so.


Do you capture all events in your perl script?

Do you need to restart perl script to capture new events after modifying
the script? If think you do and while perl script is restarting events
may be missed.

I prefer to use lua, because it is integrated in FS code and is much faster.

--
Mimiko desu.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@freeswitch.org)
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org
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