Re: [Freeswitch-users] macros for performing repeated dialplan actions?
On Oct 15, 2009, at 11:03 AM, Simon J Mudd wrote: OK. That looks clear. However it doesn't look as if it's possible to pass parameters this way which means that data can only be passed to the extension via variables. That works but isn't so clean. I'll check this out further shortly. I'm planning later to pass info like which gateway to talk to and perhaps some sort of flag which indicates record: yes/no, and even include the bridge application into this extension/macro. That reduces the original dialplan pattern matching to a much simpler and easier to configure setup for me. here's a tip from a recovering asterisk user: don't feel like you have to do everything via the dialplan. this was a constant mantra in asterisk, because calling AGI scripts was expensive. this is not the case with FreeSWITCH. the general rule of thumb is: as soon as it gets hard to do in the dialplan, farm it out to a script. it's the way FreeSWITCH is designed, so don't fight it ;) that said, you still might be able to use execute_extension along with setting some channel variables before you call it. those channel variables will be available in the executed extension, and can act pretty much like the arguments to a macro. ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Who is callie?
i've also got a list of voicemail-related prompts that i'm going to use callie for. i'm willing to throw my stuff into the pot, too, if we can have this turned around in two weeks. otherwise i'll probably have to press on, as i have a deadline to make. lemme know... On Aug 27, 2009, at 4:13 PM, Carlos S. Antunes wrote: Mike, Sure! I am planning on doing a session soon, maybe in a couple of weeks or so. My only question is whether GM Voices license will allow this kind of thing. Do you or anyone else know? Carlos Michael Jerris wrote: Also, note, we have a few sound files we would like to add to our default set. If you are doing a session anyways and are willing please let me know if we can throw a few other prompts in your list to be recorded. Mike On Aug 27, 2009, at 12:18 PM, Michael Collins wrote: On Thu, Aug 27, 2009 at 9:04 AM, Carlos S. Antunes c...@nowthor.com wrote: Hi! I searched the wiki but couldn't find the answer. Is callie a real woman one may ask to record additional sounds? Callie is one of the voices from GM Voices. She is definitely available for custom work. Visit www.gmvoices.com for more info. Tell them that the FreeSWITCH project sent you. :) -MC Thanks! Carlos ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] how to catch DTMF in Lua while a phrase macro is playing
On Aug 8, 2009, at 11:59 AM, Brian West wrote: Examples exist in the scripts/lua folder called callback.lua. i read this example code, but it doesn't seem to really address my question. if you re-read the code and explanation that i posted earlier, the input callback is working when i do something like session:streamFile(blah), but *not* when i do something like session:execute(phrase, blah,args)). to be clear, the phrase plays just fine, but when i press keys during the phrase playback, the input callback doesn't get fired. am i missing something obvious here? you should be able to drop that code in that i provided earlier to verify what i'm talking about. one thing i will add is that i'm using portaudio for making the call and sending the DTMF. i'll try testing this out with a regular sip client and see if the same thing occurs... Also please DO NOT hijack threads. You can't click reply, change the subject as it messes up the mailing list threading and most mail readers will thread it incorrectly. sorry, i've never had that problem before -- i can certainly adjust :) ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] how to catch DTMF in Lua while a phrase macro is playing
does anybody else find it amusing that my thread about Lua scripting was hijacked by people talking about hijacking threads?? ;) /me waits patiently for discussion on the topic On Aug 8, 2009, at 2:48 PM, Raffaele P. Guidi wrote: Uh, oh, ok. Message-Id and In-Reply-To headers don't mean too much in a gmail world (I think gmail does a better job than any other mail client). Well, at least I understood what Brian was talking about, thanks. Regards, Raffaele On Sat, Aug 8, 2009 at 20:01, Stefan Knoblich s...@freeswitch.org wrote: His message was a direct reply to Alan Chandler's mail and Brian's mail client is working perfectly fine (as are both of my mail clients). Look at the Message-Id and In-Reply-To headers of the mails if you still think our clients are broken :) stkn Raffaele P. Guidi wrote: Brian, I've read 8-9 of your emails asking to not hijack threads in threads where this it didn't happen (like this). I see this as a new thread with a single message (plus yours, of course) inside with [Freeswitch-users] how to catch DTMF in Lua while a phrase macro is playing as the subject - and I think is quite relevant to the message. I suspect you have something wrong in your email client (mine is gmail) or server and suggest you to give it a check. Regards, Raffaele On Sat, Aug 8, 2009 at 17:59, Brian West br...@freeswitch.org mailto:br...@freeswitch.org wrote: Examples exist in the scripts/lua folder called callback.lua. Also please DO NOT hijack threads. You can't click reply, change the subject as it messes up the mailing list threading and most mail readers will thread it incorrectly. Thanks, Brian On Aug 8, 2009, at 10:15 AM, Chad Phillips -- Apartment Lines wrote: in a lua script, i've tried using session:setInputCallback() to catch DTMF tones while a phrase macro is playing, but it doesn't seem to work. the same callback _does_ catch DTMF when i use session:streamFile() to play something. is there some other way to do it? below is an example of how i'm doing it now. when voicemail/ vm- mailbox_full.wav plays, i see key presses being printed to the console, but when the phrase plays, no key presses are displayed. function key_press(session, input_type, data) if input_type == dtmf then freeswitch.consoleLog(info, Key pressed: .. data[digit] .. \n) end end if session:ready() then session:answer() session:execute(sleep, 1000) session:setInputCallback(key_press, ) session:streamFile(voicemail/vm-mailbox_full.wav) session:execute(phrase, voicemail_menu,1:2:3:#) end ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org mailto:FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org mailto:FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] arriving today for ClueCon
i'm arriving around 12:30PM -- are there any pre-ClueCon meetups this afternoon? anybody need help with setup? ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org