<div dir="ltr">As i see profile added as in this example<div><a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_presence.c#4917">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/endpoints/mod_sofia/sofia_presence.c#4917</a><br><br>But here i see using chat API call i cannot specify event header.<br><a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_dptools/mod_dptools.c#4563-4569,4594">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/applications/mod_dptools/mod_dptools.c#4563-4569,4594</a><br>may be required update api call or directly create appropriate event<br><br>Sergey.</div></div><br><div class="gmail_quote"><div dir="ltr">сб, 15 июл. 2017 г. в 22:33, Sergey Safarov <<a href="mailto:s.safarov@gmail.com">s.safarov@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you Giovanni<div>I tested but got similar error</div><div>





<p class="m_-382421007470930590inbox-inbox-p1"><span class="m_-382421007470930590inbox-inbox-s1">freeswitch@ip-10-0-0-245> chat sip|1001@my.local.host|1002@my.remote.host|Hello chat via SIP!<br></span>Error! Message Not Sent<br>2017-07-15 19:31:46.048232 [ERR] sofia_presence.c:200 Chat proto [global]<br>from [1001@my.local.host]<br>to [1002@my.remote.host]<br>Hello chat via SIP!<br>Invalid Profile my.remote.host</p><p class="m_-382421007470930590inbox-inbox-p2"><span class="m_-382421007470930590inbox-inbox-s1">Sergey</span></p><br><div class="gmail_quote"><div dir="ltr">сб, 15 июл. 2017 г. в 12:20, Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>>:<br></div></div></div></div><div dir="ltr"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Sergey,<br><br></div>use the "chat" api command or dialplan app:<br><br><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+chat" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+chat</a><br><br><br><div class="gmail_extra"><br><div class="gmail_quote"></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 July 2017 at 11:02, Sergey Safarov <span dir="ltr"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Could you advice how to send simple message?<div>As I knows this may be done only from lua or esl script</div><div><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_sms#mod_sms-SendingaMessagefromascript" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_sms#mod_sms-SendingaMessagefromascript</a><br></div><div><br></div><div>But provided example can send only to local endpoin</div><div>When i try send message to remote host thne got error like this <br><br>





<p class="m_-382421007470930590m_-1019669187511869803m_-6164784182921321212m_7268988961212740979inbox-inbox-p1"><span class="m_-382421007470930590m_-1019669187511869803m_-6164784182921321212m_7268988961212740979inbox-inbox-s1">2017-07-15 08:59:46.408247 [INFO] switch_cpp.cpp:1377 chat console<br></span>2017-07-15 08:59:46.408247 [ERR] sofia_presence.c:200 Chat proto [sip]<br>from [sip:1004@my.local.host]<br>to [1019@my.remote.host]<br>Hello from Seven Du! Have fun!<br>Invalid Profile my.remote.host<br><br>Please advice how to specify profile name in event?</p><p class="m_-382421007470930590m_-1019669187511869803m_-6164784182921321212m_7268988961212740979inbox-inbox-p2"><span class="m_-382421007470930590m_-1019669187511869803m_-6164784182921321212m_7268988961212740979inbox-inbox-s1"><br></span></p></div></div>
<br></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="m_-382421007470930590m_-1019669187511869803gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span><span><br>Sincerely,<br></span><span><font color="#888888"><br>
Giovanni Maruzzelli<br>
OpenTelecom.IT</font></span><br><span>cell: +39 347 266 56 18<span><font color="#888888"><br></font></span></span></span></div></div></div>

</div></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></div></div></blockquote></div>