[Freeswitch-dev] switch_channel_add_state_handler not work under ubuntu
hey i have release 1.2.1 code base, the state handler is called in Windows, but not in Ubuntu 12.04 here is the code: static switch_state_handler_table_t channel_event_handlers = {
/*.on_init */ NULL, /*.on_routing */ NULL, /*.on_execute */ NULL, /*.on_hangup */ channel_on_hangup, /*.on_exchange_media */ NULL, /*.on_soft_execute */ NULL, /*.on_consume_media */ NULL, /*.on_hibernate */ NULL, /*.on_reset */ NULL, /*.on_park */ NULL, /*.on_reporting */ NULL, /*.on_destroy */ NULL }; ...... if (switch_channel_add_state_handler(hook_channel, &channel_event_handlers) < 0) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "state handler added failed\n"); } .......
Anyone knows why?
Hi, I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ? BR openser
Any Idea ? 在 2012-09-18 00:25:08,openser <openser@yeah.net> 写道: Hi, I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ? BR openser
If you use H264 checkout the video-media-bug branch you can use uuid_record to do .fsv and .mp4. But unlike audio, you cannot mix videos, so you could use uuid_record on both leg. Or maybe we could record to multi-video track? Let me know if it works for you, I hard coded most params. -- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, September 19, 2012 at 9:45 AM, openser wrote:
Any Idea ?
在 2012-09-18 00:25:08,openser <openser@yeah.net (mailto:openser@yeah.net)> 写道:
Hi,
I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ?
BR openser
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
thanks, are your sure i can use uuid_record to record call-leg to MP4 format ? At 2012-09-19 22:39:48,"Seven Du" <dujinfang@gmail.com> wrote: If you use H264 checkout the video-media-bug branch you can use uuid_record to do .fsv and .mp4. But unlike audio, you cannot mix videos, so you could use uuid_record on both leg. Or maybe we could record to multi-video track? Let me know if it works for you, I hard coded most params. -- Seven Du Sent with Sparrow On Wednesday, September 19, 2012 at 9:45 AM, openser wrote: Any Idea ? 在 2012-09-18 00:25:08,openser <openser@yeah.net> 写道: Hi, I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ? BR openser _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
well. It's possible if you load mod_mp4v2. read the commit logs you should get more info. -- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, September 20, 2012 at 10:54 PM, openser wrote:
thanks, are your sure i can use uuid_record to record call-leg to MP4 format ?
At 2012-09-19 22:39:48,"Seven Du" <dujinfang@gmail.com (mailto:dujinfang@gmail.com)> wrote:
If you use H264 checkout the video-media-bug branch you can use uuid_record to do .fsv and .mp4. But unlike audio, you cannot mix videos, so you could use uuid_record on both leg. Or maybe we could record to multi-video track?
Let me know if it works for you, I hard coded most params.
-- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Wednesday, September 19, 2012 at 9:45 AM, openser wrote:
Any Idea ?
在 2012-09-18 00:25:08,openser <openser@yeah.net (mailto:openser@yeah.net)> 写道:
Hi,
I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ?
BR openser
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
thanks, but can mod_mp4v2 record a two way bridged call to two files just like record_session record a bridged call? At 2012-09-20 23:18:18,"Seven Du" <dujinfang@gmail.com> wrote: well. It's possible if you load mod_mp4v2. read the commit logs you should get more info. -- Seven Du Sent with Sparrow On Thursday, September 20, 2012 at 10:54 PM, openser wrote: thanks, are your sure i can use uuid_record to record call-leg to MP4 format ? At 2012-09-19 22:39:48,"Seven Du" <dujinfang@gmail.com> wrote: If you use H264 checkout the video-media-bug branch you can use uuid_record to do .fsv and .mp4. But unlike audio, you cannot mix videos, so you could use uuid_record on both leg. Or maybe we could record to multi-video track? Let me know if it works for you, I hard coded most params. -- Seven Du Sent with Sparrow On Wednesday, September 19, 2012 at 9:45 AM, openser wrote: Any Idea ? 在 2012-09-18 00:25:08,openser <openser@yeah.net> 写道: Hi, I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ? BR openser _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Not yet. At the time it only record to one file with one channel's video and a mixed audio. but you should can use uuid_record on the b leg. Not tested. -- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Saturday, September 22, 2012 at 9:06 PM, openser wrote:
thanks, but can mod_mp4v2 record a two way bridged call to two files just like record_session record a bridged call?
At 2012-09-20 23:18:18,"Seven Du" <dujinfang@gmail.com (mailto:dujinfang@gmail.com)> wrote:
well. It's possible if you load mod_mp4v2. read the commit logs you should get more info.
-- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Thursday, September 20, 2012 at 10:54 PM, openser wrote:
thanks, are your sure i can use uuid_record to record call-leg to MP4 format ?
At 2012-09-19 22:39:48,"Seven Du" <dujinfang@gmail.com (mailto:dujinfang@gmail.com)> wrote:
If you use H264 checkout the video-media-bug branch you can use uuid_record to do .fsv and .mp4. But unlike audio, you cannot mix videos, so you could use uuid_record on both leg. Or maybe we could record to multi-video track?
Let me know if it works for you, I hard coded most params.
-- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Wednesday, September 19, 2012 at 9:45 AM, openser wrote:
Any Idea ?
在 2012-09-18 00:25:08,openser <openser@yeah.net (mailto:openser@yeah.net)> 写道:
Hi,
I want to record a two way video call to file, is this possible ? can i implement this by modify record_session code ?
BR openser
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (3)
-
openser
-
Seven Du
-
Xijing Dai