[Freeswitch-dev] questions on the new mod_sms

Anthony Minessale anthony.minessale at gmail.com
Fri Oct 7 19:28:51 MSD 2011


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 at 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 at 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 at 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 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
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> 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
>>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list