[Freeswitch-dev] questions on the new mod_sms
Fatastic! I cannot help to try the new mod_sms, and here's some quick questions for developers and I'm seeing what can I help with testing/coding etc. to speed this up. 1) I see no event when I use the chat app "fire" with /event all in fs_cli, is there a problem or unfinished code? 2) Also I see nothing when I use the "send" app, I guess a catch all chatplan with <action application="send" data=""/> would have the same effect as before(when no mod_sms). I tried with a. unload mod_sms, two US send text messages to each other without problem b. load mod_sms, I see this log but nothing happened 2011-09-24 10:03:48.921888 [INFO] mod_sms.c:299 Processing text message 1004->1001 in context default Chatplan: 1001 parsing [default->demo] continue=false Chatplan: 1001@192.168.7.2 Regex (PASS) [demo] to(1001@192.168.7.2) =~ /^(.*)$/ break=on-false Chatplan: 1001@192.168.7.2 Action send() 2) How to get variables in lua? will there be an event object like session in dialplan based ? 3) also I see the chat api also hit the chatplan, is that supposed to? Sorry for so many questions, thanks. -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow (http://www.sparrowmailapp.com)
On Fri, Sep 23, 2011 at 9:13 PM, Seven Du <dujinfang@gmail.com> wrote:
Fatastic! I cannot help to try the new mod_sms, and here's some quick questions for developers and I'm seeing what can I help with testing/coding etc. to speed this up. 1) I see no event when I use the chat app "fire" with /event all in fs_cli, is there a problem or unfinished code?
There was a bug where chatplan apps with no args would not make it to the execution stage, fixed in tree...
2) Also I see nothing when I use the "send" app, I guess a catch all chatplan with <action application="send" data=""/> would have the same effect as before(when no mod_sms). I tried with a. unload mod_sms, two US send text messages to each other without problem b. load mod_sms, I see this log but nothing happened 2011-09-24 10:03:48.921888 [INFO] mod_sms.c:299 Processing text message 1004->1001 in context default Chatplan: 1001 parsing [default->demo] continue=false Chatplan: 1001@192.168.7.2 Regex (PASS) [demo] to(1001@192.168.7.2) =~ /^(.*)$/ break=on-false Chatplan: 1001@192.168.7.2 Action send()
This is probably related to the same bug
2) How to get variables in lua? will there be an event object like session in dialplan based ?
Yes, it's called "message"
3) also I see the chat api also hit the chatplan, is that supposed to?
When mod_sms is loaded it will intercept all messages globally if it does not match an extension it will be delivered as usual. (also fixed in recent commit)
Sorry for so many questions, thanks.
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Ah, this must be the stuff Anthony was referring me to earlier! Anyhow, where can I read about this module? It sounds very very similar to the one I am working on (but much more complete). I'll be trying it out tonight, I hope. On Sat, Sep 24, 2011 at 10:01 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
On Fri, Sep 23, 2011 at 9:13 PM, Seven Du <dujinfang@gmail.com> wrote:
Fatastic! I cannot help to try the new mod_sms, and here's some quick questions for developers and I'm seeing what can I help with testing/coding etc. to speed this up. 1) I see no event when I use the chat app "fire" with /event all in fs_cli, is there a problem or unfinished code?
There was a bug where chatplan apps with no args would not make it to the execution stage, fixed in tree...
2) Also I see nothing when I use the "send" app, I guess a catch all chatplan with <action application="send" data=""/> would have the same effect as before(when no mod_sms). I tried with a. unload mod_sms, two US send text messages to each other without problem b. load mod_sms, I see this log but nothing happened 2011-09-24 10:03:48.921888 [INFO] mod_sms.c:299 Processing text message 1004->1001 in context default Chatplan: 1001 parsing [default->demo] continue=false Chatplan: 1001@192.168.7.2 Regex (PASS) [demo] to(1001@192.168.7.2) =~ /^(.*)$/ break=on-false Chatplan: 1001@192.168.7.2 Action send()
This is probably related to the same bug
2) How to get variables in lua? will there be an event object like session in dialplan based ?
Yes, it's called "message"
3) also I see the chat api also hit the chatplan, is that supposed to?
When mod_sms is loaded it will intercept all messages globally if it does not match an extension it will be delivered as usual. (also fixed in recent commit)
Sorry for so many questions, thanks.
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
On Sunday, September 25, 2011 at 7:58 AM, Kurtis Heimerl wrote:
Ah, this must be the stuff Anthony was referring me to earlier!
Anyhow, where can I read about this module? It sounds very very similar to the one I am working on (but much more complete). I'll be trying it out tonight, I hope.
You can read from source code src/applications/mod_sms Probably I will create wiki page when I tried out all answered by Anthony. @Anthony, thanks for the detailed explain! will pull code and try.
On Sat, Sep 24, 2011 at 10:01 AM, Anthony Minessale <anthony.minessale@gmail.com (mailto:anthony.minessale@gmail.com)> wrote:
On Fri, Sep 23, 2011 at 9:13 PM, Seven Du <dujinfang@gmail.com (mailto:dujinfang@gmail.com)> wrote:
Fatastic! I cannot help to try the new mod_sms, and here's some quick questions for developers and I'm seeing what can I help with testing/coding etc. to speed this up. 1) I see no event when I use the chat app "fire" with /event all in fs_cli, is there a problem or unfinished code?
There was a bug where chatplan apps with no args would not make it to the execution stage, fixed in tree...
2) Also I see nothing when I use the "send" app, I guess a catch all chatplan with <action application="send" data=""/> would have the same effect as before(when no mod_sms). I tried with a. unload mod_sms, two US send text messages to each other without problem b. load mod_sms, I see this log but nothing happened 2011-09-24 10:03:48.921888 [INFO] mod_sms.c:299 Processing text message 1004->1001 in context default Chatplan: 1001 parsing [default->demo] continue=false Chatplan: 1001@192.168.7.2 (mailto:1001@192.168.7.2) Regex (PASS) [demo] to(1001@192.168.7.2 (mailto:1001@192.168.7.2)) =~ /^(.*)$/ break=on-false Chatplan: 1001@192.168.7.2 (mailto:1001@192.168.7.2) Action send()
This is probably related to the same bug
2) How to get variables in lua? will there be an event object like session in dialplan based ?
Yes, it's called "message"
3) also I see the chat api also hit the chatplan, is that supposed to?
When mod_sms is loaded it will intercept all messages globally if it does not match an extension it will be delivered as usual. (also fixed in recent commit)
Sorry for so many questions, thanks.
-- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com (mailto:anthony_minessale@hotmail.com) GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com (mailto:anthony.minessale@gmail.com) IRC: irc.freenode.net (http://irc.freenode.net) #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org (mailto:888@conference.freeswitch.org) googletalk:conf+888@conference.freeswitch.org (mailto:conf+888@conference.freeswitch.org) pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org (mailto:FreeSWITCH-dev@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
On Sun, Sep 25, 2011 at 2:25 PM, Seven Du <dujinfang@gmail.com> wrote:
On Sunday, September 25, 2011 at 7:58 AM, Kurtis Heimerl wrote:
Ah, this must be the stuff Anthony was referring me to earlier!
Anyhow, where can I read about this module? It sounds very very similar to the one I am working on (but much more complete). I'll be trying it out tonight, I hope.
You can read from source code src/applications/mod_sms
Probably I will create wiki page when I tried out all answered by Anthony.
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
Seven,
Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org (http://fs.org) as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can.
-MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
message is a standard event so its the same api as always with extra method chat_execute to run the apps. message:chat_execute("reply", "you said: ${_body}"); On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline. I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user. I'll be happy to add to the wiki once this is figured out. On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
message is a standard event so its the same api as always with extra method chat_execute to run the apps.
message:chat_execute("reply", "you said: ${_body}");
On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
I had a few bugs i guess. Try again on latest it should work with chat api now. Also here is a small esl perl script example: require ESL; my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon"); my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); $e->addHeader("to", "1004\@www.freeswitch.org"); $e->addHeader("from", "testing\@foobar.com"); $e->addHeader("sip_profile", "internal"); $e->addHeader("dest_proto", "sip"); $e->addBody(shift); $con->sendEvent($e); On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline.
I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user.
I'll be happy to add to the wiki once this is figured out.
On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
message is a standard event so its the same api as always with extra method chat_execute to run the apps.
message:chat_execute("reply", "you said: ${_body}");
On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I think the build is broken: cc1: warnings being treated as errors src/switch_loadable_module.c: In function ‘do_chat_send’: src/switch_loadable_module.c:552: error: format not a string literal and no format arguments make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 make: *** [all] Error 2 I tried a fresh configure and am seeing the same issue, so I don't think it's me being an idiot. On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
I had a few bugs i guess. Try again on latest it should work with chat api now.
Also here is a small esl perl script example:
require ESL;
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); $e->addHeader("to", "1004\@www.freeswitch.org"); $e->addHeader("from", "testing\@foobar.com"); $e->addHeader("sip_profile", "internal"); $e->addHeader("dest_proto", "sip"); $e->addBody(shift);
$con->sendEvent($e);
On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline.
I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user.
I'll be happy to add to the wiki once this is figured out.
On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
message is a standard event so its the same api as always with extra method chat_execute to run the apps.
message:chat_execute("reply", "you said: ${_body}");
On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
hm.... my compiler didn't mind that, fixed ..... On Fri, Oct 7, 2011 at 1:04 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I think the build is broken:
cc1: warnings being treated as errors src/switch_loadable_module.c: In function ‘do_chat_send’: src/switch_loadable_module.c:552: error: format not a string literal and no format arguments make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 make: *** [all] Error 2
I tried a fresh configure and am seeing the same issue, so I don't think it's me being an idiot.
On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
I had a few bugs i guess. Try again on latest it should work with chat api now.
Also here is a small esl perl script example:
require ESL;
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); $e->addHeader("to", "1004\@www.freeswitch.org"); $e->addHeader("from", "testing\@foobar.com"); $e->addHeader("sip_profile", "internal"); $e->addHeader("dest_proto", "sip"); $e->addBody(shift);
$con->sendEvent($e);
On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline.
I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user.
I'll be happy to add to the wiki once this is figured out.
On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
message is a standard event so its the same api as always with extra method chat_execute to run the apps.
message:chat_execute("reply", "you said: ${_body}");
On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Build worked, thanks! I'll see if chat works this afternoon. On Fri, Oct 7, 2011 at 11:23 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
hm.... my compiler didn't mind that, fixed .....
On Fri, Oct 7, 2011 at 1:04 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I think the build is broken:
cc1: warnings being treated as errors src/switch_loadable_module.c: In function ‘do_chat_send’: src/switch_loadable_module.c:552: error: format not a string literal and no format arguments make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 make: *** [all] Error 2
I tried a fresh configure and am seeing the same issue, so I don't think it's me being an idiot.
On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
I had a few bugs i guess. Try again on latest it should work with chat api now.
Also here is a small esl perl script example:
require ESL;
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); $e->addHeader("to", "1004\@www.freeswitch.org"); $e->addHeader("from", "testing\@foobar.com"); $e->addHeader("sip_profile", "internal"); $e->addHeader("dest_proto", "sip"); $e->addBody(shift);
$con->sendEvent($e);
On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline.
I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user.
I'll be happy to add to the wiki once this is figured out.
On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
message is a standard event so its the same api as always with extra method chat_execute to run the apps.
message:chat_execute("reply", "you said: ${_body}");
On Wed, Sep 28, 2011 at 11:59 PM, Seven Du <dujinfang@gmail.com> wrote:
Seven, Let me know if you have started a wiki page yet. I would like to help get this documented. I need to write up a story on fs.org as well. I just haven't had a chance to test drive this new module, but I will definitely be doing so as soon as I can. -MC
See http://wiki.freeswitch.org/wiki/Mod_sms It's incomplete. I haven't figured out how the "message" in lua works, e.g. message:reply or message:execute(reply, blah) etc. Maybe it's haven't been implemented or is there other ways to doing that? Anyone have better idea feel free to update the page. Thanks. 7.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (4)
-
Anthony Minessale
-
Kurtis Heimerl
-
Michael Collins
-
Seven Du