From debasish.chandra at telemune.net Mon Oct 1 13:22:10 2012 From: debasish.chandra at telemune.net (Debasish Chandra) Date: Mon, 1 Oct 2012 14:52:10 +0530 Subject: [Freeswitch-dev] Handling multipart/mixed SDP in INVITE Message-ID: Hi, I am getting following error (415 Unsupported Media Type) while my FS receiving INVITE with multipart bodies. However it seems sofia is responding with 415. Does sofia handle multipart bodies? I am using latest freeswitch build. I am attaching the log below. ------------------------------------------------------------------------------------------------------------------------------------------------------------------- tport_wakeup_pri(0x7ff2c80041f0): events IN tport_recv_event(0x7ff2c80041f0) tport_recv_iovec(0x7ff2c80041f0) msg 0x7ff2c8005f30 from (udp/ 192.168.1.10:5060) has 1015 bytes, veclen = 1 tport_deliver(0x7ff2c80041f0): msg 0x7ff2c8005f30 (1015 bytes) from udp/ 192.168.1.10:5060/sip next=(nil) nta: received INVITE sip:222222 at 192.168.1.10:5060 SIP/2.0 (CSeq 1) nta: canonizing sip:222222 at 192.168.1.10:5060 with contact nta: INVITE (1) going to a default leg nta: timer set to 200 ms nua: nua_stack_process_request: entering nua: nua_invite_server_respond: entering tport_tsend(0x7ff2c80041f0) tpn = UDP/192.168.1.10:32896 tport_resolve addrinfo = 192.168.1.10:32896 tport_by_addrinfo(0x7ff2c80041f0): not found by name UDP/192.168.1.10:32896 tport_vsend(0x7ff2c80041f0): 711 bytes of 711 to udp/192.168.1.10:32896 tport_vsend returned 711 nta: sent 415 Unsupported Media Type for INVITE (1) tport_wakeup_pri(0x7ff2c80041f0): events IN tport_recv_event(0x7ff2c80041f0) tport_recv_iovec(0x7ff2c80041f0) msg 0x7ff2c8009800 from (udp/ 192.168.1.10:5060) has 386 bytes, veclen = 1 tport_deliver(0x7ff2c80041f0): msg 0x7ff2c8009800 (386 bytes) from udp/ 192.168.1.10:5060/sip next=(nil) nta: received ACK sip:222222 at 192.168.1.10:5060 SIP/2.0 (CSeq 1) nta: ACK (1) is going to INVITE (1) nta: timer set next to 4801 ms nta: timer I fired, terminate 415 response incoming_reclaim_all((nil), (nil), 0x7ff2f2712b50) nta_incoming_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free nta: timer not set -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Please let me know whether it is possible to use multipart with FS. Best Regards, Debasish -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/7e49c9e3/attachment.html From rick at openfortress.nl Mon Oct 1 13:39:21 2012 From: rick at openfortress.nl (Rick van Rein) Date: Mon, 1 Oct 2012 09:39:21 +0000 Subject: [Freeswitch-dev] Possible bug in video code Message-ID: <20121001093921.GB8379@newphantom.local> Hello, I found this surprising fragment in the sofia_glue.c routine tech_pvt->adv_sdp_video_port = sdp_port; switch_channel_set_variable(tech_pvt->channel, SWITCH_LOCAL_VIDEO_IP_VARIABLE, tech_pvt->adv_sdp_audio_ip); switch_channel_set_variable_printf(tech_pvt->channel, SWITCH_LOCAL_VIDEO_PORT_VARIABLE, "%d", sdp_port); I'm almost certain that "adv_sdp_audio_ip" should be "adv_sdp_video_ip", except that it isn't there in mod_sofia.h; is this code assuming that Audio and Video come from the same source? I don't think this assumption will remain valid with the advent of IPv6 and potential LAN-mounted camera's. I am actually coding open source phone firmware that explicitly will pull in networked media devices by passing on their direct IPv6 addresses. This could be as simple as a webcam on a host. If you don't mind I'll leave it to the regular developers to judge and fix this in the git repository. I would like to learn the outcome. Cheers, -Rick From brian at freeswitch.org Mon Oct 1 19:21:53 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 1 Oct 2012 10:21:53 -0500 Subject: [Freeswitch-dev] Possible bug in video code In-Reply-To: <20121001093921.GB8379@newphantom.local> References: <20121001093921.GB8379@newphantom.local> Message-ID: http://jira.freeswitch.org Thanks, On Oct 1, 2012, at 4:39 AM, Rick van Rein wrote: > Hello, > > I found this surprising fragment in the sofia_glue.c routine > > tech_pvt->adv_sdp_video_port = sdp_port; > switch_channel_set_variable(tech_pvt->channel, SWITCH_LOCAL_VIDEO_IP_VARIABLE, tech_pvt->adv_sdp_audio_ip); > switch_channel_set_variable_printf(tech_pvt->channel, SWITCH_LOCAL_VIDEO_PORT_VARIABLE, "%d", sdp_port); > > I'm almost certain that "adv_sdp_audio_ip" should be "adv_sdp_video_ip", > except that it isn't there in mod_sofia.h; is this code assuming that Audio > and Video come from the same source? I don't think this assumption will > remain valid with the advent of IPv6 and potential LAN-mounted camera's. > > I am actually coding open source phone firmware that explicitly will pull > in networked media devices by passing on their direct IPv6 addresses. This > could be as simple as a webcam on a host. > > If you don't mind I'll leave it to the regular developers to judge and > fix this in the git repository. I would like to learn the outcome. > > > Cheers, > -Rick > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -- Brian West brian at freeswitch.org FreeSWITCH Solutions, LLC PO BOX PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH_Wire T: +1.213.286.0410 | F: +1.213.286.0401 | M: +1.918.424.WEST iNUM: +883 5100 1286 0410 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/793caddc/attachment.html From niels.thomsen at fentechnology.co.uk Mon Oct 1 20:07:59 2012 From: niels.thomsen at fentechnology.co.uk (Niels Thomsen) Date: Mon, 1 Oct 2012 17:07:59 +0100 Subject: [Freeswitch-dev] Unreachable code in mod_spidermonkey.c (event_chat_execute) Message-ID: There's a bit of unreachable code in mod_spidermonkey which means that the event_chat_execute function becomes a no-op. This may be intentional, of course, but it doesn't look like it is... static JSBool event_chat_execute(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval) { struct event_obj *eo = JS_GetPrivate(cx, obj); if (eo) { if (argc > 0) { char *app = JS_GetStringBytes(JS_ValueToString(cx, argv[0])); char *arg = NULL; if (argc > 1) { arg = JS_GetStringBytes(JS_ValueToString(cx, argv[1])); } goto end; //-- this code is never executed switch_core_execute_chat_app(eo->event, app, arg); *rval = BOOLEAN_TO_JSVAL(JS_TRUE); return JS_TRUE; } } end: *rval = BOOLEAN_TO_JSVAL(JS_FALSE); return JS_FALSE; } - Niels -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/b5c2b18a/attachment-0001.html From krice at freeswitch.org Mon Oct 1 20:39:29 2012 From: krice at freeswitch.org (Ken Rice) Date: Mon, 01 Oct 2012 11:39:29 -0500 Subject: [Freeswitch-dev] Unreachable code in mod_spidermonkey.c (event_chat_execute) In-Reply-To: Message-ID: Jira Please On 10/1/12 11:07 AM, "Niels Thomsen" wrote: > There?s a bit of unreachable code in mod_spidermonkey which means that the > event_chat_execute function becomes a no-op. > > This may be intentional, of course, but it doesn?t look like it is? > > static JSBool event_chat_execute(JSContext * cx, JSObject * obj, uintN argc, > jsval * argv, jsval * rval) > { > struct event_obj *eo = JS_GetPrivate(cx, obj); > > if (eo) { > if (argc > 0) { > char *app = > JS_GetStringBytes(JS_ValueToString(cx, argv[0])); > char *arg = NULL; > > if (argc > 1) { > arg = > JS_GetStringBytes(JS_ValueToString(cx, argv[1])); > } > > goto end; > > //-- this code is never executed > > switch_core_execute_chat_app(eo->event, app, arg); > > *rval = > BOOLEAN_TO_JSVAL(JS_TRUE); > return JS_TRUE; > } > } > > end: > > *rval = BOOLEAN_TO_JSVAL(JS_FALSE); > return JS_FALSE; > } > > - Niels > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/9bbb919b/attachment.html From anthony.minessale at gmail.com Mon Oct 1 21:52:27 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 1 Oct 2012 12:52:27 -0500 Subject: [Freeswitch-dev] Unreachable code in mod_spidermonkey.c (event_chat_execute) In-Reply-To: References: Message-ID: also see latest commit in HEAD, and if it works close the jira On Mon, Oct 1, 2012 at 11:39 AM, Ken Rice wrote: > Jira Please > > > > On 10/1/12 11:07 AM, "Niels Thomsen" > wrote: > > There?s a bit of unreachable code in mod_spidermonkey which means that the > event_chat_execute function becomes a no-op. > > This may be intentional, of course, but it doesn?t look like it is? > > static JSBool event_chat_execute(JSContext * cx, JSObject * obj, uintN > argc, jsval * argv, jsval * rval) > { > struct event_obj *eo = JS_GetPrivate(cx, obj); > > if (eo) { > if (argc > 0) { > char *app = > JS_GetStringBytes(JS_ValueToString(cx, argv[0])); > char *arg = NULL; > > if (argc > 1) { > arg = > JS_GetStringBytes(JS_ValueToString(cx, argv[1])); > } > > goto end; > > //-- this code is never executed > switch_core_execute_chat_app(eo->event, > app, arg); > > *rval = > BOOLEAN_TO_JSVAL(JS_TRUE); > return JS_TRUE; > } > } > > end: > > *rval = BOOLEAN_TO_JSVAL(JS_FALSE); > return JS_FALSE; > } > > - Niels > > ------------------------------ > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > > -- > Ken > *http://www.FreeSWITCH.org > http://www.ClueCon.com > http://www.OSTAG.org > *irc.freenode.net #freeswitch > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/8cf5ad4f/attachment.html From msc at freeswitch.org Tue Oct 2 00:41:02 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 1 Oct 2012 13:41:02 -0700 Subject: [Freeswitch-dev] FreeSWITCH Weekly News and Notes Message-ID: Welcome to October! I hope the weather is nice where you are. Here it's still above 100F. :) Last week was a little bit quieter than the previous few weeks. I had a chance to work on the FreeSWITCH change log and I made a listof some of the APIs, dialplan tools, and channel variables. These have all been added since 1.2.0 was initially released in early August. All of them have wiki entries - thanks to those who took the initiative to do add them. Feel free to add your knowledge and experience to the mix. Last week's conference callwas an object lesson in the challenges of getting a SIP proxy working with TLS and FreeSWITCH. This weekwe are going to change direction and look at something that has been slowly (and painfully) advancing the past few years: mobile VoIP. We will be having Daniel Pocock share with us some information about Lumicall, an open source mobile VoIP client for Android devices. There is also a service component to Lumicall and we'll be learning about that as well. Come join us to see the state of mobile VoIP. We are working on some fresh presentations for later this month. We hope to have an update on e164.org and how we can all get involved. We are also preparing a presentation on how to perform some of the data-gathering techniques that are needed for basic and advanced troubleshooting. If you have some input on these or other presentations please let me or Ken Rice know. Thanks! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121001/c7112a58/attachment-0001.html From msc at freeswitch.org Wed Oct 3 20:14:16 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 3 Oct 2012 09:14:16 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today Message-ID: Hey all! Don't forget about our conference call today: http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_03 We are going to discuss mobile VoIP and Lumicall for Android devices. If you have an Android device you might want to get Lumicall from the Play Store (it's free) so you'll be ready to try it out on today's call. Talk to you soon! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121003/d4dd68bf/attachment.html From msc at freeswitch.org Wed Oct 3 20:59:35 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 3 Oct 2012 09:59:35 -0700 Subject: [Freeswitch-dev] Maintenance Note: FreeSWITCH.org Sites Message-ID: Hello all! Just a note: this coming Friday night at 9PM CST we will be performing some maintenance on a number of sites that inhabit the freeswitch.org domain. This includes wiki.freeswitch.org and www.freeswitch.org. The maintenance probably won't last more than an hour or two. Thanks! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121003/27027d86/attachment.html From msc at freeswitch.org Tue Oct 9 01:31:10 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 8 Oct 2012 14:31:10 -0700 Subject: [Freeswitch-dev] FreeSWITCH Weekly News and Notes Message-ID: Hello all! Last week was mostly status quo - busy but not too busy. We spent time working on chapters 5 and 6 of the second edition of the FreeSWITCH book. We also had an interesting discussionabout Lumicall , an Android application that allows for mobile VoIP. This weekwe our very own Ken Rice (with an assist from yours truly) will be discussing FreeSWITCH data gathering and troubleshooting techniques. We will also be talking about how to get all of this data into a Jira in such a way that the developers will be thankful. The following week we've scheduled Chad Engler to come discuss with us his node.js/ESL interface . In other news we just wanted to let you know that our friends over at Vestechave closed a new round of funding. Check out this release for details. We are getting ready to put the finishing touches on the voice-enabled application contest. In the meantime keep working on those application ideas - you may just be the one to win some cash! We thank the Vestec folks for being so supportive. Have a great week! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121008/faeed514/attachment.html From shaheryarkh at googlemail.com Tue Oct 9 03:56:36 2012 From: shaheryarkh at googlemail.com (Muhammad Shahzad) Date: Tue, 9 Oct 2012 01:56:36 +0200 Subject: [Freeswitch-dev] FS Core ODBC Support - Specified key was too long; max key length is 1000 bytes Message-ID: Hi, I have compiled FS with core odbc support and get below error at start up, ======================================================= 2012-10-09 01:49:33.596802 [ERR] switch_odbc.c:494 ERR: [create index complete11 on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname)] [STATE: HY000 CODE 1071 ERROR: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.63-0+squeeze1]Specified key was too long; max key length is 1000 bytes ] 2012-10-09 01:49:33.596864 [ERR] switch_core_sqldb.c:526 SQL ERR [STATE: HY000 CODE 1071 ERROR: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.63-0+squeeze1]Specified key was too long; max key length is 1000 bytes ] create index complete11 on complete (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,hostname) ======================================================= I know its MySQL specific error as specified at, http://stackoverflow.com/questions/7846298/max-key-length-is-1000-bytes-in-mysql-workbench However, i was wondering if there is any work around for it? Can we ignore this error or it has to be fixed before putting FS in production? Thank you. -- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +49 176 99 83 10 85 MSN: shari_786pk at hotmail.com Email: shaheryarkh at googlemail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121009/58c676da/attachment.html From msc at freeswitch.org Wed Oct 10 19:55:49 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 10 Oct 2012 08:55:49 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today Message-ID: Hello folks, Today's conference call agenda is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_10 Ken Rice is going to be leading us in a discussion on how to gather data for troubleshooting and reporting on Jira. It should be very informative and will be good knowledge to spread amongst the community and especially for those who are new to FreeSWITCH. Talk to you soon! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121010/8413d6af/attachment.html From vinhndk50ca at gmail.com Fri Oct 12 08:39:21 2012 From: vinhndk50ca at gmail.com (=?UTF-8?B?Tmd1eeG7hW4gxJDhu6ljIFZpbmg=?=) Date: Fri, 12 Oct 2012 11:39:21 +0700 Subject: [Freeswitch-dev] Can not make outgoing call by FXO port Yeastar TDM400 Message-ID: Hi all, I am trying to make an outgoing call using FXO connected to an external telephone line. I use Linphone (account 1001) to make a call to mobile number 0973385525 But I got this log: *outgoing_call method not implemented in this span* 2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1238 Connect outbound channel FreeTDM/1:3/0973385525 2012-10-12 11:30:49.552355 [NOTICE] switch_channel.c:951 New Channel FreeTDM/1:3/0973385525 [71426de3-5e2d-44f0-ad1d-46328ce86294] 2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1247 (FreeTDM/1:3/0973385525) State Change CS_NEW -> CS_INIT 2012-10-12 11:30:49.552355 [DEBUG] switch_core_session.c:1210 Send signal FreeTDM/1:3/0973385525 [BREAK] 2012-10-12 11:30:49.552355 [DEBUG] mod_freetdm.c:1266 Attached session 71426de3-5e2d-44f0-ad1d-46328ce86294 to channel 1:3 2012-10-12 11:30:49.552355 [ERR] ftdm_io.c:2681 [s1c3][1:3] *outgoing_call method not implemented in this span!* 2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3185 [s1c3][1:3] DTMF debug is already disabled 2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3217 [s1c3][1:3] No need to disable input dump 2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:3248 [s1c3][1:3] No need to disable output dump 2012-10-12 11:30:49.552355 [DEBUG] ftdm_io.c:2990 [s1c3][1:3] channel done 2012-10-12 11:30:49.552355 [NOTICE] mod_freetdm.c:1756 Close Channel FreeTDM/1:3/0973385525 [CS_INIT] 2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:530 (FreeTDM/1:3/0973385525) Running State Change CS_DESTROY 2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540 (FreeTDM/1:3/0973385525) State DESTROY 2012-10-12 11:30:49.552355 [DEBUG] switch_core_state_machine.c:540 (FreeTDM/1:3/0973385525) State DESTROY going to sleep 2012-10-12 11:30:49.552355 [NOTICE] switch_ivr_originate.c:2591 Cannot create outgoing channel of type [freetdm] cause: [DESTINATION_OUT_OF_ORDER] 2012-10-12 11:30:49.552355 [DEBUG] switch_ivr_originate.c:3508 Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER] 2012-10-12 11:30:49.552355 [INFO] mod_dptools.c:3027 Originate Failed. Cause: DESTINATION_OUT_OF_ORDER * Could anyone help me out in getting FXO working? * ** *Here is detail setup.* Yeastar TDM400 with 2 O2 modules installed (The O2 is a module with 2 FXO ports to terminate two analog PSTN lines). I installed DAHDI driver (follow this guide http://www.yeastar.com/download/TDM_DriverInstall_dahdi.pdf) and installed freeTDM with Freeswitch ( http://wiki.freeswitch.org/wiki/FreeTDM#FreeTDM_with_FreeSWITCH) *1. Result of dahdi_hardware* pci:0000:02:01.0 wctdm+ e159:0001 Wildcard S400P Prototype *2. Result of dahdi_cfg -vv* DAHDI Tools Version - 2.6.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): MG2 Configuration ====================== Channel map: Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01) Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02) Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04) 4 channels to configure. Setting echocan for channel 1 to mg2 Setting echocan for channel 2 to mg2 Setting echocan for channel 3 to mg2 Setting echocan for channel 4 to mg2 *3. File freeswitch/conf/freetdm.conf* [span zt FXO1] fxo-channel => 1,2,3,4 *4. File freeswitch/conf/autoload_configs/freetdt.conf.xml* *5. Result of CLI command: ftdm dump 1* +OK span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: alarmed physical_status_red: 1 physical_status_yellow: 0 physical_status_rai: 0 physical_status_blue: 0 physical_status_ais: 0 physical_status_general: 0 signaling_status: DOWN type: FXS state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) span_id: 1 chan_id: 2 physical_span_id: 1 physical_chan_id: 2 physical_status: alarmed physical_status_red: 1 physical_status_yellow: 0 physical_status_rai: 0 physical_status_blue: 0 physical_status_ais: 0 physical_status_general: 0 signaling_status: DOWN type: FXS state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) span_id: 1 chan_id: 3 physical_span_id: 1 *physical_chan_id: 3* *physical_status: ok //(I have a telephone line connect to port 3)* physical_status_red: 0 physical_status_yellow: 0 physical_status_rai: 0 physical_status_blue: 0 physical_status_ais: 0 physical_status_general: 0 signaling_status: DOWN type: FXS state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) span_id: 1 chan_id: 4 physical_span_id: 1 physical_chan_id: 4 physical_status: alarmed physical_status_red: 1 physical_status_yellow: 0 physical_status_rai: 0 physical_status_blue: 0 physical_status_ais: 0 physical_status_general: 0 signaling_status: DOWN type: FXS state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) *6. A snipet from CLI command: reload mod_freetdm* 2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:860 Auto-loaded I/O module 'zt' 2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5160 created span 1 (FXO1) of type zt 2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5178 span 1 [fxo-channel]=[1,2,3,4] 2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5213 setting trunk type to 'FXO' start(KEWL), mode(CPE) 2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:40 2012-10-12 11:31:43.672340 [INFO] switch_time.c:1163 Timezone reloaded 530 definitions 2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 2 as FreeTDM device 1:2 fd:41 2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 3 as FreeTDM device 1:3 fd:42 2012-10-12 11:31:43.672340 [INFO] ftmod_zt.c:405 configuring device /dev/dahdi/channel channel 4 as FreeTDM device 1:4 fd:43 2012-10-12 11:31:43.672340 [DEBUG] ftdm_io.c:5853 Creating new group:__default 2012-10-12 11:31:43.672340 [INFO] ftdm_io.c:5416 Configured 4 channel(s) *7. Diaplan default.xml* *8. File /etc/dahdi/system.cfg* # Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER) fxsks=1 echocanceller=mg2,1 fxsks=2 echocanceller=mg2,2 fxsks=3 echocanceller=mg2,3 fxsks=4 echocanceller=mg2,4 # Global data loadzone = us defaultzone = us =========================== (I am from Vietnam)* * Thanks in advance, BR, Nguyen Duc Vinh, Mr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121012/232ca01e/attachment-0001.html From rentmycoder at gmail.com Fri Oct 12 16:23:29 2012 From: rentmycoder at gmail.com (rentmycoder rentmycoder) Date: Fri, 12 Oct 2012 14:23:29 +0200 Subject: [Freeswitch-dev] memory leak in freeswitch? Message-ID: Hi guys, I've found a memory leak, and I need your great help to find why is this happening... The situation is simple: I execute a simple bash script using lua popen function as documented in wiki on an extension from the xml dialplan... After 1000 calls the memory usage gets 60Mb and after 10.000 calls, 120mb... Freeswitch becomes very unresponsive and after a time the sip profiles stop working... If I uncomment the popen call in lua, memory leak does not occure... The lua script: function shell(c) local o, h h = assert(io.popen(c,"r")) o = h:read("*all") h:close() return o end sesson:answer(); while(session.ready()) { local testvar=shell(/opt/test.sh) session:sleep(1000); } sesson:hangup(); The test.sh script: !#/bin/bash echo 12345678901234567890123456789012345678901234567890123456789012345678901234567890 Thats all... Tha script just writes to standard output and the lua script reads it into a variable... I would like to use this mechanism to communicate with an external process... This worked well with asterisk anyway... Question#1: what is the reason of this memory usage and how to fix it? Question#2: if not possible, how to communicate with an external process preferably via TCP? I've tried lua sockets, but same memory leaking occurred... Tested on: Freeswitch 1.2.3 on debian6 32bit, x86, 4GbRAM Stress test environment: another FS instance registers as a user and start calling target extension with a random (30-60 sec) call timeout... Monitors call count and if call count falls below 100, starts new calls as needed... So there are always 100 live concurrent incoming calls on the test system... which maximum length of 1 minute. Thanks a lot... John From brian at freeswitch.org Fri Oct 12 17:54:24 2012 From: brian at freeswitch.org (Brian West) Date: Fri, 12 Oct 2012 08:54:24 -0500 Subject: [Freeswitch-dev] memory leak in freeswitch? In-Reply-To: References: Message-ID: <5415C26B-C2D2-448D-B98B-8CEA789CC300@freeswitch.org> Not sure we can say this enough. Report bugs to jira. /b On Oct 12, 2012, at 7:23 AM, rentmycoder rentmycoder wrote: > Hi guys, > > I've found a memory leak, and I need your great help to find why is > this happening... > The situation is simple: I execute a simple bash script using lua > popen function as documented in wiki on an extension from the xml > dialplan... > After 1000 calls the memory usage gets 60Mb and after 10.000 calls, 120mb... > Freeswitch becomes very unresponsive and after a time the sip profiles > stop working... > If I uncomment the popen call in lua, memory leak does not occure... > > The lua script: > > function shell(c) > local o, h > h = assert(io.popen(c,"r")) > o = h:read("*all") > h:close() > return o > end > sesson:answer(); > while(session.ready()) { > local testvar=shell(/opt/test.sh) > session:sleep(1000); > } > sesson:hangup(); > > > > The test.sh script: > !#/bin/bash > echo 12345678901234567890123456789012345678901234567890123456789012345678901234567890 > > Thats all... Tha script just writes to standard output and the lua > script reads it into a variable... > > I would like to use this mechanism to communicate with an external process... > This worked well with asterisk anyway... > > Question#1: what is the reason of this memory usage and how to fix it? > Question#2: if not possible, how to communicate with an external > process preferably via TCP? > I've tried lua sockets, but same memory leaking occurred... > > Tested on: Freeswitch 1.2.3 on debian6 32bit, x86, 4GbRAM > Stress test environment: another FS instance registers as a user and > start calling target extension with a random (30-60 sec) call > timeout... > Monitors call count and if call count falls below 100, starts new > calls as needed... > So there are always 100 live concurrent incoming calls on the test > system... which maximum length of 1 minute. > > Thanks a lot... > John > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -- Brian West brian at freeswitch.org FreeSWITCH Solutions, LLC PO BOX PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH_Wire http://freeswitchcookbook.com http://freeswitchbook.com T: +1.213.286.0410 | F: +1.213.286.0401 | M: +1.918.424.WEST iNUM: +883 5100 1286 0410 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121012/08c899df/attachment.html From krice at freeswitch.org Fri Oct 12 18:05:53 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 12 Oct 2012 09:05:53 -0500 Subject: [Freeswitch-dev] memory leak in freeswitch? In-Reply-To: Message-ID: This if you think that is repeatable and really a leak, you should run FS under valgrind then report the issue via JIRA On 10/12/12 7:23 AM, "rentmycoder rentmycoder" wrote: > Hi guys, > > I've found a memory leak, and I need your great help to find why is > this happening... > The situation is simple: I execute a simple bash script using lua > popen function as documented in wiki on an extension from the xml > dialplan... > After 1000 calls the memory usage gets 60Mb and after 10.000 calls, 120mb... > Freeswitch becomes very unresponsive and after a time the sip profiles > stop working... > If I uncomment the popen call in lua, memory leak does not occure... > > The lua script: > > function shell(c) > local o, h > h = assert(io.popen(c,"r")) > o = h:read("*all") > h:close() > return o > end > sesson:answer(); > while(session.ready()) { > local testvar=shell(/opt/test.sh) > session:sleep(1000); > } > sesson:hangup(); > > > > The test.sh script: > !#/bin/bash > echo > 123456789012345678901234567890123456789012345678901234567890123456789012345678 > 90 > > Thats all... Tha script just writes to standard output and the lua > script reads it into a variable... > > I would like to use this mechanism to communicate with an external process... > This worked well with asterisk anyway... > > Question#1: what is the reason of this memory usage and how to fix it? > Question#2: if not possible, how to communicate with an external > process preferably via TCP? > I've tried lua sockets, but same memory leaking occurred... > > Tested on: Freeswitch 1.2.3 on debian6 32bit, x86, 4GbRAM > Stress test environment: another FS instance registers as a user and > start calling target extension with a random (30-60 sec) call > timeout... > Monitors call count and if call count falls below 100, starts new > calls as needed... > So there are always 100 live concurrent incoming calls on the test > system... which maximum length of 1 minute. > > Thanks a lot... > John > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch From marketing at cluecon.com Mon Oct 15 20:50:05 2012 From: marketing at cluecon.com (Michael Collins) Date: Mon, 15 Oct 2012 09:50:05 -0700 Subject: [Freeswitch-dev] FreeSWITCH Weekly News and Notes Message-ID: Greetings everyone! As you may know the FreeSWITCH team is continuing to update the project's infrastructure. Among other things this includes getting ready for IPv6. Last week Brian West finished getting several of our servers all set up to handle IPv6 traffic. These includes www.freeswitch.org and conference.freeswitch.org. Thank you to all those who did testing and gave us valuable feedback. On last week's conference callwe enjoyed our very own Ken Rice giving us some great reminders on how to gather data for troubleshooting as well as tips on opening bug reports in Jira . We had a number of users comment on how useful it was to see examples of how to do this. The audio is up in the usual locationand we have a community member who is preparing a video which will be posted as soon as it is ready. This week we have Chad Engler from Patlive coming to discuss with us his node-esl library. Chad has made the code available here on Github. He has included an interesting channel monitor example to give you an idea of what can be done by combining node.js with ESL. We look forward to hearing more about it on this week's conference call . Have a great week! -- Michael S Collins ClueCon Team http://www.cluecon.com 877-7-4ACLUE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121015/064f8c61/attachment.html From noreply+570672649 at badoo.com Tue Oct 16 13:20:22 2012 From: noreply+570672649 at badoo.com (Badoo) Date: Tue, 16 Oct 2012 09:20:22 +0000 Subject: [Freeswitch-dev] =?utf-8?q?=E2=98=85_Freeswitch_Dev=2C_Ian_Bonham?= =?utf-8?q?_left_a_message_for_you?= Message-ID: Ian Bonham left a message for you Only you can see the sender and content of your message, and you can delete it anytime. You can instantly reply using our message exchange system: http://eu1.badoo.com/bon5/in/d3uYc6P8bsQ/?lang_id=3&m=21&mid=507d26d50000000000030000008d93d5031465c500f8 If the link in this message does not work, try copying and pasting it into your browser. This email is part of our delivery procedure for the message sent by Ian Bonham. If you have received this email by mistake, please ignore it. The message will be deleted soon. Have fun! The Badoo Team You have received this email from Badoo Trading Limited (postal address below). http://eu1.badoo.com/impersonation.phtml?lang_id=3&email=freeswitch-dev%40lists.freeswitch.org&block_code=a5bc7b&m=21&mid=507d26d50000000000030000008d93d5031465c500f8 Badoo Trading Limited is a limited company registered in England and Wales under CRN 7540255 with its registered office at 44a The Green, Warlingham, Surrey, CR6 9NA. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/a2beb5a0/attachment.html From juanito1982 at gmail.com Tue Oct 16 19:45:27 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Tue, 16 Oct 2012 17:45:27 +0200 Subject: [Freeswitch-dev] Share data between modules Message-ID: Hello, Is there any way to share data (as a hash) between modules? I can see switch_core_set_variable() function but I think it cannot be used for that purpose. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/d117a901/attachment.html From mitch.capper at gmail.com Tue Oct 16 19:54:55 2012 From: mitch.capper at gmail.com (Mitch Capper) Date: Tue, 16 Oct 2012 08:54:55 -0700 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: Check out the hash api it can do exactly what you want, suggest prefixing all your entries to keep it clean and avoid conflicts. ~Mitch On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum wrote: > Hello, > > Is there any way to share data (as a hash) between modules? I can see > switch_core_set_variable() function but I think it cannot be used for that > purpose. > > Regards > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > From krice at freeswitch.org Tue Oct 16 21:14:11 2012 From: krice at freeswitch.org (Ken Rice) Date: Tue, 16 Oct 2012 12:14:11 -0500 Subject: [Freeswitch-dev] REMINDER Message-ID: Please DO NOT reference a pastebin for information in Jira... Do Not assume the pastebing keeps things forever... It is subject to be reset at any time... If the pastebin is reset your ticket is now useless... Please upload traces, logs, backtraces whatever as a .txt file if its text to be read... Patches should be some_fix.patch or some_fix.patch.txt ... Easiest way to make a patch? ?git diff? committed it to your local tree already? ?git log ?p ?1 ${HASH}? where ${HASH} is the has of the commit git log... Help us out guys.... -- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/f866de28/attachment.html From juanito1982 at gmail.com Tue Oct 16 21:48:14 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Tue, 16 Oct 2012 19:48:14 +0200 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: Do you refer to mod_hash? How can I call its API functions from another module? Is it possible to save C data structures, not only stirng values? Regards 2012/10/16 Mitch Capper > Check out the hash api it can do exactly what you want, suggest > prefixing all your entries to keep it clean and avoid conflicts. > > ~Mitch > > On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum > wrote: > > Hello, > > > > Is there any way to share data (as a hash) between modules? I can see > > switch_core_set_variable() function but I think it cannot be used for > that > > purpose. > > > > Regards > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/58a6b62e/attachment.html From anthony.minessale at gmail.com Tue Oct 16 22:46:38 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 16 Oct 2012 13:46:38 -0500 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: Can you provide context on which 2 modules you want to do this with? Its not a good design to allow loadable modules to require symbols from each other. On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < juanito1982 at gmail.com> wrote: > Do you refer to mod_hash? How can I call its API functions from another > module? Is it possible to save C data structures, not only stirng values? > > Regards > > > 2012/10/16 Mitch Capper > >> Check out the hash api it can do exactly what you want, suggest >> prefixing all your entries to keep it clean and avoid conflicts. >> >> ~Mitch >> >> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >> wrote: >> > Hello, >> > >> > Is there any way to share data (as a hash) between modules? I can see >> > switch_core_set_variable() function but I think it cannot be used for >> that >> > purpose. >> > >> > Regards >> > >> > >> _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > >> > >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://wiki.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-dev mailing list >> > FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/9ad0d801/attachment.html From juanito1982 at gmail.com Wed Oct 17 00:44:18 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Tue, 16 Oct 2012 22:44:18 +0200 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: The idea is to get some internal data from an own module to be served via mod_event_zmq. Regards 2012/10/16 Anthony Minessale > Can you provide context on which 2 modules you want to do this with? > Its not a good design to allow loadable modules to require symbols from > each other. > > > On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < > juanito1982 at gmail.com> wrote: > >> Do you refer to mod_hash? How can I call its API functions from another >> module? Is it possible to save C data structures, not only stirng values? >> >> Regards >> >> >> 2012/10/16 Mitch Capper >> >>> Check out the hash api it can do exactly what you want, suggest >>> prefixing all your entries to keep it clean and avoid conflicts. >>> >>> ~Mitch >>> >>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>> wrote: >>> > Hello, >>> > >>> > Is there any way to share data (as a hash) between modules? I can >>> see >>> > switch_core_set_variable() function but I think it cannot be used for >>> that >>> > purpose. >>> > >>> > Regards >>> > >>> > >>> _________________________________________________________________________ >>> > Professional FreeSWITCH Consulting Services: >>> > consulting at freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > >>> > >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-dev mailing list >>> > FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/05a36a8c/attachment-0001.html From anthony.minessale at gmail.com Wed Oct 17 01:15:50 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 16 Oct 2012 16:15:50 -0500 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: You should do that by firing events from your module so they are delivered via mode_event_zmq. Beware zmq is unstable in FS because its a threaded app and zmq is a different threading model. On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < juanito1982 at gmail.com> wrote: > The idea is to get some internal data from an own module to be served via > mod_event_zmq. > > Regards > > > > 2012/10/16 Anthony Minessale > >> Can you provide context on which 2 modules you want to do this with? >> Its not a good design to allow loadable modules to require symbols from >> each other. >> >> >> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >> juanito1982 at gmail.com> wrote: >> >>> Do you refer to mod_hash? How can I call its API functions from another >>> module? Is it possible to save C data structures, not only stirng values? >>> >>> Regards >>> >>> >>> 2012/10/16 Mitch Capper >>> >>>> Check out the hash api it can do exactly what you want, suggest >>>> prefixing all your entries to keep it clean and avoid conflicts. >>>> >>>> ~Mitch >>>> >>>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>>> wrote: >>>> > Hello, >>>> > >>>> > Is there any way to share data (as a hash) between modules? I can >>>> see >>>> > switch_core_set_variable() function but I think it cannot be used for >>>> that >>>> > purpose. >>>> > >>>> > Regards >>>> > >>>> > >>>> _________________________________________________________________________ >>>> > Professional FreeSWITCH Consulting Services: >>>> > consulting at freeswitch.org >>>> > http://www.freeswitchsolutions.com >>>> > >>>> > >>>> > >>>> > >>>> > Official FreeSWITCH Sites >>>> > http://www.freeswitch.org >>>> > http://wiki.freeswitch.org >>>> > http://www.cluecon.com >>>> > >>>> > FreeSWITCH-dev mailing list >>>> > FreeSWITCH-dev at 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 at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://wiki.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-dev mailing list >>>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121016/c15f40f5/attachment.html From mitch.capper at gmail.com Wed Oct 17 04:33:54 2012 From: mitch.capper at gmail.com (Mitch Capper) Date: Tue, 16 Oct 2012 17:33:54 -0700 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: yes mod_hash you would just use a common realm between the modules, but no its just for strings. ~Mitch On Tue, Oct 16, 2012 at 10:48 AM, Juan Antonio Iba?ez Santorum wrote: > Do you refer to mod_hash? How can I call its API functions from another > module? Is it possible to save C data structures, not only stirng values? > > Regards > > > 2012/10/16 Mitch Capper >> >> Check out the hash api it can do exactly what you want, suggest >> prefixing all your entries to keep it clean and avoid conflicts. >> >> ~Mitch >> >> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >> wrote: >> > Hello, >> > >> > Is there any way to share data (as a hash) between modules? I can see >> > switch_core_set_variable() function but I think it cannot be used for >> > that >> > purpose. >> > >> > Regards >> > >> > >> > _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > >> > >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://wiki.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-dev mailing list >> > FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > From juanito1982 at gmail.com Wed Oct 17 15:36:50 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Wed, 17 Oct 2012 13:36:50 +0200 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: Message-ID: Any idea to improve it? 2012/10/16 Anthony Minessale > You should do that by firing events from your module so they are delivered > via mode_event_zmq. > Beware zmq is unstable in FS because its a threaded app and zmq is a > different threading model. > > > On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < > juanito1982 at gmail.com> wrote: > >> The idea is to get some internal data from an own module to be served via >> mod_event_zmq. >> >> Regards >> >> >> >> 2012/10/16 Anthony Minessale >> >>> Can you provide context on which 2 modules you want to do this with? >>> Its not a good design to allow loadable modules to require symbols from >>> each other. >>> >>> >>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote: >>> >>>> Do you refer to mod_hash? How can I call its API functions from another >>>> module? Is it possible to save C data structures, not only stirng values? >>>> >>>> Regards >>>> >>>> >>>> 2012/10/16 Mitch Capper >>>> >>>>> Check out the hash api it can do exactly what you want, suggest >>>>> prefixing all your entries to keep it clean and avoid conflicts. >>>>> >>>>> ~Mitch >>>>> >>>>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>>>> wrote: >>>>> > Hello, >>>>> > >>>>> > Is there any way to share data (as a hash) between modules? I can >>>>> see >>>>> > switch_core_set_variable() function but I think it cannot be used >>>>> for that >>>>> > purpose. >>>>> > >>>>> > Regards >>>>> > >>>>> > >>>>> _________________________________________________________________________ >>>>> > Professional FreeSWITCH Consulting Services: >>>>> > consulting at freeswitch.org >>>>> > http://www.freeswitchsolutions.com >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > Official FreeSWITCH Sites >>>>> > http://www.freeswitch.org >>>>> > http://wiki.freeswitch.org >>>>> > http://www.cluecon.com >>>>> > >>>>> > FreeSWITCH-dev mailing list >>>>> > FreeSWITCH-dev at 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 at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://wiki.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-dev mailing list >>>>> FreeSWITCH-dev at 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 at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://wiki.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-dev mailing list >>>> FreeSWITCH-dev at lists.freeswitch.org >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>>> http://www.freeswitch.org >>>> >>>> >>> >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900 >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121017/749f0384/attachment-0001.html From peter.olsson at visionutveckling.se Wed Oct 17 15:52:42 2012 From: peter.olsson at visionutveckling.se (Peter Olsson) Date: Wed, 17 Oct 2012 11:52:42 +0000 Subject: [Freeswitch-dev] Share data between modules Message-ID: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> I believe the threading model in zmq is different, that it really doesn't work well together with FreeSWITCH's threading model. If I've understood this correctly, for instance when you send a message using zmq, the library takes for granted that this is always done from the same thread. However, inside FS it means it might be sent from different threads, since the event system inside FS has multiple threads to pop the queued events. Tony, probably has a more correct description - I've never even used zmq myself :) /Peter Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] F?r Juan Antonio Iba?ez Santorum Skickat: den 17 oktober 2012 13:37 Till: freeswitch-dev at lists.freeswitch.org ?mne: Re: [Freeswitch-dev] Share data between modules Any idea to improve it? 2012/10/16 Anthony Minessale > You should do that by firing events from your module so they are delivered via mode_event_zmq. Beware zmq is unstable in FS because its a threaded app and zmq is a different threading model. On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum > wrote: The idea is to get some internal data from an own module to be served via mod_event_zmq. Regards 2012/10/16 Anthony Minessale > Can you provide context on which 2 modules you want to do this with? Its not a good design to allow loadable modules to require symbols from each other. On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum > wrote: Do you refer to mod_hash? How can I call its API functions from another module? Is it possible to save C data structures, not only stirng values? Regards 2012/10/16 Mitch Capper > Check out the hash api it can do exactly what you want, suggest prefixing all your entries to keep it clean and avoid conflicts. ~Mitch On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum > wrote: > Hello, > > Is there any way to share data (as a hash) between modules? I can see > switch_core_set_variable() function but I think it cannot be used for that > purpose. > > Regards > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at 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 at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at 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 at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org !DSPAM:507e958b32763975712591! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121017/af75ca7a/attachment.html From msc at freeswitch.org Wed Oct 17 20:03:11 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 17 Oct 2012 09:03:11 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Message-ID: Hello folks! Our weekly conference call is starting in about one hour. The agenda is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_17 We look forward to hearing some information from two different Chads: Chad Philips and Chad Engler. The former will be giving us a brief heads up on migrating a project over to github and the latter will be discussing node-esl, a node.js + ESL library. Talk to you soon! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121017/16a682d3/attachment-0001.html From msc at freeswitch.org Thu Oct 18 01:25:31 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 17 Oct 2012 14:25:31 -0700 Subject: [Freeswitch-dev] Technical Reviewers Needed For New FreeSWITCH Book Message-ID: Hello! Most of you know that we are re-doing the FreeSWITCH book to freshen things up and add a lot of new content. If you would like to be an official technical reviewer for Packt Publishing for this new FreeSWITCH book then please contact me off list. Please note that this is a real responsibility that will require some time and effort, however the results are well worth it. You can help us get the latest and greatest FreeSWITCH book published and possibly even get your name in the credits. Let me know if you are interested and I'll get you in touch with the publisher. Thanks! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121017/a26e014d/attachment.html From dxj19831029 at gmail.com Thu Oct 18 09:01:47 2012 From: dxj19831029 at gmail.com (Xijing Dai) Date: Thu, 18 Oct 2012 13:01:47 +0800 Subject: [Freeswitch-dev] Technical Reviewers Needed For New FreeSWITCH Book In-Reply-To: References: Message-ID: hey I am interested in the reviewing of new book. Cheers On Thu, Oct 18, 2012 at 5:25 AM, Michael Collins wrote: > Hello! > > Most of you know that we are re-doing the FreeSWITCH book to freshen > things up and add a lot of new content. If you would like to be an official > technical reviewer for Packt Publishing for this new FreeSWITCH book then > please contact me off list. Please note that this is a real responsibility > that will require some time and effort, however the results are well worth > it. You can help us get the latest and greatest FreeSWITCH book published > and possibly even get your name in the credits. Let me know if you are > interested and I'll get you in touch with the publisher. > > Thanks! > > -- > Michael S Collins > Twitter: @mercutioviz > http://www.FreeSWITCH.org > http://www.ClueCon.com > http://www.OSTAG.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/8b3a615f/attachment.html From =?utf-8?Q?=D0=95=D1=80=D0=B6=D0=B0=D0=BD_=D0=A2=D1=83=D0=BB=D0=B5?= Thu Oct 18 09:59:57 2012 From: =?utf-8?Q?=D0=95=D1=80=D0=B6=D0=B0=D0=BD_=D0=A2=D1=83=D0=BB=D0=B5?= (=?utf-8?Q?=D0=95=D1=80=D0=B6=D0=B0=D0=BD_=D0=A2=D1=83=D0=BB=D0=B5?=) Date: Thu, 18 Oct 2012 11:59:57 +0600 Subject: [Freeswitch-dev] =?iso-8859-1?q?Technical_Reviewers_Needed_For_Ne?= =?iso-8859-1?q?w_FreeSWITCH=09Book?= Message-ID: <20121018115957.f831f32a@mail.btcom.kz> Hello! Michael, when are you planning to issue it? ----- Original Message ----- From: Xijing Dai [mailto:dxj19831029 at gmail.com] To: freeswitch-dev at lists.freeswitch.org Sent: Thu, 18 Oct 2012 11:01:47 +0600 Subject: Re: [Freeswitch-dev] Technical Reviewers Needed For New FreeSWITCH Book > hey > > I am interested in the reviewing of new book. > > Cheers > > On Thu, Oct 18, 2012 at 5:25 AM, Michael Collins wrote: > > > Hello! > > > > Most of you know that we are re-doing the FreeSWITCH book to freshen > > things up and add a lot of new content. If you would like to be an > official > > technical reviewer for Packt Publishing for this new FreeSWITCH book then > > please contact me off list. Please note that this is a real responsibility > > that will require some time and effort, however the results are well worth > > it. You can help us get the latest and greatest FreeSWITCH book published > > and possibly even get your name in the credits. Let me know if you are > > interested and I'll get you in touch with the publisher. > > > > Thanks! > > > > -- > > Michael S Collins > > Twitter: @mercutioviz > > http://www.FreeSWITCH.org > > http://www.ClueCon.com > > http://www.OSTAG.org > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > > http://www.freeswitch.org > > > > > From jmesquita at freeswitch.org Thu Oct 18 18:07:08 2012 From: jmesquita at freeswitch.org (=?utf-8?Q?Jo=C3=A3o_Mesquita?=) Date: Thu, 18 Oct 2012 11:07:08 -0300 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> Message-ID: <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> I guess a solution would be to re queue the events again and pop on the thread that owns the ZMQ context. Shouldn't be too hard although there would be locking problems on the queue. Regards, JM Sent from my iPhone On Oct 17, 2012, at 8:52 AM, Peter Olsson wrote: > I believe the threading model in zmq is different, that it really doesn?t work well together with FreeSWITCH?s threading model. > > If I?ve understood this correctly, for instance when you send a message using zmq, the library takes for granted that this is always done from the same thread. However, inside FS it means it might be sent from different threads, since the event system inside FS has multiple threads to pop the queued events. > > Tony, probably has a more correct description ? I?ve never even used zmq myself :) > > /Peter > > Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] F?r Juan Antonio Iba?ez Santorum > Skickat: den 17 oktober 2012 13:37 > Till: freeswitch-dev at lists.freeswitch.org > ?mne: Re: [Freeswitch-dev] Share data between modules > > Any idea to improve it? > > 2012/10/16 Anthony Minessale > You should do that by firing events from your module so they are delivered via mode_event_zmq. > Beware zmq is unstable in FS because its a threaded app and zmq is a different threading model. > > > On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum wrote: > The idea is to get some internal data from an own module to be served via mod_event_zmq. > > Regards > > > > 2012/10/16 Anthony Minessale > Can you provide context on which 2 modules you want to do this with? > Its not a good design to allow loadable modules to require symbols from each other. > > > On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum wrote: > Do you refer to mod_hash? How can I call its API functions from another module? Is it possible to save C data structures, not only stirng values? > > Regards > > > 2012/10/16 Mitch Capper > Check out the hash api it can do exactly what you want, suggest > prefixing all your entries to keep it clean and avoid conflicts. > > ~Mitch > > On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum > wrote: > > Hello, > > > > Is there any way to share data (as a hash) between modules? I can see > > switch_core_set_variable() function but I think it cannot be used for that > > purpose. > > > > Regards > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > > !DSPAM:507e958b32763975712591! > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/beb156d8/attachment-0001.html From msc at freeswitch.org Thu Oct 18 19:00:30 2012 From: msc at freeswitch.org (Michael Collins) Date: Thu, 18 Oct 2012 08:00:30 -0700 Subject: [Freeswitch-dev] Technical Reviewers Needed For New FreeSWITCH Book In-Reply-To: References: Message-ID: Thank you so much for your overwhelming response! We now have quite a large contingent of technical reviewer candidates. Packt is the final arbiter of who will serve as a tech reviewer for the book. I've submitted all your names to Packt. Thanks! -Michael On Wed, Oct 17, 2012 at 2:25 PM, Michael Collins wrote: > Hello! > > Most of you know that we are re-doing the FreeSWITCH book to freshen > things up and add a lot of new content. If you would like to be an official > technical reviewer for Packt Publishing for this new FreeSWITCH book then > please contact me off list. Please note that this is a real responsibility > that will require some time and effort, however the results are well worth > it. You can help us get the latest and greatest FreeSWITCH book published > and possibly even get your name in the credits. Let me know if you are > interested and I'll get you in touch with the publisher. > > Thanks! > > -- > Michael S Collins > Twitter: @mercutioviz > http://www.FreeSWITCH.org > http://www.ClueCon.com > http://www.OSTAG.org > > > -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/7885f2e4/attachment.html From anthony.minessale at gmail.com Thu Oct 18 20:14:35 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 18 Oct 2012 11:14:35 -0500 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> Message-ID: ZMQ and FS are never going to work well.... There are many problems such as, any call to fork in FS like when it execs the system commands or tries to email a VM results in segs. ZMQ has a firm belief in no mutexes and sockets for threads to do interprocess communication. I don't have anything against that but it does not match the FS philosophy at all. All that aside, mod_event_zmq sends only events if you want to send data from a module via that, just create and fire an event. On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: > I guess a solution would be to re queue the events again and pop on the > thread that owns the ZMQ context. Shouldn't be too hard although there > would be locking problems on the queue. > > Regards, > JM > > Sent from my iPhone > > On Oct 17, 2012, at 8:52 AM, Peter Olsson < > peter.olsson at visionutveckling.se> wrote: > > I believe the threading model in zmq is different, that it really > doesn?t work well together with FreeSWITCH?s threading model.**** > > ** ** > > If I?ve understood this correctly, for instance when you send a message > using zmq, the library takes for granted that this is always done from the > same thread. However, inside FS it means it might be sent from different > threads, since the event system inside FS has multiple threads to pop the > queued events.**** > > ** ** > > Tony, probably has a more correct description ? I?ve never even used zmq > myself :)**** > > ** ** > > /Peter**** > > ** ** > > *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ > mailto:freeswitch-dev-bounces at lists.freeswitch.org] > *F?r *Juan Antonio Iba?ez Santorum > *Skickat:* den 17 oktober 2012 13:37 > *Till:* freeswitch-dev at lists.freeswitch.org > *?mne:* Re: [Freeswitch-dev] Share data between modules**** > > ** ** > > Any idea to improve it? **** > > 2012/10/16 Anthony Minessale **** > > You should do that by firing events from your module so they are delivered > via mode_event_zmq.**** > > Beware zmq is unstable in FS because its a threaded app and zmq is a > different threading model.**** > > ** ** > > On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < > juanito1982 at gmail.com> wrote:**** > > The idea is to get some internal data from an own module to be served via > mod_event_zmq.**** > > ** ** > > Regards**** > > ** ** > > ** ** > > ** ** > > 2012/10/16 Anthony Minessale **** > > Can you provide context on which 2 modules you want to do this with?**** > > Its not a good design to allow loadable modules to require symbols from > each other.**** > > ** ** > > On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < > juanito1982 at gmail.com> wrote:**** > > Do you refer to mod_hash? How can I call its API functions from another > module? Is it possible to save C data structures, not only stirng values?* > *** > > ** ** > > Regards**** > > ** ** > > 2012/10/16 Mitch Capper **** > > Check out the hash api it can do exactly what you want, suggest > prefixing all your entries to keep it clean and avoid conflicts. > > ~Mitch**** > > > On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum > wrote: > > Hello, > > > > Is there any way to share data (as a hash) between modules? I can see > > switch_core_set_variable() function but I think it cannot be used for > that > > purpose. > > > > Regards > >**** > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > !DSPAM:507e958b32763975712591! **** > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/20a7a7a3/attachment-0001.html From jmesquita at freeswitch.org Thu Oct 18 21:28:01 2012 From: jmesquita at freeswitch.org (=?utf-8?Q?Jo=C3=A3o_Mesquita?=) Date: Thu, 18 Oct 2012 14:28:01 -0300 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> Message-ID: <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> Tony, If I understood you correctly, using ZMQ more extensively other than an event consumer will never work right but the mod as it is with the proper thread safety implementation would work just fine correct? What I find very debatable is that the beauty of ZMQ is implementing your own protocol for service based brokers and such fancy things other than just broadcasting messages like it is doing right now and since the protocol implementation is something very dependent on the application itself, a standard mod is questionable. The way I do it is have my own daemon that uses ESL to consume events and do ZMQ on the other end. Much like a proxy. Anyhow, just wanted to add to the discussion. Sent from my iPhone On Oct 18, 2012, at 1:14 PM, Anthony CTO wrote: > ZMQ and FS are never going to work well.... > > There are many problems such as, any call to fork in FS like when it execs the system commands or tries to email a VM results in segs. > > ZMQ has a firm belief in no mutexes and sockets for threads to do interprocess communication. I don't have anything against that but it does not match the FS philosophy at all. > > All that aside, > > mod_event_zmq sends only events if you want to send data from a module via that, just create and fire an event. > > > On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: >> I guess a solution would be to re queue the events again and pop on the thread that owns the ZMQ context. Shouldn't be too hard although there would be locking problems on the queue. >> >> Regards, >> JM >> >> Sent from my iPhone >> >> On Oct 17, 2012, at 8:52 AM, Peter Olsson wrote: >> >>> I believe the threading model in zmq is different, that it really doesn?t work well together with FreeSWITCH?s threading model. >>> >>> >>> >>> If I?ve understood this correctly, for instance when you send a message using zmq, the library takes for granted that this is always done from the same thread. However, inside FS it means it might be sent from different threads, since the event system inside FS has multiple threads to pop the queued events. >>> >>> >>> >>> Tony, probably has a more correct description ? I?ve never even used zmq myself :) >>> >>> >>> >>> /Peter >>> >>> >>> >>> Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] F?r Juan Antonio Iba?ez Santorum >>> Skickat: den 17 oktober 2012 13:37 >>> Till: freeswitch-dev at lists.freeswitch.org >>> ?mne: Re: [Freeswitch-dev] Share data between modules >>> >>> >>> >>> Any idea to improve it? >>> >>> 2012/10/16 Anthony Minessale >>> >>> You should do that by firing events from your module so they are delivered via mode_event_zmq. >>> >>> Beware zmq is unstable in FS because its a threaded app and zmq is a different threading model. >>> >>> >>> >>> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum wrote: >>> >>> The idea is to get some internal data from an own module to be served via mod_event_zmq. >>> >>> >>> >>> Regards >>> >>> >>> >>> >>> >>> >>> >>> 2012/10/16 Anthony Minessale >>> >>> Can you provide context on which 2 modules you want to do this with? >>> >>> Its not a good design to allow loadable modules to require symbols from each other. >>> >>> >>> >>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum wrote: >>> >>> Do you refer to mod_hash? How can I call its API functions from another module? Is it possible to save C data structures, not only stirng values? >>> >>> >>> >>> Regards >>> >>> >>> >>> 2012/10/16 Mitch Capper >>> >>> Check out the hash api it can do exactly what you want, suggest >>> prefixing all your entries to keep it clean and avoid conflicts. >>> >>> ~Mitch >>> >>> >>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>> wrote: >>> > Hello, >>> > >>> > Is there any way to share data (as a hash) between modules? I can see >>> > switch_core_set_variable() function but I think it cannot be used for that >>> > purpose. >>> > >>> > Regards >>> > >>> >>> > _________________________________________________________________________ >>> > Professional FreeSWITCH Consulting Services: >>> > consulting at freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > >>> > >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-dev mailing list >>> > FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >>> >>> >>> >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900 >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >>> >>> >>> >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900 >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >>> !DSPAM:507e958b32763975712591! >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/a544e603/attachment-0001.html From anthony.minessale at gmail.com Thu Oct 18 21:43:17 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 18 Oct 2012 12:43:17 -0500 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> Message-ID: I mean loading it into FS at all puts you at risk of crashing. ZMQ pretends to be a socket but really is a complicated series of threads all using sockets to talk to each other. You only see one, its designed expecting the main thread of your app to be the star of the app. The way its used in FS loading it into a mod puts it at risk because if any thread in FS calls fork for any reason, all of the zmq threads also fork and cause segs. Doing it on the other side of ESL is safer since you are not loading the lib into the process. On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: > Tony, > > If I understood you correctly, using ZMQ more extensively other than an > event consumer will never work right but the mod as it is with the proper > thread safety implementation would work just fine correct? > > What I find very debatable is that the beauty of ZMQ is implementing your > own protocol for service based brokers and such fancy things other than > just broadcasting messages like it is doing right now and since the > protocol implementation is something very dependent on the application > itself, a standard mod is questionable. The way I do it is have my own > daemon that uses ESL to consume events and do ZMQ on the other end. Much > like a proxy. > > Anyhow, just wanted to add to the discussion. > > Sent from my iPhone > > On Oct 18, 2012, at 1:14 PM, Anthony CTO > wrote: > > ZMQ and FS are never going to work well.... > > There are many problems such as, any call to fork in FS like when it execs > the system commands or tries to email a VM results in segs. > > ZMQ has a firm belief in no mutexes and sockets for threads to do > interprocess communication. I don't have anything against that but it does > not match the FS philosophy at all. > > All that aside, > > mod_event_zmq sends only events if you want to send data from a module > via that, just create and fire an event. > > > On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: > >> I guess a solution would be to re queue the events again and pop on the >> thread that owns the ZMQ context. Shouldn't be too hard although there >> would be locking problems on the queue. >> >> Regards, >> JM >> >> Sent from my iPhone >> >> On Oct 17, 2012, at 8:52 AM, Peter Olsson < >> peter.olsson at visionutveckling.se> wrote: >> >> I believe the threading model in zmq is different, that it really >> doesn?t work well together with FreeSWITCH?s threading model.**** >> >> ** ** >> >> If I?ve understood this correctly, for instance when you send a message >> using zmq, the library takes for granted that this is always done from the >> same thread. However, inside FS it means it might be sent from different >> threads, since the event system inside FS has multiple threads to pop the >> queued events.**** >> >> ** ** >> >> Tony, probably has a more correct description ? I?ve never even used zmq >> myself :)**** >> >> ** ** >> >> /Peter**** >> >> ** ** >> >> *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ >> mailto:freeswitch-dev-bounces at lists.freeswitch.org] >> *F?r *Juan Antonio Iba?ez Santorum >> *Skickat:* den 17 oktober 2012 13:37 >> *Till:* freeswitch-dev at lists.freeswitch.org >> *?mne:* Re: [Freeswitch-dev] Share data between modules**** >> >> ** ** >> >> Any idea to improve it? **** >> >> 2012/10/16 Anthony Minessale **** >> >> You should do that by firing events from your module so they are >> delivered via mode_event_zmq.**** >> >> Beware zmq is unstable in FS because its a threaded app and zmq is a >> different threading model.**** >> >> ** ** >> >> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < >> juanito1982 at gmail.com> wrote:**** >> >> The idea is to get some internal data from an own module to be served via >> mod_event_zmq.**** >> >> ** ** >> >> Regards**** >> >> ** ** >> >> ** ** >> >> ** ** >> >> 2012/10/16 Anthony Minessale **** >> >> Can you provide context on which 2 modules you want to do this with?**** >> >> Its not a good design to allow loadable modules to require symbols from >> each other.**** >> >> ** ** >> >> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >> juanito1982 at gmail.com> wrote:**** >> >> Do you refer to mod_hash? How can I call its API functions from another >> module? Is it possible to save C data structures, not only stirng values? >> **** >> >> ** ** >> >> Regards**** >> >> ** ** >> >> 2012/10/16 Mitch Capper **** >> >> Check out the hash api it can do exactly what you want, suggest >> prefixing all your entries to keep it clean and avoid conflicts. >> >> ~Mitch**** >> >> >> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >> wrote: >> > Hello, >> > >> > Is there any way to share data (as a hash) between modules? I can see >> > switch_core_set_variable() function but I think it cannot be used for >> that >> > purpose. >> > >> > Regards >> >**** >> >> > >> _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > >> > >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://wiki.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-dev mailing list >> > FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> >> **** >> >> ** ** >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900**** >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> >> **** >> >> ** ** >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900**** >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> !DSPAM:507e958b32763975712591! **** >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/7e65c722/attachment-0001.html From jmesquita at freeswitch.org Thu Oct 18 22:06:26 2012 From: jmesquita at freeswitch.org (=?ISO-8859-1?Q?Jo=E3o_Mesquita?=) Date: Thu, 18 Oct 2012 13:06:26 -0500 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> Message-ID: I understand it now. Should we make a disclaimer about that on the wiki or even on the configuration file of the mod? I am working on documenting most of the modules of their corresponding conf files and I really believe this piece of information deserves a very visible space. Regards, Jo?o Mesquita On Thu, Oct 18, 2012 at 12:43 PM, Anthony Minessale < anthony.minessale at gmail.com> wrote: > I mean loading it into FS at all puts you at risk of crashing. > > ZMQ pretends to be a socket but really is a complicated series of threads > all using sockets to talk to each other. You only see one, its designed > expecting the main thread of your app to be the star of the app. The way > its used in FS loading it into a mod puts it at risk because if any thread > in FS calls fork for any reason, all of the zmq threads also fork and cause > segs. > > Doing it on the other side of ESL is safer since you are not loading the > lib into the process. > > > On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: > >> Tony, >> >> If I understood you correctly, using ZMQ more extensively other than an >> event consumer will never work right but the mod as it is with the proper >> thread safety implementation would work just fine correct? >> >> What I find very debatable is that the beauty of ZMQ is implementing your >> own protocol for service based brokers and such fancy things other than >> just broadcasting messages like it is doing right now and since the >> protocol implementation is something very dependent on the application >> itself, a standard mod is questionable. The way I do it is have my own >> daemon that uses ESL to consume events and do ZMQ on the other end. Much >> like a proxy. >> >> Anyhow, just wanted to add to the discussion. >> >> Sent from my iPhone >> >> On Oct 18, 2012, at 1:14 PM, Anthony CTO >> wrote: >> >> ZMQ and FS are never going to work well.... >> >> There are many problems such as, any call to fork in FS like when it >> execs the system commands or tries to email a VM results in segs. >> >> ZMQ has a firm belief in no mutexes and sockets for threads to do >> interprocess communication. I don't have anything against that but it does >> not match the FS philosophy at all. >> >> All that aside, >> >> mod_event_zmq sends only events if you want to send data from a module >> via that, just create and fire an event. >> >> >> On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: >> >>> I guess a solution would be to re queue the events again and pop on the >>> thread that owns the ZMQ context. Shouldn't be too hard although there >>> would be locking problems on the queue. >>> >>> Regards, >>> JM >>> >>> Sent from my iPhone >>> >>> On Oct 17, 2012, at 8:52 AM, Peter Olsson < >>> peter.olsson at visionutveckling.se> wrote: >>> >>> I believe the threading model in zmq is different, that it really >>> doesn?t work well together with FreeSWITCH?s threading model.**** >>> >>> ** ** >>> >>> If I?ve understood this correctly, for instance when you send a message >>> using zmq, the library takes for granted that this is always done from the >>> same thread. However, inside FS it means it might be sent from different >>> threads, since the event system inside FS has multiple threads to pop the >>> queued events.**** >>> >>> ** ** >>> >>> Tony, probably has a more correct description ? I?ve never even used zmq >>> myself :)**** >>> >>> ** ** >>> >>> /Peter**** >>> >>> ** ** >>> >>> *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ >>> mailto:freeswitch-dev-bounces at lists.freeswitch.org] >>> *F?r *Juan Antonio Iba?ez Santorum >>> *Skickat:* den 17 oktober 2012 13:37 >>> *Till:* freeswitch-dev at lists.freeswitch.org >>> *?mne:* Re: [Freeswitch-dev] Share data between modules**** >>> >>> ** ** >>> >>> Any idea to improve it? **** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> You should do that by firing events from your module so they are >>> delivered via mode_event_zmq.**** >>> >>> Beware zmq is unstable in FS because its a threaded app and zmq is a >>> different threading model.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> The idea is to get some internal data from an own module to be served >>> via mod_event_zmq.**** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> ** ** >>> >>> ** ** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> Can you provide context on which 2 modules you want to do this with?**** >>> >>> Its not a good design to allow loadable modules to require symbols from >>> each other.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> Do you refer to mod_hash? How can I call its API functions from another >>> module? Is it possible to save C data structures, not only stirng values? >>> **** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> 2012/10/16 Mitch Capper **** >>> >>> Check out the hash api it can do exactly what you want, suggest >>> prefixing all your entries to keep it clean and avoid conflicts. >>> >>> ~Mitch**** >>> >>> >>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>> wrote: >>> > Hello, >>> > >>> > Is there any way to share data (as a hash) between modules? I can >>> see >>> > switch_core_set_variable() function but I think it cannot be used for >>> that >>> > purpose. >>> > >>> > Regards >>> >**** >>> >>> > >>> _________________________________________________________________________ >>> > Professional FreeSWITCH Consulting Services: >>> > consulting at freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > >>> > >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-dev mailing list >>> > FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> !DSPAM:507e958b32763975712591! **** >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/cba30bbb/attachment-0001.html From jgeddes at ozroil.com Thu Oct 18 22:57:25 2012 From: jgeddes at ozroil.com (Jeff Geddes) Date: Thu, 18 Oct 2012 11:57:25 -0700 Subject: [Freeswitch-dev] =?utf-8?q?mod=5Fcurl_=2ENET_asmx_web_service?= Message-ID: <20121018115725.00a6512278c9e125a4e2a8367680d5ef.b4bb5ab60e.wbe@email02.secureserver.net> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121018/d2023411/attachment.html From gabe at gundy.org Fri Oct 19 00:49:31 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Thu, 18 Oct 2012 14:49:31 -0600 Subject: [Freeswitch-dev] mod_curl .NET asmx web service In-Reply-To: <20121018115725.00a6512278c9e125a4e2a8367680d5ef.b4bb5ab60e.wbe@email02.secureserver.net> References: <20121018115725.00a6512278c9e125a4e2a8367680d5ef.b4bb5ab60e.wbe@email02.secureserver.net> Message-ID: On Thu, Oct 18, 2012 at 12:57 PM, Jeff Geddes wrote: > Are there any examples out there that show to call a .NET web service? This list wouldn't be that useful when seeking help with .NET specific questions. I'm sure there are dozens of lists that are going to help you get those Qs answered more quickly and accurately than we could. When you get that working and need to know how to return XML that FreeSWITCH can use, we'll be able to get you the info you need. Good luck and let us know how it goes. Best, Gabe From gabe at gundy.org Fri Oct 19 00:51:08 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Thu, 18 Oct 2012 14:51:08 -0600 Subject: [Freeswitch-dev] mod_curl .NET asmx web service In-Reply-To: References: <20121018115725.00a6512278c9e125a4e2a8367680d5ef.b4bb5ab60e.wbe@email02.secureserver.net> Message-ID: On Thu, Oct 18, 2012 at 2:49 PM, Gabriel Gunderson wrote: > When you get that working and need to know how to return XML that > FreeSWITCH can use, we'll be able to get you the info you need. Sorry, I just noticed that this was sent to the FreeSWITCH *dev* list. When you're looking for FreeSWITCH help, it's best to take it to the regular FS users list. Gabe From juanito1982 at gmail.com Fri Oct 19 09:55:49 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Fri, 19 Oct 2012 07:55:49 +0200 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> Message-ID: Perfect, I'll try to work using ESL Regards 2012/10/18 Anthony Minessale > I mean loading it into FS at all puts you at risk of crashing. > > ZMQ pretends to be a socket but really is a complicated series of threads > all using sockets to talk to each other. You only see one, its designed > expecting the main thread of your app to be the star of the app. The way > its used in FS loading it into a mod puts it at risk because if any thread > in FS calls fork for any reason, all of the zmq threads also fork and cause > segs. > > Doing it on the other side of ESL is safer since you are not loading the > lib into the process. > > > On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: > >> Tony, >> >> If I understood you correctly, using ZMQ more extensively other than an >> event consumer will never work right but the mod as it is with the proper >> thread safety implementation would work just fine correct? >> >> What I find very debatable is that the beauty of ZMQ is implementing your >> own protocol for service based brokers and such fancy things other than >> just broadcasting messages like it is doing right now and since the >> protocol implementation is something very dependent on the application >> itself, a standard mod is questionable. The way I do it is have my own >> daemon that uses ESL to consume events and do ZMQ on the other end. Much >> like a proxy. >> >> Anyhow, just wanted to add to the discussion. >> >> Sent from my iPhone >> >> On Oct 18, 2012, at 1:14 PM, Anthony CTO >> wrote: >> >> ZMQ and FS are never going to work well.... >> >> There are many problems such as, any call to fork in FS like when it >> execs the system commands or tries to email a VM results in segs. >> >> ZMQ has a firm belief in no mutexes and sockets for threads to do >> interprocess communication. I don't have anything against that but it does >> not match the FS philosophy at all. >> >> All that aside, >> >> mod_event_zmq sends only events if you want to send data from a module >> via that, just create and fire an event. >> >> >> On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: >> >>> I guess a solution would be to re queue the events again and pop on the >>> thread that owns the ZMQ context. Shouldn't be too hard although there >>> would be locking problems on the queue. >>> >>> Regards, >>> JM >>> >>> Sent from my iPhone >>> >>> On Oct 17, 2012, at 8:52 AM, Peter Olsson < >>> peter.olsson at visionutveckling.se> wrote: >>> >>> I believe the threading model in zmq is different, that it really >>> doesn?t work well together with FreeSWITCH?s threading model.**** >>> >>> ** ** >>> >>> If I?ve understood this correctly, for instance when you send a message >>> using zmq, the library takes for granted that this is always done from the >>> same thread. However, inside FS it means it might be sent from different >>> threads, since the event system inside FS has multiple threads to pop the >>> queued events.**** >>> >>> ** ** >>> >>> Tony, probably has a more correct description ? I?ve never even used zmq >>> myself :)**** >>> >>> ** ** >>> >>> /Peter**** >>> >>> ** ** >>> >>> *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ >>> mailto:freeswitch-dev-bounces at lists.freeswitch.org] >>> *F?r *Juan Antonio Iba?ez Santorum >>> *Skickat:* den 17 oktober 2012 13:37 >>> *Till:* freeswitch-dev at lists.freeswitch.org >>> *?mne:* Re: [Freeswitch-dev] Share data between modules**** >>> >>> ** ** >>> >>> Any idea to improve it? **** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> You should do that by firing events from your module so they are >>> delivered via mode_event_zmq.**** >>> >>> Beware zmq is unstable in FS because its a threaded app and zmq is a >>> different threading model.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> The idea is to get some internal data from an own module to be served >>> via mod_event_zmq.**** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> ** ** >>> >>> ** ** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> Can you provide context on which 2 modules you want to do this with?**** >>> >>> Its not a good design to allow loadable modules to require symbols from >>> each other.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> Do you refer to mod_hash? How can I call its API functions from another >>> module? Is it possible to save C data structures, not only stirng values? >>> **** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> 2012/10/16 Mitch Capper **** >>> >>> Check out the hash api it can do exactly what you want, suggest >>> prefixing all your entries to keep it clean and avoid conflicts. >>> >>> ~Mitch**** >>> >>> >>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>> wrote: >>> > Hello, >>> > >>> > Is there any way to share data (as a hash) between modules? I can >>> see >>> > switch_core_set_variable() function but I think it cannot be used for >>> that >>> > purpose. >>> > >>> > Regards >>> >**** >>> >>> > >>> _________________________________________________________________________ >>> > Professional FreeSWITCH Consulting Services: >>> > consulting at freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > >>> > >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-dev mailing list >>> > FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> !DSPAM:507e958b32763975712591! **** >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121019/b636ab99/attachment-0001.html From mike at jerris.com Fri Oct 19 16:46:14 2012 From: mike at jerris.com (Michael Jerris) Date: Fri, 19 Oct 2012 08:46:14 -0400 Subject: [Freeswitch-dev] memory leak in freeswitch? In-Reply-To: References: Message-ID: <4445818713533651271@unknownmsgid> Try running under valgrind? On Oct 12, 2012, at 8:28 AM, rentmycoder rentmycoder wrote: > Hi guys, > > I've found a memory leak, and I need your great help to find why is > this happening... > The situation is simple: I execute a simple bash script using lua > popen function as documented in wiki on an extension from the xml > dialplan... > After 1000 calls the memory usage gets 60Mb and after 10.000 calls, 120mb... > Freeswitch becomes very unresponsive and after a time the sip profiles > stop working... > If I uncomment the popen call in lua, memory leak does not occure... > > The lua script: > > function shell(c) > local o, h > h = assert(io.popen(c,"r")) > o = h:read("*all") > h:close() > return o > end > sesson:answer(); > while(session.ready()) { > local testvar=shell(/opt/test.sh) > session:sleep(1000); > } > sesson:hangup(); > > > > The test.sh script: > !#/bin/bash > echo 12345678901234567890123456789012345678901234567890123456789012345678901234567890 > > Thats all... Tha script just writes to standard output and the lua > script reads it into a variable... > > I would like to use this mechanism to communicate with an external process... > This worked well with asterisk anyway... > > Question#1: what is the reason of this memory usage and how to fix it? > Question#2: if not possible, how to communicate with an external > process preferably via TCP? > I've tried lua sockets, but same memory leaking occurred... > > Tested on: Freeswitch 1.2.3 on debian6 32bit, x86, 4GbRAM > Stress test environment: another FS instance registers as a user and > start calling target extension with a random (30-60 sec) call > timeout... > Monitors call count and if call count falls below 100, starts new > calls as needed... > So there are always 100 live concurrent incoming calls on the test > system... which maximum length of 1 minute. > > Thanks a lot... > John > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org From mike at jerris.com Fri Oct 19 17:07:58 2012 From: mike at jerris.com (Michael Jerris) Date: Fri, 19 Oct 2012 09:07:58 -0400 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> Message-ID: <-4275677937441547428@unknownmsgid> any objections to just removing the mod completely from tree? On Oct 18, 2012, at 1:49 PM, Anthony Minessale wrote: I mean loading it into FS at all puts you at risk of crashing. ZMQ pretends to be a socket but really is a complicated series of threads all using sockets to talk to each other. You only see one, its designed expecting the main thread of your app to be the star of the app. The way its used in FS loading it into a mod puts it at risk because if any thread in FS calls fork for any reason, all of the zmq threads also fork and cause segs. Doing it on the other side of ESL is safer since you are not loading the lib into the process. On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: > Tony, > > If I understood you correctly, using ZMQ more extensively other than an > event consumer will never work right but the mod as it is with the proper > thread safety implementation would work just fine correct? > > What I find very debatable is that the beauty of ZMQ is implementing your > own protocol for service based brokers and such fancy things other than > just broadcasting messages like it is doing right now and since the > protocol implementation is something very dependent on the application > itself, a standard mod is questionable. The way I do it is have my own > daemon that uses ESL to consume events and do ZMQ on the other end. Much > like a proxy. > > Anyhow, just wanted to add to the discussion. > > Sent from my iPhone > > On Oct 18, 2012, at 1:14 PM, Anthony CTO > wrote: > > ZMQ and FS are never going to work well.... > > There are many problems such as, any call to fork in FS like when it execs > the system commands or tries to email a VM results in segs. > > ZMQ has a firm belief in no mutexes and sockets for threads to do > interprocess communication. I don't have anything against that but it does > not match the FS philosophy at all. > > All that aside, > > mod_event_zmq sends only events if you want to send data from a module > via that, just create and fire an event. > > > On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: > >> I guess a solution would be to re queue the events again and pop on the >> thread that owns the ZMQ context. Shouldn't be too hard although there >> would be locking problems on the queue. >> >> Regards, >> JM >> >> Sent from my iPhone >> >> On Oct 17, 2012, at 8:52 AM, Peter Olsson < >> peter.olsson at visionutveckling.se> wrote: >> >> I believe the threading model in zmq is different, that it really >> doesn?t work well together with FreeSWITCH?s threading model.**** >> >> ** ** >> >> If I?ve understood this correctly, for instance when you send a message >> using zmq, the library takes for granted that this is always done from the >> same thread. However, inside FS it means it might be sent from different >> threads, since the event system inside FS has multiple threads to pop the >> queued events.**** >> >> ** ** >> >> Tony, probably has a more correct description ? I?ve never even used zmq >> myself :)**** >> >> ** ** >> >> /Peter**** >> >> ** ** >> >> *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ >> mailto:freeswitch-dev-bounces at lists.freeswitch.org] >> *F?r *Juan Antonio Iba?ez Santorum >> *Skickat:* den 17 oktober 2012 13:37 >> *Till:* freeswitch-dev at lists.freeswitch.org >> *?mne:* Re: [Freeswitch-dev] Share data between modules**** >> >> ** ** >> >> Any idea to improve it? **** >> >> 2012/10/16 Anthony Minessale **** >> >> You should do that by firing events from your module so they are >> delivered via mode_event_zmq.**** >> >> Beware zmq is unstable in FS because its a threaded app and zmq is a >> different threading model.**** >> >> ** ** >> >> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < >> juanito1982 at gmail.com> wrote:**** >> >> The idea is to get some internal data from an own module to be served via >> mod_event_zmq.**** >> >> ** ** >> >> Regards**** >> >> ** ** >> >> ** ** >> >> ** ** >> >> 2012/10/16 Anthony Minessale **** >> >> Can you provide context on which 2 modules you want to do this with?**** >> >> Its not a good design to allow loadable modules to require symbols from >> each other.**** >> >> ** ** >> >> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >> juanito1982 at gmail.com> wrote:**** >> >> Do you refer to mod_hash? How can I call its API functions from another >> module? Is it possible to save C data structures, not only stirng values? >> **** >> >> ** ** >> >> Regards**** >> >> ** ** >> >> 2012/10/16 Mitch Capper **** >> >> Check out the hash api it can do exactly what you want, suggest >> prefixing all your entries to keep it clean and avoid conflicts. >> >> ~Mitch**** >> >> >> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >> wrote: >> > Hello, >> > >> > Is there any way to share data (as a hash) between modules? I can see >> > switch_core_set_variable() function but I think it cannot be used for >> that >> > purpose. >> > >> > Regards >> >**** >> >> > >> _________________________________________________________________________ >> > Professional FreeSWITCH Consulting Services: >> > consulting at freeswitch.org >> > http://www.freeswitchsolutions.com >> > >> > >> > >> > >> > Official FreeSWITCH Sites >> > http://www.freeswitch.org >> > http://wiki.freeswitch.org >> > http://www.cluecon.com >> > >> > FreeSWITCH-dev mailing list >> > FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> >> **** >> >> ** ** >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900**** >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> >> **** >> >> ** ** >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900**** >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> !DSPAM:507e958b32763975712591! **** >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121019/1b279690/attachment-0001.html From dujinfang at gmail.com Fri Oct 19 18:24:50 2012 From: dujinfang at gmail.com (Seven Du) Date: Fri, 19 Oct 2012 22:24:50 +0800 Subject: [Freeswitch-dev] git merge master and push triggers callbacks? Message-ID: Hi, I updated the video-media-bug and pushed today d076f5c (http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=d076f5cd1dc73775436a6e2f7ef52990c628b6b6) , it seems triggers git callbacks twice, is it a problem? Sorry if it causing trouble. -- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121019/f4dadf2d/attachment.html From jmesquita at freeswitch.org Fri Oct 19 18:40:32 2012 From: jmesquita at freeswitch.org (=?utf-8?Q?Jo=C3=A3o_Mesquita?=) Date: Fri, 19 Oct 2012 11:40:32 -0300 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: <-4275677937441547428@unknownmsgid> References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> <-4275677937441547428@unknownmsgid> Message-ID: Not from me and I would even suggest it. Sent from my iPhone On Oct 19, 2012, at 10:07 AM, Michael Jerris wrote: > any objections to just removing the mod completely from tree? > > On Oct 18, 2012, at 1:49 PM, Anthony Minessale wrote: > >> I mean loading it into FS at all puts you at risk of crashing. >> >> ZMQ pretends to be a socket but really is a complicated series of threads all using sockets to talk to each other. You only see one, its designed expecting the main thread of your app to be the star of the app. The way its used in FS loading it into a mod puts it at risk because if any thread in FS calls fork for any reason, all of the zmq threads also fork and cause segs. >> >> Doing it on the other side of ESL is safer since you are not loading the lib into the process. >> >> >> On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: >>> Tony, >>> >>> If I understood you correctly, using ZMQ more extensively other than an event consumer will never work right but the mod as it is with the proper thread safety implementation would work just fine correct? >>> >>> What I find very debatable is that the beauty of ZMQ is implementing your own protocol for service based brokers and such fancy things other than just broadcasting messages like it is doing right now and since the protocol implementation is something very dependent on the application itself, a standard mod is questionable. The way I do it is have my own daemon that uses ESL to consume events and do ZMQ on the other end. Much like a proxy. >>> >>> Anyhow, just wanted to add to the discussion. >>> >>> Sent from my iPhone >>> >>> On Oct 18, 2012, at 1:14 PM, Anthony CTO wrote: >>> >>>> ZMQ and FS are never going to work well.... >>>> >>>> There are many problems such as, any call to fork in FS like when it execs the system commands or tries to email a VM results in segs. >>>> >>>> ZMQ has a firm belief in no mutexes and sockets for threads to do interprocess communication. I don't have anything against that but it does not match the FS philosophy at all. >>>> >>>> All that aside, >>>> >>>> mod_event_zmq sends only events if you want to send data from a module via that, just create and fire an event. >>>> >>>> >>>> On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: >>>>> I guess a solution would be to re queue the events again and pop on the thread that owns the ZMQ context. Shouldn't be too hard although there would be locking problems on the queue. >>>>> >>>>> Regards, >>>>> JM >>>>> >>>>> Sent from my iPhone >>>>> >>>>> On Oct 17, 2012, at 8:52 AM, Peter Olsson wrote: >>>>> >>>>>> I believe the threading model in zmq is different, that it really doesn?t work well together with FreeSWITCH?s threading model. >>>>>> >>>>>> >>>>>> >>>>>> If I?ve understood this correctly, for instance when you send a message using zmq, the library takes for granted that this is always done from the same thread. However, inside FS it means it might be sent from different threads, since the event system inside FS has multiple threads to pop the queued events. >>>>>> >>>>>> >>>>>> >>>>>> Tony, probably has a more correct description ? I?ve never even used zmq myself :) >>>>>> >>>>>> >>>>>> >>>>>> /Peter >>>>>> >>>>>> >>>>>> >>>>>> Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] F?r Juan Antonio Iba?ez Santorum >>>>>> Skickat: den 17 oktober 2012 13:37 >>>>>> Till: freeswitch-dev at lists.freeswitch.org >>>>>> ?mne: Re: [Freeswitch-dev] Share data between modules >>>>>> >>>>>> >>>>>> >>>>>> Any idea to improve it? >>>>>> >>>>>> 2012/10/16 Anthony Minessale >>>>>> >>>>>> You should do that by firing events from your module so they are delivered via mode_event_zmq. >>>>>> >>>>>> Beware zmq is unstable in FS because its a threaded app and zmq is a different threading model. >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum wrote: >>>>>> >>>>>> The idea is to get some internal data from an own module to be served via mod_event_zmq. >>>>>> >>>>>> >>>>>> >>>>>> Regards >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2012/10/16 Anthony Minessale >>>>>> >>>>>> Can you provide context on which 2 modules you want to do this with? >>>>>> >>>>>> Its not a good design to allow loadable modules to require symbols from each other. >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum wrote: >>>>>> >>>>>> Do you refer to mod_hash? How can I call its API functions from another module? Is it possible to save C data structures, not only stirng values? >>>>>> >>>>>> >>>>>> >>>>>> Regards >>>>>> >>>>>> >>>>>> >>>>>> 2012/10/16 Mitch Capper >>>>>> >>>>>> Check out the hash api it can do exactly what you want, suggest >>>>>> prefixing all your entries to keep it clean and avoid conflicts. >>>>>> >>>>>> ~Mitch >>>>>> >>>>>> >>>>>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>>>>> wrote: >>>>>> > Hello, >>>>>> > >>>>>> > Is there any way to share data (as a hash) between modules? I can see >>>>>> > switch_core_set_variable() function but I think it cannot be used for that >>>>>> > purpose. >>>>>> > >>>>>> > Regards >>>>>> > >>>>>> >>>>>> > _________________________________________________________________________ >>>>>> > Professional FreeSWITCH Consulting Services: >>>>>> > consulting at freeswitch.org >>>>>> > http://www.freeswitchsolutions.com >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > Official FreeSWITCH Sites >>>>>> > http://www.freeswitch.org >>>>>> > http://wiki.freeswitch.org >>>>>> > http://www.cluecon.com >>>>>> > >>>>>> > FreeSWITCH-dev mailing list >>>>>> > FreeSWITCH-dev at 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 at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at 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 at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Anthony Minessale II >>>>>> >>>>>> FreeSWITCH http://www.freeswitch.org/ >>>>>> ClueCon http://www.cluecon.com/ >>>>>> Twitter: http://twitter.com/FreeSWITCH_wire >>>>>> >>>>>> AIM: anthm >>>>>> MSN:anthony_minessale at hotmail.com >>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>>>>> IRC: irc.freenode.net #freeswitch >>>>>> >>>>>> FreeSWITCH Developer Conference >>>>>> sip:888 at conference.freeswitch.org >>>>>> googletalk:conf+888 at conference.freeswitch.org >>>>>> pstn:+19193869900 >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at 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 at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Anthony Minessale II >>>>>> >>>>>> FreeSWITCH http://www.freeswitch.org/ >>>>>> ClueCon http://www.cluecon.com/ >>>>>> Twitter: http://twitter.com/FreeSWITCH_wire >>>>>> >>>>>> AIM: anthm >>>>>> MSN:anthony_minessale at hotmail.com >>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>>>>> IRC: irc.freenode.net #freeswitch >>>>>> >>>>>> FreeSWITCH Developer Conference >>>>>> sip:888 at conference.freeswitch.org >>>>>> googletalk:conf+888 at conference.freeswitch.org >>>>>> pstn:+19193869900 >>>>>> >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at lists.freeswitch.org >>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>>>>> http://www.freeswitch.org >>>>>> >>>>>> >>>>>> !DSPAM:507e958b32763975712591! >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.com >>>>>> >>>>>> FreeSWITCH-dev mailing list >>>>>> FreeSWITCH-dev at 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 at freeswitch.org >>>>> http://www.freeswitchsolutions.com >>>>> >>>>> >>>>> >>>>> >>>>> Official FreeSWITCH Sites >>>>> http://www.freeswitch.org >>>>> http://wiki.freeswitch.org >>>>> http://www.cluecon.com >>>>> >>>>> FreeSWITCH-dev mailing list >>>>> FreeSWITCH-dev at lists.freeswitch.org >>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>>>> http://www.freeswitch.org >>>> >>>> >>>> >>>> -- >>>> Anthony Minessale II >>>> >>>> FreeSWITCH http://www.freeswitch.org/ >>>> ClueCon http://www.cluecon.com/ >>>> Twitter: http://twitter.com/FreeSWITCH_wire >>>> >>>> AIM: anthm >>>> MSN:anthony_minessale at hotmail.com >>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>>> IRC: irc.freenode.net #freeswitch >>>> >>>> FreeSWITCH Developer Conference >>>> sip:888 at conference.freeswitch.org >>>> googletalk:conf+888 at conference.freeswitch.org >>>> pstn:+19193869900 >>>> _________________________________________________________________________ >>>> Professional FreeSWITCH Consulting Services: >>>> consulting at freeswitch.org >>>> http://www.freeswitchsolutions.com >>>> >>>> >>>> >>>> >>>> Official FreeSWITCH Sites >>>> http://www.freeswitch.org >>>> http://wiki.freeswitch.org >>>> http://www.cluecon.com >>>> >>>> FreeSWITCH-dev mailing list >>>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900 >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121019/644a7ec3/attachment-0001.html From darcy at Vex.Net Sat Oct 20 19:45:32 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Sat, 20 Oct 2012 11:45:32 -0400 Subject: [Freeswitch-dev] Installing FreeSWITCH sounds on NetBSD Message-ID: <20121020114532.0d97f3ac@dilbert> I have just committed the music package for FreeSWITCH into the NetBSD pkgsrc tree. I am now working on the sounds package. I looked at the FreeBSD port (their version of our pkgsrc) and they run a sox command on the files something of like this: sox -v 0.2 -r 8000 -c 1 /tmp/ The -v option adjusts the volume. Does this seem like a reasonable thing to do in general? The default adjustment (0.2) lowers it quite a bit. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From krice at freeswitch.org Sat Oct 20 21:26:58 2012 From: krice at freeswitch.org (Ken Rice) Date: Sat, 20 Oct 2012 12:26:58 -0500 Subject: [Freeswitch-dev] Installing FreeSWITCH sounds on NetBSD In-Reply-To: <20121020114532.0d97f3ac@dilbert> Message-ID: Actually that's just cause someone doesn't like the volume they are done at... The same person also tends to overdrive stuff all the time imho On 10/20/12 10:45 AM, "D'Arcy J.M. Cain" wrote: > I have just committed the music package for FreeSWITCH into the NetBSD > pkgsrc tree. I am now working on the sounds package. > > I looked at the FreeBSD port (their version of our pkgsrc) and they run > a sox command on the files something of like this: > > sox -v 0.2 -r 8000 -c 1 /tmp/ > > The -v option adjusts the volume. Does this seem like a reasonable > thing to do in general? The default adjustment (0.2) lowers it quite a > bit. -- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch From juanito1982 at gmail.com Sun Oct 21 23:42:56 2012 From: juanito1982 at gmail.com (=?ISO-8859-1?Q?Juan_Antonio_Iba=F1ez_Santorum?=) Date: Sun, 21 Oct 2012 21:42:56 +0200 Subject: [Freeswitch-dev] Share data between modules In-Reply-To: <-4275677937441547428@unknownmsgid> References: <1FFF97C269757C458224B7C895F35F1517F486@cantor.std.visionutv.se> <8B4235E0-A2D4-4A00-8441-EA44633D5BF6@freeswitch.org> <5341F848-F716-45D7-A392-C934833A36B6@freeswitch.org> <-4275677937441547428@unknownmsgid> Message-ID: If it is a proble form FS stability I think it must be removed 2012/10/19 Michael Jerris > any objections to just removing the mod completely from tree? > > > On Oct 18, 2012, at 1:49 PM, Anthony Minessale < > anthony.minessale at gmail.com> wrote: > > I mean loading it into FS at all puts you at risk of crashing. > > ZMQ pretends to be a socket but really is a complicated series of threads > all using sockets to talk to each other. You only see one, its designed > expecting the main thread of your app to be the star of the app. The way > its used in FS loading it into a mod puts it at risk because if any thread > in FS calls fork for any reason, all of the zmq threads also fork and cause > segs. > > Doing it on the other side of ESL is safer since you are not loading the > lib into the process. > > > On Thu, Oct 18, 2012 at 12:28 PM, Jo?o Mesquita wrote: > >> Tony, >> >> If I understood you correctly, using ZMQ more extensively other than an >> event consumer will never work right but the mod as it is with the proper >> thread safety implementation would work just fine correct? >> >> What I find very debatable is that the beauty of ZMQ is implementing your >> own protocol for service based brokers and such fancy things other than >> just broadcasting messages like it is doing right now and since the >> protocol implementation is something very dependent on the application >> itself, a standard mod is questionable. The way I do it is have my own >> daemon that uses ESL to consume events and do ZMQ on the other end. Much >> like a proxy. >> >> Anyhow, just wanted to add to the discussion. >> >> Sent from my iPhone >> >> On Oct 18, 2012, at 1:14 PM, Anthony CTO >> wrote: >> >> ZMQ and FS are never going to work well.... >> >> There are many problems such as, any call to fork in FS like when it >> execs the system commands or tries to email a VM results in segs. >> >> ZMQ has a firm belief in no mutexes and sockets for threads to do >> interprocess communication. I don't have anything against that but it does >> not match the FS philosophy at all. >> >> All that aside, >> >> mod_event_zmq sends only events if you want to send data from a module >> via that, just create and fire an event. >> >> >> On Thu, Oct 18, 2012 at 9:07 AM, Jo?o Mesquita wrote: >> >>> I guess a solution would be to re queue the events again and pop on the >>> thread that owns the ZMQ context. Shouldn't be too hard although there >>> would be locking problems on the queue. >>> >>> Regards, >>> JM >>> >>> Sent from my iPhone >>> >>> On Oct 17, 2012, at 8:52 AM, Peter Olsson < >>> peter.olsson at visionutveckling.se> wrote: >>> >>> I believe the threading model in zmq is different, that it really >>> doesn?t work well together with FreeSWITCH?s threading model.**** >>> >>> ** ** >>> >>> If I?ve understood this correctly, for instance when you send a message >>> using zmq, the library takes for granted that this is always done from the >>> same thread. However, inside FS it means it might be sent from different >>> threads, since the event system inside FS has multiple threads to pop the >>> queued events.**** >>> >>> ** ** >>> >>> Tony, probably has a more correct description ? I?ve never even used zmq >>> myself :)**** >>> >>> ** ** >>> >>> /Peter**** >>> >>> ** ** >>> >>> *Fr?n:* freeswitch-dev-bounces at lists.freeswitch.org [ >>> mailto:freeswitch-dev-bounces at lists.freeswitch.org] >>> *F?r *Juan Antonio Iba?ez Santorum >>> *Skickat:* den 17 oktober 2012 13:37 >>> *Till:* freeswitch-dev at lists.freeswitch.org >>> *?mne:* Re: [Freeswitch-dev] Share data between modules**** >>> >>> ** ** >>> >>> Any idea to improve it? **** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> You should do that by firing events from your module so they are >>> delivered via mode_event_zmq.**** >>> >>> Beware zmq is unstable in FS because its a threaded app and zmq is a >>> different threading model.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 3:44 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> The idea is to get some internal data from an own module to be served >>> via mod_event_zmq.**** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> ** ** >>> >>> ** ** >>> >>> 2012/10/16 Anthony Minessale **** >>> >>> Can you provide context on which 2 modules you want to do this with?**** >>> >>> Its not a good design to allow loadable modules to require symbols from >>> each other.**** >>> >>> ** ** >>> >>> On Tue, Oct 16, 2012 at 12:48 PM, Juan Antonio Iba?ez Santorum < >>> juanito1982 at gmail.com> wrote:**** >>> >>> Do you refer to mod_hash? How can I call its API functions from another >>> module? Is it possible to save C data structures, not only stirng values? >>> **** >>> >>> ** ** >>> >>> Regards**** >>> >>> ** ** >>> >>> 2012/10/16 Mitch Capper **** >>> >>> Check out the hash api it can do exactly what you want, suggest >>> prefixing all your entries to keep it clean and avoid conflicts. >>> >>> ~Mitch**** >>> >>> >>> On Tue, Oct 16, 2012 at 8:45 AM, Juan Antonio Iba?ez Santorum >>> wrote: >>> > Hello, >>> > >>> > Is there any way to share data (as a hash) between modules? I can >>> see >>> > switch_core_set_variable() function but I think it cannot be used for >>> that >>> > purpose. >>> > >>> > Regards >>> >**** >>> >>> > >>> _________________________________________________________________________ >>> > Professional FreeSWITCH Consulting Services: >>> > consulting at freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > >>> > >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-dev mailing list >>> > FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> >>> **** >>> >>> ** ** >>> >>> -- >>> Anthony Minessale II >>> >>> FreeSWITCH http://www.freeswitch.org/ >>> ClueCon http://www.cluecon.com/ >>> Twitter: http://twitter.com/FreeSWITCH_wire >>> >>> AIM: anthm >>> MSN:anthony_minessale at hotmail.com >>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >>> IRC: irc.freenode.net #freeswitch >>> >>> FreeSWITCH Developer Conference >>> sip:888 at conference.freeswitch.org >>> googletalk:conf+888 at conference.freeswitch.org >>> pstn:+19193869900**** >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org**** >>> >>> >>> !DSPAM:507e958b32763975712591! **** >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at 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 at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-dev mailing list >>> FreeSWITCH-dev at lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >>> http://www.freeswitch.org >>> >>> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at 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 at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at 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 at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121021/464b8980/attachment-0001.html From msc at freeswitch.org Mon Oct 22 20:30:45 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 22 Oct 2012 09:30:45 -0700 Subject: [Freeswitch-dev] Installing FreeSWITCH sounds on NetBSD In-Reply-To: <20121020114532.0d97f3ac@dilbert> References: <20121020114532.0d97f3ac@dilbert> Message-ID: The files we get from GMVoices are slightly "loud" for some folks, so we run them through sox with the -v 0.2 arg and it "normalizes" them a bit. However, I wouldn't do that same trick again on the sounds files in files.freeswitch.org since they've already been normalized. If you do then you'd definitely be lowering the volume to what many would consider to be a really low level. -MC On Sat, Oct 20, 2012 at 8:45 AM, D'Arcy J.M. Cain wrote: > I have just committed the music package for FreeSWITCH into the NetBSD > pkgsrc tree. I am now working on the sounds package. > > I looked at the FreeBSD port (their version of our pkgsrc) and they run > a sox command on the files something of like this: > > sox -v 0.2 -r 8000 -c 1 /tmp/ > > The -v option adjusts the volume. Does this seem like a reasonable > thing to do in general? The default adjustment (0.2) lowers it quite a > bit. > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121022/c4036e97/attachment.html From darcy at Vex.Net Mon Oct 22 20:55:23 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Mon, 22 Oct 2012 12:55:23 -0400 Subject: [Freeswitch-dev] Installing FreeSWITCH sounds on NetBSD In-Reply-To: References: <20121020114532.0d97f3ac@dilbert> Message-ID: <20121022125523.3ba33e49@dilbert> On Mon, 22 Oct 2012 09:30:45 -0700 Michael Collins wrote: > The files we get from GMVoices are slightly "loud" for some folks, so > we run them through sox with the -v 0.2 arg and it "normalizes" them > a bit. However, I wouldn't do that same trick again on the sounds > files in files.freeswitch.org since they've already been normalized. > If you do then you'd definitely be lowering the volume to what many > would consider to be a really low level. That may explain the low sounds in the FreeBSD port then. I have finished putting the music and sounds files into NetBSD's pkgsrc tree. I am now starting on the core package. More to come. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From darcy at Vex.Net Mon Oct 22 21:08:39 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Mon, 22 Oct 2012 13:08:39 -0400 Subject: [Freeswitch-dev] Shell script equality tests and portability Message-ID: <20121022130839.5424f6b2@dilbert> I have just started creating the NetBSD FreeSWITCH package. As mentioned in an earlier post (assuming the the moderator puts these through in the same order that I sent them) I have created the music and sounds packages. Now I am working on the core package. The first issue I came up with is equality testing in some of the shell scripts. The issue is the usage of "==" instead of "=". While the former works on some shells, it is not portable. I believe that the latter is portable. Shall I submit patches? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From anthony.minessale at gmail.com Mon Oct 22 21:12:53 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 22 Oct 2012 12:12:53 -0500 Subject: [Freeswitch-dev] Shell script equality tests and portability In-Reply-To: <20121022130839.5424f6b2@dilbert> References: <20121022130839.5424f6b2@dilbert> Message-ID: yes, http://jira.freeswitch.org On Mon, Oct 22, 2012 at 12:08 PM, D'Arcy J.M. Cain wrote: > I have just started creating the NetBSD FreeSWITCH package. As > mentioned in an earlier post (assuming the the moderator puts these > through in the same order that I sent them) I have created the music > and sounds packages. Now I am working on the core package. > > The first issue I came up with is equality testing in some of the shell > scripts. The issue is the usage of "==" instead of "=". While the > former works on some shells, it is not portable. I believe that the > latter is portable. Shall I submit patches? > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121022/5584922e/attachment.html From marketing at cluecon.com Tue Oct 23 00:05:28 2012 From: marketing at cluecon.com (Michael Collins) Date: Mon, 22 Oct 2012 13:05:28 -0700 Subject: [Freeswitch-dev] FreeSWITCH Weekly News and Notes Message-ID: Hello again! Another busy week in the land of FreeSWITCH. As you know we have been doing some work on the FreeSWITCH project's infrastructure. We are happy to report that this work is essentially complete. Thank you for your patience in this process. We've experienced intermittent outages but thanks to the efforts of Brian West and Raymond Chandler these have been kept to a minimum. We also thank Ken Rice for his hard work during this time. His knowledge and experience have been invaluable. Last week we had a very interesting discussionfrom Chad Engler about his nodesl library - a connector between node.js and ESL . Chad describes himself as a Web developer learning the telephony side of things. However, we were all impressed with how much knowledge he had with using ESL given the relatively short amount of time he's been working with it. This weekwe will be looking in on some Windows-centric ways of handling real-time data and related PBX items. The following week, on October 31, we will be hearing from our friends over at Redshift Networks. They will be giving us close-up look at some of the worldwide SIP attacks that are being perpetrated against FreeSWITCH and other IP telephony servers. On a personal note I would like to thank everyone who volunteered to be a technical reviewer of the new edition of the FreeSWITCH book. I was overwhelmed with just how many people who are willing to volunteer their time. Packt Publishing will be contacting those who've been selected for this important job. This is a great community and we are all glad to be a part of it. Take care and have a great week. -- Michael S Collins ClueCon Team http://www.cluecon.com 877-7-4ACLUE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121022/bf81d29d/attachment.html From gabe at gundy.org Tue Oct 23 03:45:20 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Mon, 22 Oct 2012 17:45:20 -0600 Subject: [Freeswitch-dev] Installing FreeSWITCH sounds on NetBSD In-Reply-To: References: <20121020114532.0d97f3ac@dilbert> Message-ID: On Mon, Oct 22, 2012 at 10:30 AM, Michael Collins wrote: > The files we get from GMVoices are slightly "loud" for some folks, so we run > them through sox with the -v 0.2 arg and it "normalizes" them a bit. > However, I wouldn't do that same trick again on the sounds files in > files.freeswitch.org since they've already been normalized. If you do then > you'd definitely be lowering the volume to what many would consider to be a > really low level. FWIW, I seem to recall using this switch for normalising audio: sox --norm 'Automatically invoke the gain effect to guard against clipping and to normalise the audio.' However, it has been a while since trying and I usually fumble abound with sox args for a while before getting it right. Best, Gabe From darcy at Vex.Net Tue Oct 23 19:22:01 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Tue, 23 Oct 2012 11:22:01 -0400 Subject: [Freeswitch-dev] Roadmap Message-ID: <20121023112201.6076a096@dilbert> Is the roadmap supposed to be up to date? I checked and it says that 1.2.2 is the next version but 1.2.3 is already tarballed and on the files.freeswitch.org page. Also, I don't see any target dates. Even if it is subject to change, a best guess would be useful for planning purposes. I am working on creating the NetBSD package and it would be nice to know which version I should be targetting. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From anthony.minessale at gmail.com Tue Oct 23 21:30:32 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 23 Oct 2012 12:30:32 -0500 Subject: [Freeswitch-dev] Roadmap In-Reply-To: <20121023112201.6076a096@dilbert> References: <20121023112201.6076a096@dilbert> Message-ID: It is still not being completely used properly. On Tue, Oct 23, 2012 at 10:22 AM, D'Arcy J.M. Cain wrote: > Is the roadmap supposed to be up to date? I checked and it says that > 1.2.2 is the next version but 1.2.3 is already tarballed and on the > files.freeswitch.org page. Also, I don't see any target dates. Even > if it is subject to change, a best guess would be useful for planning > purposes. I am working on creating the NetBSD package and it would be > nice to know which version I should be targetting. > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121023/a711adc1/attachment.html From darcy at Vex.Net Tue Oct 23 22:25:55 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Tue, 23 Oct 2012 14:25:55 -0400 Subject: [Freeswitch-dev] Roadmap In-Reply-To: References: <20121023112201.6076a096@dilbert> Message-ID: <20121023142555.2c5533da@dilbert> On Tue, 23 Oct 2012 12:30:32 -0500 Anthony Minessale wrote: > It is still not being completely used properly. So I understand talking with Ken. I pointed him to this in case he wants to update the page. https://confluence.atlassian.com/display/JIRA/Managing+Versions -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From krice at freeswitch.org Tue Oct 23 23:52:42 2012 From: krice at freeswitch.org (Ken Rice) Date: Tue, 23 Oct 2012 14:52:42 -0500 Subject: [Freeswitch-dev] Roadmap In-Reply-To: <20121023112201.6076a096@dilbert> Message-ID: Hey D'Arcy, The 1.2 branch we are releasing updates as needed to address issues... 1.2.4 will be coming out shortly... Its already in the works... If you are tracking the master branch from the FreeSWITCH Git Repo you are doing the right thing... Once we have 1.2.4 ready we will merge it down to the v1.2.stable branch in git and tag it... As for the roadmap thing, thanks for talking with me about it D'Arcy. So everyone else knows, Jira auto-generates a roadmap... This is a feature we really haven't been using but as D'Arcy pointed out its there and its possible for people to refer to and wonder whats going on. So I'm going to be updating this K On 10/23/12 10:22 AM, "D'Arcy J.M. Cain" wrote: > . -- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch From gerald.weber at besharp.at Wed Oct 24 19:55:35 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Wed, 24 Oct 2012 15:55:35 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c Message-ID: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121024/6012f6d7/attachment.html From msc at freeswitch.org Wed Oct 24 20:13:10 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 24 Oct 2012 09:13:10 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Message-ID: Hello all! Today's conference call agenda is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_24 We are going to be a bit Windows-centric today - hope you don't mind. :) -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121024/44697f80/attachment.html From anthony.minessale at gmail.com Wed Oct 24 22:00:40 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 24 Oct 2012 13:00:40 -0500 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber wrote: > Hi all,**** > > ** ** > > i?m currently extending my list_users command to show the presence status > of registered sip devices.**** > > I have a snom 360 and a bria softphone here to test with, calling one from > the other shows 2 rows in sip_dialogs table so presence**** > > is basically working.**** > > ** ** > > Both phones have the ability to set the presence to, e.g. busy or meeting > or whatever.**** > > ** ** > > The only problem i have is, that there is no line in sip_presence table > when i change the presence on the phone (or using presence in)**** > > Digging through the code, i found that this is because of the if > statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204**** > > Looks like a check for multiple registrations, but how is this intended to > work with only one registration per user ?**** > > I changed the if to if (count > 0) for testing and i can see the correct > entries in sip_registrations.**** > > ** ** > > I?m not quite sure if i understand the purpose of this code so i didn?t > raise a jira.**** > > Is this a bug ? If not, does the sip_presence table only get filled when > there are more than one registration per user ?**** > > ** ** > > Thanks**** > > gw**** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121024/3af7bce1/attachment-0001.html From darcy at Vex.Net Thu Oct 25 02:39:57 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Wed, 24 Oct 2012 18:39:57 -0400 Subject: [Freeswitch-dev] Where does lrint get changed to lrintl? Message-ID: <20121024183957.04ccb3b6@dilbert> In libs/spandsp/src/spandsp/saturated.h around line 129 there is a line that calls "lrint(damp)". This generates the following error on NetBSD: libs/spandsp/src/spandsp/saturated.h:129:5: error: implicit declaration of function 'lrintl' I can't find any reference to lrintl in the FreeSWITCH sources and nothing in the NetBSD include trees that would do the substitution. Looks like FreeBSD has the same confusion: # FreeBSD 7 doesn't have lrintl, but lrint will do the trick just fine # It's quite cryptic as to why the reinplace doesn't work; there's no mention # of lrintl anywhere in any source.... .if ${OSVERSION} < 800012 BROKEN= Requires lrintl, which is not present on FreeBSD 7 .endif Anyone here have any idea where this substitution is happening? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From gerald.weber at besharp.at Thu Oct 25 10:40:29 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Thu, 25 Oct 2012 06:40:29 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: So you mean a sip packet like this ? No. Time Source Destination Protocol Length Info 74 4.780876000 192.168.20.150 192.168.20.73 SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73 Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) on interface 0 Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: Vmware_8c:00:1c (00:50:56:8c:00:1c) Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: 192.168.20.73 (192.168.20.73) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) Total Length: 1160 Identification: 0x1de8 (7656) Flags: 0x02 (Don't Fragment) Fragment offset: 0 Time to live: 128 Protocol: UDP (17) Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by "IP checksum offload"?)] Source: 192.168.20.150 (192.168.20.150) Destination: 192.168.20.73 (192.168.20.73) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060) Session Initiation Protocol Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0 Message Header Message Body eXtensible Markup Language Do not disturb This i sent from a bria3 client to fs but i dont get any entry in sip_presence because of the check in line 4204. Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Mittwoch, 24. Oktober 2012 20:01 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121025/eec87537/attachment-0001.html From anthony.minessale at gmail.com Fri Oct 26 02:45:15 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 25 Oct 2012 17:45:15 -0500 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: then enable the multiple-registrations param in your sofia-presence On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber wrote: > So you mean a sip packet like this ?**** > > ** ** > > No. Time Source Destination > Protocol Length Info**** > > 74 4.780876000 192.168.20.150 192.168.20.73 > SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73**** > > ** ** > > Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) > on interface 0**** > > Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: > Vmware_8c:00:1c (00:50:56:8c:00:1c)**** > > Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: > 192.168.20.73 (192.168.20.73)**** > > Version: 4**** > > Header length: 20 bytes**** > > Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: > Not-ECT (Not ECN-Capable Transport))**** > > Total Length: 1160**** > > Identification: 0x1de8 (7656)**** > > Flags: 0x02 (Don't Fragment)**** > > Fragment offset: 0**** > > Time to live: 128**** > > Protocol: UDP (17)**** > > Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by > "IP checksum offload"?)]**** > > Source: 192.168.20.150 (192.168.20.150)**** > > Destination: 192.168.20.73 (192.168.20.73)**** > > [Source GeoIP: Unknown]**** > > [Destination GeoIP: Unknown]**** > > User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060)**** > > Session Initiation Protocol**** > > Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0**** > > Message Header**** > > Message Body**** > > eXtensible Markup Language**** > > > > xmlns='urn:ietf:params:xml:ns:pidf'**** > > xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'**** > > xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'**** > > xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'**** > > xmlns:lt='urn:ietf:params:xml:ns:location-type'**** > > xmlns:caps='urn:ietf:params:xml:ns:pidf:caps'**** > > entity='sip:2001 at 192.168.20.73'>**** > > > id='t7301aa0d'>**** > > **** > > **** > > **** > > **** > > > id='p74c68736'>**** > > **** > > **** > > **** > > **** > > Do not disturb**** > > **** > > **** > > **** > > ** ** > > ** ** > > This i sent from a bria3 client to fs but i dont get any entry in > sip_presence because of the check in line 4204.**** > > ** ** > > ** ** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Anthony > Minessale > *Gesendet:* Mittwoch, 24. Oktober 2012 20:01 > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > ** ** > > it has to send a publish to update sip_presence using the pidf method.**** > > ** ** > > On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote:**** > > Hi all,**** > > **** > > i?m currently extending my list_users command to show the presence status > of registered sip devices.**** > > I have a snom 360 and a bria softphone here to test with, calling one from > the other shows 2 rows in sip_dialogs table so presence**** > > is basically working.**** > > **** > > Both phones have the ability to set the presence to, e.g. busy or meeting > or whatever.**** > > **** > > The only problem i have is, that there is no line in sip_presence table > when i change the presence on the phone (or using presence in)**** > > Digging through the code, i found that this is because of the if > statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204**** > > Looks like a check for multiple registrations, but how is this intended to > work with only one registration per user ?**** > > I changed the if to if (count > 0) for testing and i can see the correct > entries in sip_registrations.**** > > **** > > I?m not quite sure if i understand the purpose of this code so i didn?t > raise a jira.**** > > Is this a bug ? If not, does the sip_presence table only get filled when > there are more than one registration per user ?**** > > **** > > Thanks**** > > gw**** > > **** > > **** > > **** > > **** > > **** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121025/9acb9f96/attachment-0001.html From anthony.minessale at gmail.com Fri Oct 26 02:46:05 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 25 Oct 2012 17:46:05 -0500 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: err in sofia profile. On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale < anthony.minessale at gmail.com> wrote: > then enable the multiple-registrations param in your sofia-presence > > > On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber wrote: > >> So you mean a sip packet like this ?**** >> >> ** ** >> >> No. Time Source Destination >> Protocol Length Info**** >> >> 74 4.780876000 192.168.20.150 192.168.20.73 >> SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73**** >> >> ** ** >> >> Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) >> on interface 0**** >> >> Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: >> Vmware_8c:00:1c (00:50:56:8c:00:1c)**** >> >> Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: >> 192.168.20.73 (192.168.20.73)**** >> >> Version: 4**** >> >> Header length: 20 bytes**** >> >> Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: >> Not-ECT (Not ECN-Capable Transport))**** >> >> Total Length: 1160**** >> >> Identification: 0x1de8 (7656)**** >> >> Flags: 0x02 (Don't Fragment)**** >> >> Fragment offset: 0**** >> >> Time to live: 128**** >> >> Protocol: UDP (17)**** >> >> Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused >> by "IP checksum offload"?)]**** >> >> Source: 192.168.20.150 (192.168.20.150)**** >> >> Destination: 192.168.20.73 (192.168.20.73)**** >> >> [Source GeoIP: Unknown]**** >> >> [Destination GeoIP: Unknown]**** >> >> User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060)**** >> >> Session Initiation Protocol**** >> >> Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0**** >> >> Message Header**** >> >> Message Body**** >> >> eXtensible Markup Language**** >> >> > >> > >> xmlns='urn:ietf:params:xml:ns:pidf'**** >> >> xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'**** >> >> xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'**** >> >> xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'**** >> >> xmlns:lt='urn:ietf:params:xml:ns:location-type'**** >> >> xmlns:caps='urn:ietf:params:xml:ns:pidf:caps'**** >> >> entity='sip:2001 at 192.168.20.73'>**** >> >> > >> id='t7301aa0d'>**** >> >> **** >> >> **** >> >> **** >> >> **** >> >> > >> id='p74c68736'>**** >> >> **** >> >> **** >> >> **** >> >> **** >> >> Do not disturb**** >> >> **** >> >> **** >> >> **** >> >> ** ** >> >> ** ** >> >> This i sent from a bria3 client to fs but i dont get any entry in >> sip_presence because of the check in line 4204.**** >> >> ** ** >> >> ** ** >> >> *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: >> freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Anthony >> Minessale >> *Gesendet:* Mittwoch, 24. Oktober 2012 20:01 >> *An:* freeswitch-dev at lists.freeswitch.org >> *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** >> >> ** ** >> >> it has to send a publish to update sip_presence using the pidf method.*** >> * >> >> ** ** >> >> On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber >> wrote:**** >> >> Hi all,**** >> >> **** >> >> i?m currently extending my list_users command to show the presence status >> of registered sip devices.**** >> >> I have a snom 360 and a bria softphone here to test with, calling one >> from the other shows 2 rows in sip_dialogs table so presence**** >> >> is basically working.**** >> >> **** >> >> Both phones have the ability to set the presence to, e.g. busy or meeting >> or whatever.**** >> >> **** >> >> The only problem i have is, that there is no line in sip_presence table >> when i change the presence on the phone (or using presence in)**** >> >> Digging through the code, i found that this is because of the if >> statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204**** >> >> Looks like a check for multiple registrations, but how is this intended >> to work with only one registration per user ?**** >> >> I changed the if to if (count > 0) for testing and i can see the correct >> entries in sip_registrations.**** >> >> **** >> >> I?m not quite sure if i understand the purpose of this code so i didn?t >> raise a jira.**** >> >> Is this a bug ? If not, does the sip_presence table only get filled when >> there are more than one registration per user ?**** >> >> **** >> >> Thanks**** >> >> gw**** >> >> **** >> >> **** >> >> **** >> >> **** >> >> **** >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org**** >> >> >> >> **** >> >> ** ** >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale at hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888 at conference.freeswitch.org >> googletalk:conf+888 at conference.freeswitch.org >> pstn:+19193869900**** >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-dev mailing list >> FreeSWITCH-dev at lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev >> http://www.freeswitch.org >> >> > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900 > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121025/a185828c/attachment-0001.html From anthony.minessale at gmail.com Fri Oct 26 02:47:52 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 25 Oct 2012 17:47:52 -0500 Subject: [Freeswitch-dev] Where does lrint get changed to lrintl? In-Reply-To: <20121024183957.04ccb3b6@dilbert> References: <20121024183957.04ccb3b6@dilbert> Message-ID: You should probably have mentioned spandsp in the header of your email to get coppice's attention. On Wed, Oct 24, 2012 at 5:39 PM, D'Arcy J.M. Cain wrote: > In libs/spandsp/src/spandsp/saturated.h around line 129 there is a line > that calls "lrint(damp)". This generates the following error on NetBSD: > > > libs/spandsp/src/spandsp/saturated.h:129:5: error: implicit declaration > of function 'lrintl' > > I can't find any reference to lrintl in the FreeSWITCH sources and > nothing in the NetBSD include trees that would do the substitution. > Looks like FreeBSD has the same confusion: > > # FreeBSD 7 doesn't have lrintl, but lrint will do the trick just fine > # It's quite cryptic as to why the reinplace doesn't work; there's no > mention # of lrintl anywhere in any source.... > .if ${OSVERSION} < 800012 > BROKEN= Requires lrintl, which is not present on FreeBSD 7 > .endif > > Anyone here have any idea where this substitution is happening? > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121025/34a83293/attachment.html From darcy at Vex.Net Fri Oct 26 07:20:52 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Thu, 25 Oct 2012 23:20:52 -0400 Subject: [Freeswitch-dev] spandsp - Where does lrint get changed to lrintl? In-Reply-To: References: <20121024183957.04ccb3b6@dilbert> Message-ID: <20121025232052.06b7bb62@dilbert> On Thu, 25 Oct 2012 17:47:52 -0500 Anthony Minessale wrote: > You should probably have mentioned spandsp in the header of your > email to get coppice's attention. OK but I am not sure it is directly related to spandsp. I have also asked on the NetBSD list as well as creating a PR ticket to add the function to NetBSD. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47122 -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From krice at freeswitch.org Fri Oct 26 07:54:37 2012 From: krice at freeswitch.org (Ken Rice) Date: Thu, 25 Oct 2012 23:54:37 -0400 Subject: [Freeswitch-dev] spandsp - Where does lrint get changed to lrintl? In-Reply-To: <20121025232052.06b7bb62@dilbert> References: <20121024183957.04ccb3b6@dilbert> <20121025232052.06b7bb62@dilbert> Message-ID: <34140E59-76D5-4A66-AA02-3F6E5B77A880@freeswitch.org> you shouldnt be installing spandsp via its package... spandsp is included with freeswitch and we require the version that is infreeswitch its ahead of the "packaged" versions as the author commits drectly to freeswitch Ken Sent from my iPad On Oct 25, 2012, at 11:20 PM, "D'Arcy J.M. Cain" wrote: > On Thu, 25 Oct 2012 17:47:52 -0500 > Anthony Minessale wrote: >> You should probably have mentioned spandsp in the header of your >> email to get coppice's attention. > > OK but I am not sure it is directly related to spandsp. I have also > asked on the NetBSD list as well as creating a PR ticket to add the > function to NetBSD. > > http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47122 > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org From gerald.weber at besharp.at Fri Oct 26 11:35:37 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Fri, 26 Oct 2012 07:35:37 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: I had that alread set in sip_profiles/internal.xml together with these values: Still no rows in sip_presence Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 00:46 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c err in sofia profile. On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale > wrote: then enable the multiple-registrations param in your sofia-presence On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote: So you mean a sip packet like this ? No. Time Source Destination Protocol Length Info 74 4.780876000 192.168.20.150 192.168.20.73 SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73 Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) on interface 0 Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: Vmware_8c:00:1c (00:50:56:8c:00:1c) Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: 192.168.20.73 (192.168.20.73) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) Total Length: 1160 Identification: 0x1de8 (7656) Flags: 0x02 (Don't Fragment) Fragment offset: 0 Time to live: 128 Protocol: UDP (17) Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by "IP checksum offload"?)] Source: 192.168.20.150 (192.168.20.150) Destination: 192.168.20.73 (192.168.20.73) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060) Session Initiation Protocol Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0 Message Header Message Body eXtensible Markup Language '> Do not disturb This i sent from a bria3 client to fs but i dont get any entry in sip_presence because of the check in line 4204. Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Mittwoch, 24. Oktober 2012 20:01 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121026/f6cb03a5/attachment-0001.html From gerald.weber at besharp.at Fri Oct 26 12:21:22 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Fri, 26 Oct 2012 08:21:22 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: I set presence debug to 10 and posted the output to pastebin: http://pastebin.freeswitch.com/20131 Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Gerald Weber Gesendet: Freitag, 26. Oktober 2012 09:36 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c I had that alread set in sip_profiles/internal.xml together with these values: Still no rows in sip_presence Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 00:46 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c err in sofia profile. On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale > wrote: then enable the multiple-registrations param in your sofia-presence On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote: So you mean a sip packet like this ? No. Time Source Destination Protocol Length Info 74 4.780876000 192.168.20.150 192.168.20.73 SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73 Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) on interface 0 Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: Vmware_8c:00:1c (00:50:56:8c:00:1c) Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: 192.168.20.73 (192.168.20.73) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) Total Length: 1160 Identification: 0x1de8 (7656) Flags: 0x02 (Don't Fragment) Fragment offset: 0 Time to live: 128 Protocol: UDP (17) Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by "IP checksum offload"?)] Source: 192.168.20.150 (192.168.20.150) Destination: 192.168.20.73 (192.168.20.73) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060) Session Initiation Protocol Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0 Message Header Message Body eXtensible Markup Language '> Do not disturb This i sent from a bria3 client to fs but i dont get any entry in sip_presence because of the check in line 4204. Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Mittwoch, 24. Oktober 2012 20:01 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121026/49b6ac9e/attachment-0001.html From darcy at Vex.Net Fri Oct 26 16:51:25 2012 From: darcy at Vex.Net (D'Arcy J.M. Cain) Date: Fri, 26 Oct 2012 08:51:25 -0400 Subject: [Freeswitch-dev] spandsp - Where does lrint get changed to lrintl? In-Reply-To: <34140E59-76D5-4A66-AA02-3F6E5B77A880@freeswitch.org> References: <20121024183957.04ccb3b6@dilbert> <20121025232052.06b7bb62@dilbert> <34140E59-76D5-4A66-AA02-3F6E5B77A880@freeswitch.org> Message-ID: <20121026085125.134ed1e5@dilbert> On Thu, 25 Oct 2012 23:54:37 -0400 Ken Rice wrote: > you shouldnt be installing spandsp via its package... spandsp is > included with freeswitch and we require the version that is > infreeswitch its ahead of the "packaged" versions as the author > commits drectly to freeswitch I'm not. The problem is in the spandsp code in FreeSWITCH. It calls lrint which somehow gets changed to a call to lrintl which NetBSD does not have. The fix is to either not do the redefinition in FreeSWITCH or else add the redefined function to NetBSD. Either should be OK. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net From anthony.minessale at gmail.com Fri Oct 26 21:33:31 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 26 Oct 2012 12:33:31 -0500 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: Well add some debug lines and try to see why it doesn't work. Probably the xml is not the same as the other supported phones or something silly. Just put log printf all over the place in the function to see where it skips. On Fri, Oct 26, 2012 at 3:21 AM, Gerald Weber wrote: > I set presence debug to 10 and posted the output to pastebin:**** > > ** ** > > http://pastebin.freeswitch.com/20131**** > > ** ** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Gerald Weber > *Gesendet:* Freitag, 26. Oktober 2012 09:36 > > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > ** ** > > I had that alread set in sip_profiles/internal.xml together with these > values:**** > > ** ** > > **** > > **** > > **** > > **** > > **** > > **** > > **** > > ** ** > > Still no rows in sip_presence**** > > ** ** > > ** ** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [ > mailto:freeswitch-dev-bounces at lists.freeswitch.org] > *Im Auftrag von *Anthony Minessale > *Gesendet:* Freitag, 26. Oktober 2012 00:46 > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > ** ** > > err in sofia profile.**** > > ** ** > > **** > > On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale < > anthony.minessale at gmail.com> wrote:**** > > then enable the multiple-registrations param in your sofia-presence**** > > ** ** > > On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote:**** > > So you mean a sip packet like this ?**** > > **** > > No. Time Source Destination > Protocol Length Info**** > > 74 4.780876000 192.168.20.150 192.168.20.73 > SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73**** > > **** > > Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) > on interface 0**** > > Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: > Vmware_8c:00:1c (00:50:56:8c:00:1c)**** > > Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: > 192.168.20.73 (192.168.20.73)**** > > Version: 4**** > > Header length: 20 bytes**** > > Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: > Not-ECT (Not ECN-Capable Transport))**** > > Total Length: 1160**** > > Identification: 0x1de8 (7656)**** > > Flags: 0x02 (Don't Fragment)**** > > Fragment offset: 0**** > > Time to live: 128**** > > Protocol: UDP (17)**** > > Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by > "IP checksum offload"?)]**** > > Source: 192.168.20.150 (192.168.20.150)**** > > Destination: 192.168.20.73 (192.168.20.73)**** > > [Source GeoIP: Unknown]**** > > [Destination GeoIP: Unknown]**** > > User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060)**** > > Session Initiation Protocol**** > > Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0**** > > Message Header**** > > Message Body**** > > eXtensible Markup Language**** > > > > xmlns='urn:ietf:params:xml:ns:pidf'**** > > xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'**** > > xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'**** > > xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'**** > > xmlns:lt='urn:ietf:params:xml:ns:location-type'**** > > xmlns:caps='urn:ietf:params:xml:ns:pidf:caps'**** > > entity='sip:2001 at 192.168.20.73'>**** > > > id='t7301aa0d'>**** > > **** > > **** > > **** > > **** > > > id='p74c68736'>**** > > **** > > **** > > **** > > **** > > Do not disturb**** > > **** > > **** > > **** > > **** > > **** > > This i sent from a bria3 client to fs but i dont get any entry in > sip_presence because of the check in line 4204.**** > > **** > > **** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Anthony > Minessale > *Gesendet:* Mittwoch, 24. Oktober 2012 20:01 > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > **** > > it has to send a publish to update sip_presence using the pidf method.**** > > **** > > On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote:**** > > Hi all,**** > > **** > > i?m currently extending my list_users command to show the presence status > of registered sip devices.**** > > I have a snom 360 and a bria softphone here to test with, calling one from > the other shows 2 rows in sip_dialogs table so presence**** > > is basically working.**** > > **** > > Both phones have the ability to set the presence to, e.g. busy or meeting > or whatever.**** > > **** > > The only problem i have is, that there is no line in sip_presence table > when i change the presence on the phone (or using presence in)**** > > Digging through the code, i found that this is because of the if > statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204**** > > Looks like a check for multiple registrations, but how is this intended to > work with only one registration per user ?**** > > I changed the if to if (count > 0) for testing and i can see the correct > entries in sip_registrations.**** > > **** > > I?m not quite sure if i understand the purpose of this code so i didn?t > raise a jira.**** > > Is this a bug ? If not, does the sip_presence table only get filled when > there are more than one registration per user ?**** > > **** > > Thanks**** > > gw**** > > **** > > **** > > **** > > **** > > **** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > **** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121026/f5849587/attachment-0001.html From mike at jerris.com Fri Oct 26 22:35:50 2012 From: mike at jerris.com (Michael Jerris) Date: Fri, 26 Oct 2012 14:35:50 -0400 Subject: [Freeswitch-dev] spandsp - Where does lrint get changed to lrintl? In-Reply-To: <20121026085125.134ed1e5@dilbert> References: <20121024183957.04ccb3b6@dilbert> <20121025232052.06b7bb62@dilbert> <34140E59-76D5-4A66-AA02-3F6E5B77A880@freeswitch.org> <20121026085125.134ed1e5@dilbert> Message-ID: <273C2CAE-FB51-4B27-AD23-F429E6726C45@jerris.com> >:git grep -n lrintl no results. This must be coming from netbsd headers somewhere. Did you get any response from netbsd devs? If you need help digging and can get me access to a box remotely I am happy to take a look. Mike On Oct 26, 2012, at 8:51 AM, D'Arcy J.M. Cain wrote: > On Thu, 25 Oct 2012 23:54:37 -0400 > Ken Rice wrote: >> you shouldnt be installing spandsp via its package... spandsp is >> included with freeswitch and we require the version that is >> infreeswitch its ahead of the "packaged" versions as the author >> commits drectly to freeswitch > > I'm not. The problem is in the spandsp code in FreeSWITCH. It calls > lrint which somehow gets changed to a call to lrintl which NetBSD does > not have. The fix is to either not do the redefinition in FreeSWITCH > or else add the redefined function to NetBSD. Either should be OK. > > -- > D'Arcy J.M. Cain > System Administrator, Vex.Net > http://www.Vex.Net/ IM:darcy at Vex.Net From gerald.weber at besharp.at Sat Oct 27 13:11:14 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Sat, 27 Oct 2012 09:11:14 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: It skips exactly at line 4213 in sofia_presence.c .. if (count != 1) { .. count is initialized with 1 and never overwritten because the check in line 4204 ... if (sofia_test_pflag(profile, PFLAG_MULTIREG) && !open) { ... always evaluates to false because var open is initialized to 1 and never overwritten after the init. This seems like a bug or is it intentional ? However, looking at the code brings me to one question: Is the table sip_presence intended to be filled when only one phone registred to one user changes its presence (so no multi registration is used) ? Thanks gw Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 19:34 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c Well add some debug lines and try to see why it doesn't work. Probably the xml is not the same as the other supported phones or something silly. Just put log printf all over the place in the function to see where it skips. On Fri, Oct 26, 2012 at 3:21 AM, Gerald Weber > wrote: I set presence debug to 10 and posted the output to pastebin: http://pastebin.freeswitch.com/20131 Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Gerald Weber Gesendet: Freitag, 26. Oktober 2012 09:36 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c I had that alread set in sip_profiles/internal.xml together with these values: Still no rows in sip_presence Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 00:46 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c err in sofia profile. On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale > wrote: then enable the multiple-registrations param in your sofia-presence On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote: So you mean a sip packet like this ? No. Time Source Destination Protocol Length Info 74 4.780876000 192.168.20.150 192.168.20.73 SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73 Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) on interface 0 Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: Vmware_8c:00:1c (00:50:56:8c:00:1c) Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: 192.168.20.73 (192.168.20.73) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) Total Length: 1160 Identification: 0x1de8 (7656) Flags: 0x02 (Don't Fragment) Fragment offset: 0 Time to live: 128 Protocol: UDP (17) Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by "IP checksum offload"?)] Source: 192.168.20.150 (192.168.20.150) Destination: 192.168.20.73 (192.168.20.73) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060) Session Initiation Protocol Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0 Message Header Message Body eXtensible Markup Language '> Do not disturb This i sent from a bria3 client to fs but i dont get any entry in sip_presence because of the check in line 4204. Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Mittwoch, 24. Oktober 2012 20:01 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121027/509dbe56/attachment-0001.html From anthony.minessale at gmail.com Sat Oct 27 23:53:20 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Sat, 27 Oct 2012 14:53:20 -0500 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: The intention is to not broadcast when they send "offline" try latest HEAD, it should work now. NEXT TIME USE JIRA. Its very hard to track issues on this busy mailing list..... open does seem to have been factored out and alwas On Sat, Oct 27, 2012 at 4:11 AM, Gerald Weber wrote: > It skips exactly at line 4213 in sofia_presence.c**** > > .. if (count != 1) { ..**** > > ** ** > > count is initialized with 1 and never overwritten because the check in > line 4204 **** > > ? if (sofia_test_pflag(profile, PFLAG_MULTIREG) && !open) { ?**** > > always evaluates to false because var open is initialized to 1 and never > overwritten after the init.**** > > This seems like a bug or is it intentional ?**** > > ** ** > > However, looking at the code brings me to one question:**** > > Is the table sip_presence intended to be filled when only one phone > registred to one user changes its presence (so no multi registration is > used) ?**** > > ** ** > > Thanks**** > > gw**** > > ** ** > > ** ** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Anthony > Minessale > *Gesendet:* Freitag, 26. Oktober 2012 19:34 > > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > ** ** > > Well add some debug lines and try to see why it doesn't work. Probably > the xml is not the same as the other supported phones or something silly. > Just put log printf all over the place in the function to see where it > skips.**** > > ** ** > > On Fri, Oct 26, 2012 at 3:21 AM, Gerald Weber > wrote:**** > > I set presence debug to 10 and posted the output to pastebin:**** > > **** > > http://pastebin.freeswitch.com/20131**** > > **** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Gerald Weber > *Gesendet:* Freitag, 26. Oktober 2012 09:36**** > > > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > **** > > I had that alread set in sip_profiles/internal.xml together with these > values:**** > > **** > > **** > > **** > > **** > > **** > > **** > > **** > > **** > > **** > > Still no rows in sip_presence**** > > **** > > **** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [ > mailto:freeswitch-dev-bounces at lists.freeswitch.org] > *Im Auftrag von *Anthony Minessale > *Gesendet:* Freitag, 26. Oktober 2012 00:46 > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > **** > > err in sofia profile.**** > > **** > > **** > > On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale < > anthony.minessale at gmail.com> wrote:**** > > then enable the multiple-registrations param in your sofia-presence**** > > **** > > On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote:**** > > So you mean a sip packet like this ?**** > > **** > > No. Time Source Destination > Protocol Length Info**** > > 74 4.780876000 192.168.20.150 192.168.20.73 > SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73**** > > **** > > Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) > on interface 0**** > > Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: > Vmware_8c:00:1c (00:50:56:8c:00:1c)**** > > Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: > 192.168.20.73 (192.168.20.73)**** > > Version: 4**** > > Header length: 20 bytes**** > > Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: > Not-ECT (Not ECN-Capable Transport))**** > > Total Length: 1160**** > > Identification: 0x1de8 (7656)**** > > Flags: 0x02 (Don't Fragment)**** > > Fragment offset: 0**** > > Time to live: 128**** > > Protocol: UDP (17)**** > > Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by > "IP checksum offload"?)]**** > > Source: 192.168.20.150 (192.168.20.150)**** > > Destination: 192.168.20.73 (192.168.20.73)**** > > [Source GeoIP: Unknown]**** > > [Destination GeoIP: Unknown]**** > > User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060)**** > > Session Initiation Protocol**** > > Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0**** > > Message Header**** > > Message Body**** > > eXtensible Markup Language**** > > > > xmlns='urn:ietf:params:xml:ns:pidf'**** > > xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'**** > > xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'**** > > xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'**** > > xmlns:lt='urn:ietf:params:xml:ns:location-type'**** > > xmlns:caps='urn:ietf:params:xml:ns:pidf:caps'**** > > entity='sip:2001 at 192.168.20.73'>**** > > > id='t7301aa0d'>**** > > **** > > **** > > **** > > **** > > > id='p74c68736'>**** > > **** > > **** > > **** > > **** > > Do not disturb**** > > **** > > **** > > **** > > **** > > **** > > This i sent from a bria3 client to fs but i dont get any entry in > sip_presence because of the check in line 4204.**** > > **** > > **** > > *Von:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *Im Auftrag von *Anthony > Minessale > *Gesendet:* Mittwoch, 24. Oktober 2012 20:01 > *An:* freeswitch-dev at lists.freeswitch.org > *Betreff:* Re: [Freeswitch-dev] Question about sofia_presence.c**** > > **** > > it has to send a publish to update sip_presence using the pidf method.**** > > **** > > On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote:**** > > Hi all,**** > > **** > > i?m currently extending my list_users command to show the presence status > of registered sip devices.**** > > I have a snom 360 and a bria softphone here to test with, calling one from > the other shows 2 rows in sip_dialogs table so presence**** > > is basically working.**** > > **** > > Both phones have the ability to set the presence to, e.g. busy or meeting > or whatever.**** > > **** > > The only problem i have is, that there is no line in sip_presence table > when i change the presence on the phone (or using presence in)**** > > Digging through the code, i found that this is because of the if > statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204**** > > Looks like a check for multiple registrations, but how is this intended to > work with only one registration per user ?**** > > I changed the if to if (count > 0) for testing and i can see the correct > entries in sip_registrations.**** > > **** > > I?m not quite sure if i understand the purpose of this code so i didn?t > raise a jira.**** > > Is this a bug ? If not, does the sip_presence table only get filled when > there are more than one registration per user ?**** > > **** > > Thanks**** > > gw**** > > **** > > **** > > **** > > **** > > **** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > **** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > **** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > > **** > > **** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org**** > > > > **** > > ** ** > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale at hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org > googletalk:conf+888 at conference.freeswitch.org > pstn:+19193869900**** > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121027/d80acb81/attachment-0001.html From georgediam at gmail.com Mon Oct 29 04:38:42 2012 From: georgediam at gmail.com (George Diamantopoulos) Date: Mon, 29 Oct 2012 03:38:42 +0200 Subject: [Freeswitch-dev] Freeswitch constantly crashing when tapping using wanpipe+patched libpri+freetdm+ftmod_pritap Message-ID: Hello all, I've been trying to configure freeswitch for tapping a PRI line using freetdm's pritap module. It seems to be working fine (apart from a couple of warnings/errors in the console), but every a few minutes it crashes. Here's the backtrace and the log file grepped around ERRs: https://gist.github.com/3970908 I hope it's meaningful. I don't have much experience with getting backtraces... Freeswitch was compiled from git sources (master) on Oct 28th. Wanpipe version is 3.5.28. Libpri version is moy's patched 1.4.10 for passive tapping, acquired from digium's svn. OS is Gentoo amd64 stable. To install freeswitch, I used the overlay the wiki suggests adding with layman. I tweaked the ebuild a little to ensure --with-pritap is always passed in my local overlay. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121029/0f5c47b7/attachment.html From mike at jerris.com Mon Oct 29 15:22:11 2012 From: mike at jerris.com (Michael Jerris) Date: Mon, 29 Oct 2012 08:22:11 -0400 Subject: [Freeswitch-dev] Freeswitch constantly crashing when tapping using wanpipe+patched libpri+freetdm+ftmod_pritap In-Reply-To: References: Message-ID: Please create a bug on this at http://jira.freeswitch.org. I suspect moy will want to take a look at this. Mike On Oct 28, 2012, at 9:38 PM, George Diamantopoulos wrote: > Hello all, > > I've been trying to configure freeswitch for tapping a PRI line using freetdm's pritap module. It seems to be working fine (apart from a couple of warnings/errors in the console), but every a few minutes it crashes. Here's the backtrace and the log file grepped around ERRs: > > https://gist.github.com/3970908 > > I hope it's meaningful. I don't have much experience with getting backtraces... > > Freeswitch was compiled from git sources (master) on Oct 28th. Wanpipe version is 3.5.28. Libpri version is moy's patched 1.4.10 for passive tapping, acquired from digium's svn. OS is Gentoo amd64 stable. To install freeswitch, I used the overlay the wiki suggests adding with layman. I tweaked the ebuild a little to ensure --with-pritap is always passed in my local overlay. > > Thanks. > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121029/2ec4ab25/attachment.html From gerald.weber at besharp.at Mon Oct 29 21:21:01 2012 From: gerald.weber at besharp.at (Gerald Weber) Date: Mon, 29 Oct 2012 18:21:01 +0000 Subject: [Freeswitch-dev] Question about sofia_presence.c In-Reply-To: References: Message-ID: Hi; Thanks for looking at it, unfortunately I had no time to test it yet. And sorry for the jira thing, I'm around here long enough so I should have known that... :/ Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Samstag, 27. Oktober 2012 21:53 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c The intention is to not broadcast when they send "offline" try latest HEAD, it should work now. NEXT TIME USE JIRA. Its very hard to track issues on this busy mailing list..... open does seem to have been factored out and alwas On Sat, Oct 27, 2012 at 4:11 AM, Gerald Weber > wrote: It skips exactly at line 4213 in sofia_presence.c .. if (count != 1) { .. count is initialized with 1 and never overwritten because the check in line 4204 ... if (sofia_test_pflag(profile, PFLAG_MULTIREG) && !open) { ... always evaluates to false because var open is initialized to 1 and never overwritten after the init. This seems like a bug or is it intentional ? However, looking at the code brings me to one question: Is the table sip_presence intended to be filled when only one phone registred to one user changes its presence (so no multi registration is used) ? Thanks gw Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 19:34 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c Well add some debug lines and try to see why it doesn't work. Probably the xml is not the same as the other supported phones or something silly. Just put log printf all over the place in the function to see where it skips. On Fri, Oct 26, 2012 at 3:21 AM, Gerald Weber > wrote: I set presence debug to 10 and posted the output to pastebin: http://pastebin.freeswitch.com/20131 Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Gerald Weber Gesendet: Freitag, 26. Oktober 2012 09:36 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c I had that alread set in sip_profiles/internal.xml together with these values: Still no rows in sip_presence Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Freitag, 26. Oktober 2012 00:46 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c err in sofia profile. On Thu, Oct 25, 2012 at 5:45 PM, Anthony Minessale > wrote: then enable the multiple-registrations param in your sofia-presence On Thu, Oct 25, 2012 at 1:40 AM, Gerald Weber > wrote: So you mean a sip packet like this ? No. Time Source Destination Protocol Length Info 74 4.780876000 192.168.20.150 192.168.20.73 SIP/XML 1174 Request: PUBLISH sip:2001 at 192.168.20.73 Frame 74: 1174 bytes on wire (9392 bits), 1174 bytes captured (9392 bits) on interface 0 Ethernet II, Src: HewlettP_33:a8:77 (e8:39:35:33:a8:77), Dst: Vmware_8c:00:1c (00:50:56:8c:00:1c) Internet Protocol Version 4, Src: 192.168.20.150 (192.168.20.150), Dst: 192.168.20.73 (192.168.20.73) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) Total Length: 1160 Identification: 0x1de8 (7656) Flags: 0x02 (Don't Fragment) Fragment offset: 0 Time to live: 128 Protocol: UDP (17) Header checksum: 0x0000 [incorrect, should be 0x2e4d (may be caused by "IP checksum offload"?)] Source: 192.168.20.150 (192.168.20.150) Destination: 192.168.20.73 (192.168.20.73) [Source GeoIP: Unknown] [Destination GeoIP: Unknown] User Datagram Protocol, Src Port: 16066 (16066), Dst Port: sip (5060) Session Initiation Protocol Request-Line: PUBLISH sip:2001 at 192.168.20.73 SIP/2.0 Message Header Message Body eXtensible Markup Language '> Do not disturb This i sent from a bria3 client to fs but i dont get any entry in sip_presence because of the check in line 4204. Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Anthony Minessale Gesendet: Mittwoch, 24. Oktober 2012 20:01 An: freeswitch-dev at lists.freeswitch.org Betreff: Re: [Freeswitch-dev] Question about sofia_presence.c it has to send a publish to update sip_presence using the pidf method. On Wed, Oct 24, 2012 at 10:55 AM, Gerald Weber > wrote: Hi all, i'm currently extending my list_users command to show the presence status of registered sip devices. I have a snom 360 and a bria softphone here to test with, calling one from the other shows 2 rows in sip_dialogs table so presence is basically working. Both phones have the ability to set the presence to, e.g. busy or meeting or whatever. The only problem i have is, that there is no line in sip_presence table when i change the presence on the phone (or using presence in) Digging through the code, i found that this is because of the if statement in src/mod/endpoints/mod_sofia/sofia_presence.c line 4204 Looks like a check for multiple registrations, but how is this intended to work with only one registration per user ? I changed the if to if (count > 0) for testing and i can see the correct entries in sip_registrations. I'm not quite sure if i understand the purpose of this code so i didn't raise a jira. Is this a bug ? If not, does the sip_presence table only get filled when there are more than one registration per user ? Thanks gw _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev at lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121029/a623f676/attachment-0001.html From richard.screene at netdev.co.uk Wed Oct 31 15:07:18 2012 From: richard.screene at netdev.co.uk (Richard Screene) Date: Wed, 31 Oct 2012 12:07:18 +0000 Subject: [Freeswitch-dev] mod_dingaling times out connection after 30 seconds Message-ID: <39BDE9D6-6A71-42F0-90D8-EAC7F36BEEE8@netdev.co.uk> Hello, The TCP connection from mod_dingaling times out after 30 seconds and is terminated. Can you tell me what the reason for this behaviour is? Can this behaviour be put behind a configuration flag or something? As a side issue, this disconnection means that ~2 hour keep alive timer on the same connection is never invoked!!! Regards, Richard From openser at yeah.net Wed Oct 31 17:44:52 2012 From: openser at yeah.net (openser) Date: Wed, 31 Oct 2012 22:44:52 +0800 (CST) Subject: [Freeswitch-dev] freeswitch as sbc , upper register how Message-ID: hi guys, I know freeswitch can configure to be a sbc, but for one feature, the upper register , i do not know how to configure? this is a common feature most sbc support, is freeswitch support this ? or if does not support, how can we achive this ? any suggest ? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121031/9b477152/attachment.html From msc at freeswitch.org Wed Oct 31 18:20:36 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 31 Oct 2012 08:20:36 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today Message-ID: Hello All! On today's call we are happy to have Amitava Mukherjee from Redshift Networks. The folks at Redshift are experts when it comes to diagnosing and mitigating SIP attacks. We look forward to hearing from Amitava about the various threats that are occurring around the world. Please join us at 1PM Eastern, 10AM Pacific: http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_31 Talk to you soon! -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121031/313cdbbc/attachment.html From djbinter at gmail.com Wed Oct 31 18:27:04 2012 From: djbinter at gmail.com (DJB International) Date: Wed, 31 Oct 2012 08:27:04 -0700 Subject: [Freeswitch-dev] freeswitch as sbc , upper register how In-Reply-To: References: Message-ID: If you are talking about mirror proxy function, then I don't think it can be done since FreeSWITCH is a B2BUA, not a proxy. -djbinter On Wed, Oct 31, 2012 at 7:44 AM, openser wrote: > hi guys, > > I know freeswitch can configure to be a sbc, but for one feature, the > upper register , i do not know how to configure? this is a common feature > most sbc support, is freeswitch support this ? or if does not support, how > can we achive this ? any suggest ? > > thanks. > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121031/28aa280f/attachment.html From yiftah at choochee.com Wed Oct 31 22:04:48 2012 From: yiftah at choochee.com (Yiftach Golan) Date: Wed, 31 Oct 2012 12:04:48 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today In-Reply-To: References: Message-ID: Hi Michael, I was attending in today's conference it was very interesting Would you be interesting in a number in Germany for the conference? (for free, a small donation from our company) I can just redirect the number to : sip:888 at conference.freeswitch.org Any other countries you are interested in ? Thanks, Yiftach. On Wed, Oct 31, 2012 at 8:20 AM, Michael Collins wrote: > Hello All! > > On today's call we are happy to have Amitava Mukherjee from Redshift > Networks. The folks at Redshift are experts when it comes to diagnosing and > mitigating SIP attacks. We look forward to hearing from Amitava about the > various threats that are occurring around the world. Please join us at 1PM > Eastern, 10AM Pacific: > > http://wiki.freeswitch.org/wiki/FS_weekly_2012_10_31 > > Talk to you soon! > > -- > Michael S Collins > Twitter: @mercutioviz > http://www.FreeSWITCH.org > http://www.ClueCon.com > http://www.OSTAG.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20121031/a07b3d1e/attachment-0001.html