[Freeswitch-users] Sending NOTIFY message to a phone via XML-RPC
Anthony Minessale
anthony.minessale at gmail.com
Mon Jun 7 12:38:01 PDT 2010
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 at 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 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
> >
> >
>
> _______________________________________________
> 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
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100607/b7eac773/attachment.html
More information about the FreeSWITCH-users
mailing list