[Serusers] PA Module

Alois Schafferhofer schaffi_lui at hotmail.com
Wed Jul 5 16:05:41 CEST 2006


Hi,

I have a problem with sending position coordinates with PUBLISH.
If I send the x and y coordinates <x>01524.3441</x><y>04704.1020</y>
via PUBLISH, SER cuts the last two digits (<x>1524.34</x><y>4704.1</y>).

Why doesn't SER Notify the whole position? In which class does it cut the 
two digits?

I hope, someone could help me.

Best regards,
Alois

/usr/sbin/ser[11700]: handle publish request
/usr/sbin/ser[11700]: get_pres_uri: _puri=sip:pda_user at fh-joanneum.at
/usr/sbin/ser[11700]: handle_publish -4- p_uri=
p_uri.len=23
/usr/sbin/ser[11700]: handle_publish -5- presentity=0x4069d1d8
/usr/sbin/ser[11700]: parse_pidf: 
sipuri=0x8216278:pres:pda_user at fh-joanneum.at
contact=0x8216098:sip:pda_user at 10.0.0.3 basic=0x82160b8:online
location=(nil):(null)
/usr/sbin/ser[11700]: parse_pidf: site=(nil):(null) floor=(nil):(null)
room=(nil):(null)
/usr/sbin/ser[11700]: parse_pidf: x=0x821be28:01524.3441 
y=0x821be38:04704.1020
radius=(nil):(null)
/usr/sbin/ser[11700]: find_presence_tuple: _p=0x4069d1d8 
_p->tuples=0x4069d488
/usr/sbin/ser[11700]: publish_presentity_pidf: -1-
/usr/sbin/ser[11700]: publish_presentity: -2-
/usr/sbin/ser[11700]: publish_presentity: -3-: changed=1
/usr/sbin/ser[11700]: db_update_presentity starting: use_place_table=1 
presid=4
/usr/sbin/ser[11700]: db_update_presentity: tuple-
    contact=sip:pda_user at 10.0.0.3 len=21 basic=1 expires=1150916054

priority=0.500000
/usr/sbin/ser[11700]: db_update_presentity: cleaning contact from table
/usr/sbin/ser[11700]: db_update_presentity: room= loc=
/usr/sbin/ser[11700]: publish_presentity: -4-
/usr/sbin/ser[11700]: publish_presentity: event_package=1 -1-
/usr/sbin/ser[11700]: handle_publish -8- paerrno=0
/usr/sbin/ser[11700]: handled publish
/usr/sbin/ser[11708]: timer_presentity: _p=0x4069d1d8 
pda_user at fh-joanneum.at
flags=1 watchers=0x4069d3a8
/usr/sbin/ser[11708]: notifying esca at fh-joanneum.at _p->flags=1 _w-
    event_package=1 _w->accept=2 _w->status=1



PUBLISH sip:pda_user at fh-joanneum.at SIP/2.0..Via: SIP/2.0/UDP
10.0.0.3:5060;branch=z9hG4bK874819433..Max-Forwards: 70..From: 
<sip:pda_user at fhjoanneum
.at>;tag=540877786..To: <sip:pda_user at fh-joanneum.at>..Call-ID: 
996402808-569651771-
701518565..CSeq: 10 PUBLISH..Contact: <sip:pda_user at 10.0.0.3>..Con
tent-Type: application/cpim-pidf+xml..Content-Length: 396..Expires: 
50..Event: presence..User-
Agent: SIP .NET 1.0 evaluation version, www.independents
oft.com....<?xml version="1.0" encoding="utf-8"?><presence
xmlns="urn:ietf:params:xml:ns:pidf" 
entity="pres:pda_user at fh-joanneum.at"><tuple id="9da019
ef-d0ea-4de0-8ad3-edacae0ca89c"><status><basic>online</basic><geopriv><locationinfo><
civilAddress><x>01524.3441</x><y>04704.1020</y></civilAddress></
location-info></geopriv></status><contact
priority="0.8">sip:pda_user at 10.0.0.3</contact></tuple></presence>..


10.15.200.57:5060 -> 10.15.200.136:5060
NOTIFY sip:esca at 10.15.200.136 SIP/2.0..Via: SIP/2.0/UDP
10.15.200.57;branch=z9hG4bK766a.c7db8933.0..To: <sip:esca at fhjoanneum.
at>;tag=z9hG4bK29818902.
.From: 
<sip:pda_user at fh-joanneum.at>;tag=589230a54cd08b3768529724501fae28-f2af..CSeq:
10 NOTIFY..Call-ID: 603541788327 at 10.15.200.136..Content-Length:
464..User-Agent: Sip EXpress router(0.9.3 (i386/linux))..Event: 
presence..Content-Type:
application/pidf+xml..Subscription-State: active;expires=3479.
...<?xml version="1.0"?>..<!DOCTYPE presence PUBLIC "//IETF//DTD RFCxxxx 
PIDF
1.0//EN" "pidf.dtd">..<presence entity="sip:pda_user at fh-joanneum.at">..<
tuple id="9r28r49">tid6e65cf14">.. <contact
priority="0.500000">sip:pda_user at 10.0.0.3</contact>.. <status>.. 
<basic>open</basic>..
<geopriv><
location-info><civilAddress> <x>1524.34</x>.. <y>4704.1</y>..
</civilAddress></location-info></geopriv>.. </status>.. </status>..</tupl
e>..</presence>..





More information about the sr-users mailing list