[Freeswitch-users] Sending NOTIFY message to a phone via XML-RPC
Peter P GMX
Prometheus001 at gmx.net
Mon Jun 7 09:56:16 PDT 2010
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
>
>
More information about the FreeSWITCH-users
mailing list