you can&#39;t do sendevent over XML<div>its a command for event_socket </div><div><br></div><div>it would probably be possible to make such a thing but it does not currently exist.</div><div><br><br><div class="gmail_quote">
On Mon, Jun 7, 2010 at 11:56 AM, Peter P GMX <span dir="ltr">&lt;<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Nobody has a working XML sample for sending NOTIFY events?<br>
The wiki is quite lean on this. I will update the wiki with a working<br>
sample as soon as I have one.<br>
<br>
So any suggestions?<br>
<br>
Best regards<br>
Peter<br>
<font color="#888888"><br>
Peter P GMX schrieb:<br>
</font><div><div></div><div class="h5">&gt; Hello,<br>
&gt;<br>
&gt; I try to send a NOTIFY message from my application to a registered phone<br>
&gt; via XML-RPC.<br>
&gt; This is the XML which is sent:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<br>
&gt; &lt;methodCall&gt;<br>
&gt; &lt;methodName&gt;freeswitch.api&lt;/methodName&gt;<br>
&gt; &lt;params&gt;<br>
&gt; &lt;param&gt;<br>
&gt; &lt;value&gt;<br>
&gt; &lt;string&gt;sendevent&lt;/string&gt;<br>
&gt; &lt;/value&gt;<br>
&gt; &lt;/param&gt;<br>
&gt; &lt;param&gt;<br>
&gt; &lt;value&gt;<br>
&gt; &lt;string&gt;NOTIFY,profile=internal,event-string=check-sync;reboot=false,user=200,host=192.168.178.220,content-type=application/simple-message-summary&lt;/string&gt;<br>
&gt; &lt;/value&gt;<br>
&gt; &lt;/param&gt;<br>
&gt; &lt;/params&gt;<br>
&gt; &lt;/methodCall&gt;<br>
&gt;<br>
&gt; However I receive an error message:<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;.<br>
&gt; &lt;methodResponse&gt;.<br>
&gt; &lt;params&gt;.<br>
&gt; &lt;param&gt;&lt;value&gt;&lt;string&gt;ERROR!&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;.<br>
&gt; &lt;/params&gt;.<br>
&gt; &lt;/methodResponse&gt;.<br>
&gt;<br>
&gt; I also tried to send the data as a struct but FS complains about needing<br>
&gt; a string as parameters.<br>
&gt;<br>
&gt; What am I doing wrong? Anybody has a valid sample XML for a NOTIFY message?<br>
&gt;<br>
&gt; Best regards<br>
&gt; Peter<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>