Hi,
I use Presence Snapshot 4.1, and I want my Server to store x and y coordinate and send NOTIFY to the SUBSCRIBER whenever the position changes. I tried it with geopriv location but I get the answer: "Unsupported document format". Is there an error in my PUBLISH request or isn't it possible to store x and y? And in which table does it store? I added the collumns x, y in presentity, but SER ignores them.
I hope, you can help me. Thanks.
/usr/sbin/ser[9955]: handle publish request /usr/sbin/ser[9955]: ERROR: pidf.c:467: can't parse document /usr/sbin/ser[9955]: can't parse CPIM-PIDF document /usr/sbin/ser[9955]: handled publish
U 10.0.0.3:5060 -> 10.0.0.11:5060 PUBLISH sip:PDA_User@fh-joanneum.at SIP/2.0..Via: SIP/2.0/UDP 10.0.0.3:5060;branch=z9hG4bK1845246585..Max-Forwards: 70..From: sip:PDA_User@fhjoanneu m.at;tag=1986441488..To: sip:PDA_User@fh-joanneum.at..Call-ID: 1734692618- 1859786556-1651516169..CSeq: 6 PUBLISH..Contact: sip:PDA_User@10.0.0.3. .Content-Type: application/cpim-pidf+xml..Content-Length: 307..Expires: 7200..Event: presence..User-Agent: SIP .NET 1.0 evaluation version, www.independentsoft.com.... <?xml version="1.0 encoding="utf-8"?> <presence xmlns="urn:ietf:params:xml:ns:pidf"entity="sip:PDA_User@fh-joanneum.at"> <tuple id=9r28r59> <status> <basic>online</basic> <geopriv><locationinfo><civilAddress><x>01525.0125</x><y>04704.2002</y></civilAddress></locationinfo></geopriv> </status> </tuple> </presence>
U 10.0.0.11:5060 -> 10.0.0.3:5060 SIP/2.0 415 Unsupported document format..Via: SIP/2.0/UDP 10.0.0.3:5060;branch=z9hG4bK1845246585..From: sip:PDA_User@fhjoanneum.at;tag=1986441488.. To: sip:PDA_User@fh-joanneum.at;tag=589230a54cd08b3768529724501fae28-a814..Call-ID: 1734692618-1859786556-1651516169..CSeq: 6 PUBLISH..Server: Sip E Xpress router (0.10.99-dev35-pa-4.1 (i386/linux))..Content-Length: 0..Warning: 392 10.0.0.11:5060 "Noisy feedback tells: pid=9955 req_src_ip=10.0.0.3 req_src_port=5060 in_uri=sip:PDA_User@fh-joanneum.at out_uri=sip:PDA_User@fhjoanneum. at via_cnt==1"
Regards, Alois
Hi, SER presence modules doesn't store location now (it will ignore it) and the document contains errors: It has to have version="1.0" in quotes and tuple id="..." in quotes too.
Vaclav
On Sat, Jun 17, 2006 at 03:47:03PM +0200, Alois Schafferhofer wrote:
Hi,
I use Presence Snapshot 4.1, and I want my Server to store x and y coordinate and send NOTIFY to the SUBSCRIBER whenever the position changes. I tried it with geopriv location but I get the answer: "Unsupported document format". Is there an error in my PUBLISH request or isn't it possible to store x and y? And in which table does it store? I added the collumns x, y in presentity, but SER ignores them.
I hope, you can help me. Thanks.
/usr/sbin/ser[9955]: handle publish request /usr/sbin/ser[9955]: ERROR: pidf.c:467: can't parse document /usr/sbin/ser[9955]: can't parse CPIM-PIDF document /usr/sbin/ser[9955]: handled publish
U 10.0.0.3:5060 -> 10.0.0.11:5060 PUBLISH sip:PDA_User@fh-joanneum.at SIP/2.0..Via: SIP/2.0/UDP 10.0.0.3:5060;branch=z9hG4bK1845246585..Max-Forwards: 70..From: sip:PDA_User@fhjoanneu m.at;tag=1986441488..To: sip:PDA_User@fh-joanneum.at..Call-ID: 1734692618- 1859786556-1651516169..CSeq: 6 PUBLISH..Contact: sip:PDA_User@10.0.0.3. .Content-Type: application/cpim-pidf+xml..Content-Length: 307..Expires: 7200..Event: presence..User-Agent: SIP .NET 1.0 evaluation version, www.independentsoft.com....
<?xml version="1.0 encoding="utf-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"entity="sip:PDA_User@fh-joanneum.at">
<tuple id=9r28r59> <status> <basic>online</basic> <geopriv><locationinfo><civilAddress><x>01525.0125</x><y>04704.2002</y></civilAddress></locationinfo></geopriv> </status> </tuple> </presence>
U 10.0.0.11:5060 -> 10.0.0.3:5060 SIP/2.0 415 Unsupported document format..Via: SIP/2.0/UDP 10.0.0.3:5060;branch=z9hG4bK1845246585..From: sip:PDA_User@fhjoanneum.at;tag=1986441488.. To: sip:PDA_User@fh-joanneum.at;tag=589230a54cd08b3768529724501fae28-a814..Call-ID: 1734692618-1859786556-1651516169..CSeq: 6 PUBLISH..Server: Sip E Xpress router (0.10.99-dev35-pa-4.1 (i386/linux))..Content-Length: 0..Warning: 392 10.0.0.11:5060 "Noisy feedback tells: pid=9955 req_src_ip=10.0.0.3 req_src_port=5060 in_uri=sip:PDA_User@fh-joanneum.at out_uri=sip:PDA_User@fhjoanneum. at via_cnt==1"
Regards, Alois
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers