Have you tried:<div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Event_Socket#sendevent">http://wiki.freeswitch.org/wiki/Event_Socket#sendevent</a> </div><div><br></div><div><p style="margin:0.4em 0px 0.5em;line-height:19.039350509643555px;font-family:sans-serif;font-size:12.499999046325684px;background-color:rgb(255,255,255)">
Example of sendevent with a message body, the length of the body is specified by content-length:</p><pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">sendevent NOTIFY
profile: internal
content-type: application/simple-message-summary
event-string: check-sync
user: 1005
host: 192.168.10.4
content-length: 2
OK
</pre><p style="margin:0.4em 0px 0.5em;line-height:19.039350509643555px;font-family:sans-serif;font-size:12.499999046325684px;background-color:rgb(255,255,255)">Another example with a notify:</p><pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">
sendevent NOTIFY
profile: internal
content-type: application/simple-message-summary
event-string: check-sync
user: 1005
host: 99.157.44.194
content-length: 2
OK
</pre><p style="margin:0.4em 0px 0.5em;line-height:19.039350509643555px;font-family:sans-serif;font-size:12.499999046325684px;background-color:rgb(255,255,255)">Results in a packet like this:</p><pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">
NOTIFY <a href="mailto:sip%3A1005@99.157.44.203">sip:1005@99.157.44.203</a> SIP/2.0
Via: SIP/2.0/UDP 99.157.44.194;rport;branch=z9hG4bKpH2DtBDcDtg0N
Max-Forwards: 70
From: <<a href="mailto:sip%3A1005@99.157.44.194">sip:1005@99.157.44.194</a>>;tag=Dy3c6Q1y15v5S
To: <<a href="mailto:sip%3A1005@99.157.44.194">sip:1005@99.157.44.194</a>>
Call-ID: 129d1446-0063-122c-15aa-001a923f6a0f
CSeq: 104766492 NOTIFY
Contact: <<a href="http://sip:mod_sofia@99.157.44.194:5060">sip:mod_sofia@99.157.44.194:5060</a>>
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9578:9586
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: 100rel, timer, precondition, path, replaces
Event: check-sync
Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary
Subscription-State: terminated;timeout
Content-Type: application/simple-message-summary
Content-Length: 2
OK</pre><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 10:40 AM, Lappe, Adam <span dir="ltr"><<a href="mailto:Adam.Lappe@qsc.de" target="_blank">Adam.Lappe@qsc.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="blue" vlink="blue">
<div>
<p class="MsoNormal" style="text-autospace:none"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I am trying to send a NOTIFY Message to my Gateway that looks like
this:</span></font><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">NOTIFY sip:(address)@(host):(port)
SIP/2.0<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">VIA: SIP/2.0/UDP (address):(port)<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">From:;tag=1<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">To:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Call-ID: whatever<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">CSeq: 1 NOTIFY<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Contact:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Event:
message-summary<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Subscription-State:
terminated<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Content-Type:
application/simple-message-summary<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Content-Length:
23<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">Messages-Waiting: yes</span></font><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Is it possible to make
the FreeSWITCH send such a message to my gateway?<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Thanks,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Adam<u></u><u></u></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">Von:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b><span style="font-weight:bold">Im Auftrag von </span></b>David Villasmil<br>
<b><span style="font-weight:bold">Gesendet:</span></b> Dienstag, 7. August 2012
11:59<br>
<b><span style="font-weight:bold">An:</span></b> FreeSWITCH Users Help<br>
<b><span style="font-weight:bold">Betreff:</span></b> Re: [Freeswitch-users]
sendevent to Gateway</span></font><u></u><u></u></p>
</div><div><div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hello,<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">What EXCATLY do you want to send?<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">David<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Tue, Aug 7, 2012 at 11:48 AM, Lappe, Adam <<a href="mailto:Adam.Lappe@qsc.de" target="_blank">Adam.Lappe@qsc.de</a>>
wrote:<u></u><u></u></span></font></p>
<div link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I am still looking for a solution.</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Is there no one who has an idea?</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Thanks,</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Adam</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font><u></u><u></u></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">Von:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b><span style="font-weight:bold">Im Auftrag von </span></b>Lappe, Adam<br>
<b><span style="font-weight:bold">Gesendet:</span></b> Freitag, 3. August 2012
11:53<br>
<b><span style="font-weight:bold">An:</span></b> '<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>'<br>
<b><span style="font-weight:bold">Betreff:</span></b> [Freeswitch-users]
sendevent to Gateway</span></font><u></u><u></u></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi all,</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">i
am trying to make the freeswitch send a event (or SIP Message) to my gateway.</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">I
can only find examples how to send events to registered endpoint but not to my
gateway.</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Shouldn’t
it be possible to do this via the event socket?</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Thanks
in advance and best regards,</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Adam</span></font><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
_________________________________________________________________________<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>