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