[Freeswitch-users] how to send simpe message

David Villasmil david.villasmil.work at gmail.com
Sat Jul 15 20:28:47 UTC 2017


Not sure, but i don't think you can send messages off-site. It designed to
send messages to registered contacts, afaik
On Sat, Jul 15, 2017 at 10:16 PM Sergey Safarov <s.safarov at gmail.com> wrote:

> I added "event:addHeader("sip_profile", "external");" to lua script now
> profile specified but FS still wants send message locally.
>
> freeswitch at ip-10-0-0-245> luarun forward-message.lua
> +OK
> 2017-07-15 20:13:44.978212 [INFO] switch_cpp.cpp:1377 chat console
> 2017-07-15 20:13:44.978212 [DEBUG] sofia_presence.c:225 Can't find
> registered user 1002 at my.remote.host
> 2017-07-15 20:13:44.978212 [DEBUG] mod_sms.c:92 SMS Delivery assumed
> successful due to being sent in non-blocking manner
> freeswitch at ip-10-0-0-245>
>
> Could you advice how specify send message to remote host?
>
>
>
> сб, 15 июл. 2017 г. в 22:54, Sergey Safarov <s.safarov at gmail.com>:
>
>> As i see profile added as in this example
>>
>> https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_presence.c#4917
>>
>> But here i see using chat API call i cannot specify event header.
>>
>> https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_dptools/mod_dptools.c#4563-4569,4594
>> may be required update api call or directly create appropriate event
>>
>> Sergey.
>>
>> сб, 15 июл. 2017 г. в 22:33, Sergey Safarov <s.safarov at gmail.com>:
>>
>>> Thank you Giovanni
>>> I tested but got similar error
>>>
>>> freeswitch at ip-10-0-0-245> chat sip|1001 at my.local.host
>>> |1002 at my.remote.host|Hello chat via SIP!
>>> Error! Message Not Sent
>>> 2017-07-15 19:31:46.048232 [ERR] sofia_presence.c:200 Chat proto [global]
>>> from [1001 at my.local.host]
>>> to [1002 at my.remote.host]
>>> Hello chat via SIP!
>>> Invalid Profile my.remote.host
>>>
>>> Sergey
>>>
>>> сб, 15 июл. 2017 г. в 12:20, Giovanni Maruzzelli <gmaruzz at gmail.com>:
>>>
>>>> Hello Sergey,
>>>>
>>>> use the "chat" api command or dialplan app:
>>>>
>>>> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+chat
>>>>
>>>>
>>>>
>>>> On 15 July 2017 at 11:02, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>>
>>>>> Could you advice how to send simple message?
>>>>> As I knows this may be done only from lua or esl script
>>>>>
>>>>> https://freeswitch.org/confluence/display/FREESWITCH/mod_sms#mod_sms-SendingaMessagefromascript
>>>>>
>>>>> But provided example can send only to local endpoin
>>>>> When i try send message to remote host thne got error like this
>>>>>
>>>>> 2017-07-15 08:59:46.408247 [INFO] switch_cpp.cpp:1377 chat console
>>>>> 2017-07-15 08:59:46.408247 [ERR] sofia_presence.c:200 Chat proto [sip]
>>>>> from [sip:1004 at my.local.host]
>>>>> to [1019 at my.remote.host]
>>>>> Hello from Seven Du! Have fun!
>>>>> Invalid Profile my.remote.host
>>>>>
>>>>> Please advice how to specify profile name in event?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Sincerely,
>>>>
>>>> Giovanni Maruzzelli
>>>> OpenTelecom.IT
>>>> cell: +39 347 266 56 18
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>
>>> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170715/e9368015/attachment.html>


More information about the FreeSWITCH-users mailing list