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